Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kvm_create performance regression for Linux 6.x #47

Open
andreiltd opened this issue Nov 8, 2024 · 3 comments
Open

kvm_create performance regression for Linux 6.x #47

andreiltd opened this issue Nov 8, 2024 · 3 comments
Milestone

Comments

@andreiltd
Copy link
Contributor

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:

  • Linux 5.15
sandboxes/create_sandbox
                        time:   [1.8367 ms 1.8681 ms 1.9014 ms]
  • LInux 6.9.3
 sandboxes/create_sandbox
                        time:   [7.8108 ms 8.7506 ms 9.7426 ms]

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.

@andreiltd andreiltd changed the title KVM create performance regression for Linux 6.x kvm_create performance regression for Linux 6.x Nov 8, 2024
@danbugs
Copy link
Contributor

danbugs commented Nov 8, 2024

  • Benchmarks from KVM on Ubuntu Server 20.04 (using Linux 5.15):

image

  • Benchmarks from KVM on Ubuntu Server 24.04 (using Linux 6.8):

image

@danbugs
Copy link
Contributor

danbugs commented Nov 8, 2024

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
Copy link

Thanks you

@danbugs danbugs added this to the v0.2.0 milestone Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants