Closed sahilsuneja1 closed 3 years ago
I see performance drop in Ubuntu too. What is the graph driver? Could you please run docker info
with root? We cannot see the output now. And how about container boot time with runc as runtime?
Hi @sahilsuneja1 @caoruidong - thanks for the report and question.
Interesting to see you measuring the runtime directly (and not through docker
for instance :-) ).
A couple of points about your measurement then:
My best guess for NEMU is that maybe it is using a different type of BIOS or firmware boot. I don't know what the current status of that is, but I believe @rbradford has been looking into the options and their time and size impacts.
/cc @sameo @sboeuf as well.
@sahilsuneja1 try using kata-agent as init, see https://github.com/kata-containers/runtime/pull/768#issuecomment-442613869
qemu-lite will always be faster than anything else due to the fact it loads an uncompressed kernel binary. We're currently doing an investigation into improving boot time. You can see the details in this mailing list post: https://lists.gnu.org/archive/html/qemu-devel/2018-12/msg03096.html
In the medium term we're looking into switching Kata-NEMU from OVMF to Seabios.
Thanks! @caoruidong: I'm not using docker to run my container but using kata-runtime directly. @grahamwhaley: The time I mentioned is the average time over several runs (the sample I pasted was from one of those). Thanks for the pointer to report generator and launch_times; will try running those. @rbradford: Thanks for the nemu vs qemu pointer and clarification! @devimc: Thanks for the pointer; will try kata-agent as init route.
Description of problem
Time to run a "hello world" container in kata comes out to be 2.2s when using default config (qemu-lite-system-x86_64), and 2.8s with Nemu. Are such absolute and relative times expected? I do see some error logs in kata-collect-data.sh. Is that a contributor? How do I resolve this?
kata-runtime -v
kata-runtime kata-env | awk -v RS= '/[Hypervisor]/'
cd ~/rootfs/node:11.2.0 time kata-runtime run -b . 851428da-ffd3-11e8-9cf1-0aecc8e7ab67
Expected result
2.2s seems too high. Plus, nemu should be faster if I am not wrong.
kata-collect-data.sh
Meta details
Running
kata-collect-data.sh
version1.4.0 (commit 21f0059)
at2018-12-14.14:08:01.509881815-0500
.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
Config file
/etc/kata-containers/configuration.toml
not found Output of "cat "/usr/share/defaults/kata-containers/configuration.toml"
":KSM throttler
version
Output of "
/usr/libexec/kata-ksm-throttler/kata-ksm-throttler --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
Packages
Have
dpkg
Output of "dpkg -l|egrep "(cc-oci-runtimecc-runtimerunv|kata-proxy|kata-runtime|kata-shim|kata-ksm-throttler|kata-containers-image|linux-container|qemu-)"
":No
rpm