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

Use uncompressed kernel file to save memory #1177

Open
hlinnaka opened this issue Dec 11, 2024 · 1 comment
Open

Use uncompressed kernel file to save memory #1177

hlinnaka opened this issue Dec 11, 2024 · 1 comment

Comments

@hlinnaka
Copy link
Contributor

If you pass an uncompressed kernel file to qemu, it will mmap() it directly into the address space. That can save some memory if the kernel image is used by many qemu processes, because the kernel can share the memory pages for each process.

See https://stefano-garzarella.github.io/posts/2019-12-22-qemu-kernel-initrd-mmapped/

Would be nice to test if that has a measurable effect in our fleet.

@cicdteam
Copy link
Contributor

Just note. NeonVMs do not share a kernel. Each VM has its own kernel (yes, the same, but placed in different paths in the docker overlay filesystem).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants