-
Notifications
You must be signed in to change notification settings - Fork 0
Apply runtime kernel tweaks to memory allocation #712
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
base: master
Are you sure you want to change the base?
Conversation
|
/rebase |
d993257 to
7afe809
Compare
7afe809 to
dc6856b
Compare
|
/rebase |
dc6856b to
93ac6bb
Compare
93ac6bb to
bdac383
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces runtime kernel memory management tweaks to address frequent "out of memory error 12" issues during firecracker VM startup by optimizing memory allocation behavior and cache reclamation.
- Adds a new
memory-tweaksservice that applies kernel memory tuning parameters - Configures aggressive memory compaction and higher minimum free memory thresholds
- Disables transparent hugepages to reduce memory fragmentation
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
These adjustments prefer writing to disk and reclaiming cache earlier in order to avoid the frequent "out of memory error 12" we have been experiencing on firecracker VM startup. We observed very large (50%) memory caches that were not freed up in time to start the next VM, so these settings will optimize for freeing the memory sooner. Change-type: minor Signed-off-by: Kyle Harding <[email protected]>
bdac383 to
82ca20d
Compare
Signed-off-by: Kyle Harding <[email protected]>
82ca20d to
3565fc4
Compare
Change-type: patch Signed-off-by: Kyle Harding <[email protected]>
This PR introduces runtime kernel memory management tweaks to address frequent "out of memory error 12" issues during firecracker VM startup by optimizing memory allocation behavior and cache reclamation.
Change-type: minor
See: https://balena.fibery.io/Security/Information_Security_and_Reliability_Incident/GitHub-Runners-Failure-during-vcpu-run-Out-of-memory-(os-error-12)-130