hyperlight-dev / hyperlight

Hyperlight is a lightweight Virtual Machine Manager (VMM) designed to be embedded within applications. It enables safe execution of untrusted code within micro virtual machines with very low latency and minimal overhead.
Apache License 2.0
2.23k stars 76 forks source link

`kvm_create` performance regression for Linux 6.x #47

Open andreiltd opened 3 weeks ago

andreiltd commented 3 weeks ago

We observed the regression in KVM startup times when switching from Kernel 5.x to 6.x. This regression is captured by running create_sandbox benchmark tests:

A similar issue has been seen in Firecracker: Linux 6.1 boot time regression

We should try proposed mitigation strategies from the link above and see if it improves the performance.

danbugs commented 3 weeks ago

image

image

danbugs commented 3 weeks ago

After running the first mitigation suggested here (i.e., sudo mount -o remount,favordynmods /sys/fs/cgroup), we see 18% improvement on Ubuntu 24.04:

image

LTBT2530 commented 3 weeks ago

Thanks you