Skip to content

Instantly share code, notes, and snippets.

@bergwolf
Last active August 22, 2019 01:49
Show Gist options
  • Save bergwolf/06974a3c5981494a40e2c408681c085d to your computer and use it in GitHub Desktop.
Save bergwolf/06974a3c5981494a40e2c408681c085d to your computer and use it in GitHub Desktop.
containerd-kata-shimv2 boot speed

VM templates provides 38.68% speedup for kata containers when running with containerd shimv2.

boot speed
no-vm-template avg 0.8199s
with-vm-template avg 0.5028s
speedup 38.68%

CMD to run the test:

for I in $(seq 10); do time sudo ctr run -t -d --runtime io.containerd.kata.v2 docker.io/library/busybox:latest foobar$I top;done

[vmfarm@runtime]$for I in $(seq 10); do time sudo ctr run -t -d --runtime io.containerd.kata.v2 docker.io/library/busybox:latest foobar$I top;done
real 0m0.852s
user 0m0.007s
sys 0m0.057s
real 0m0.813s
user 0m0.034s
sys 0m0.026s
real 0m0.877s
user 0m0.029s
sys 0m0.074s
real 0m0.804s
user 0m0.000s
sys 0m0.061s
real 0m0.767s
user 0m0.022s
sys 0m0.043s
real 0m0.811s
user 0m0.034s
sys 0m0.057s
real 0m0.765s
user 0m0.024s
sys 0m0.031s
real 0m0.795s
user 0m0.015s
sys 0m0.052s
real 0m0.833s
user 0m0.021s
sys 0m0.037s
real 0m0.882s
user 0m0.031s
sys 0m0.053s
[vmfarm@runtime]$for I in $(seq 10);do time sudo ctr run -t -d -rm --runtime io.containerd.kata.v2 docker.io/library/busybox:latest foobar$I top;done
real 0m0.632s
user 0m0.042s
sys 0m0.044s
real 0m0.461s
user 0m0.016s
sys 0m0.042s
real 0m0.497s
user 0m0.046s
sys 0m0.043s
real 0m0.466s
user 0m0.010s
sys 0m0.046s
real 0m0.516s
user 0m0.017s
sys 0m0.072s
real 0m0.464s
user 0m0.018s
sys 0m0.047s
real 0m0.482s
user 0m0.013s
sys 0m0.046s
real 0m0.461s
user 0m0.018s
sys 0m0.038s
real 0m0.557s
user 0m0.006s
sys 0m0.041s
real 0m0.492s
user 0m0.019s
sys 0m0.027s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment