This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 376
kata container using vsock boots up much slower than using kata-proxy #2929
Labels
Comments
lining2020x
added
bug
Incorrect behaviour
needs-review
Needs to be assessed by the team.
labels
Sep 3, 2020
lining2020x
changed the title
Using vsock make container bootup much slower than kata-proxy
the kata container using vsock boots up much slower than using kata-proxy
Sep 4, 2020
lining2020x
changed the title
the kata container using vsock boots up much slower than using kata-proxy
kata container using vsock boots up much slower than using kata-proxy
Sep 4, 2020
Here is the test result of using kata 2.0 (vsock + rust agent)
|
This looks like the same issue that is tracked in #1917 While that issue is still open, I believe a kernel fix was pushed that helped avoid the issue - at least this patch, https://github.com/kata-containers/packaging/blob/master/kernel/patches/5.4.x/0002-net-virtio_vsock-Fix-race-condition-between-bind-and.patch, which is df12eb6d6cd9 ("net: virtio_vsock: Enhance connection semantics") in Linux 5.7 gets rid of the slowdown for me. |
@merwick Yes,It's indeed the same issue. |
@merwick Many thanks ! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description of problem
Using vsock make container bootup much slower than kata-proxy
Container/VM boot up slower more than 2 seconds using vsock comparing to using kata-proxy.
Host info:
centos 8 on bare metal
Using kata-proxy
Using vsock
Let's do it once again to make sure.
checkout to kube-proxy again
checkout to vsock again
I am not sure which kind this issue belongs to, bug or enhancement.
Show kata-collect-data.sh details
Meta details
Running
kata-collect-data.sh
version1.11.2 (commit 1e5268328a34f0ec60a1a5654ce755a6aec89f29)
at2020-09-03.16:16:53.223222933+0800
.Runtime is
/usr/bin/kata-runtime
.kata-env
Output of "
/usr/bin/kata-runtime kata-env
":Runtime config files
Runtime default config files
Runtime config file contents
Output of "
cat "/etc/kata-containers/configuration.toml"
":Output of "
cat "/usr/share/defaults/kata-containers/configuration.toml"
":KSM throttler
version
Output of "
/usr/libexec/kata-ksm-throttler/kata-ksm-throttler --version
":Output of "
/usr/lib/systemd/system/kata-ksm-throttler.service --version
":systemd service
Image details
Initrd details
No initrd
Logfiles
Runtime logs
Recent runtime problems found in system journal:
Proxy logs
Recent proxy problems found in system journal:
Shim logs
No recent shim problems found in system journal.
Throttler logs
No recent throttler problems found in system journal.
Container manager details
Have
docker
Docker
Output of "
docker version
":Output of "
docker info
":Output of "
systemctl show docker
":No
kubectl
No
crio
Have
containerd
containerd
Output of "
containerd --version
":Output of "
systemctl show containerd
":Output of "
cat /etc/containerd/config.toml
":Packages
No
dpkg
Have
rpm
Output of "
rpm -qa|egrep "(cc-oci-runtimecc-runtimerunv|kata-proxy|kata-runtime|kata-shim|kata-ksm-throttler|kata-containers-image|linux-container|qemu-)"
":The text was updated successfully, but these errors were encountered: