Repository navigation
fix: disable Kexec Handover to free up ~128MiB of RAM - #2472
Conversation
6150fd1 to
4e4802f
Compare
92771a7 to
840d91e
Compare
| when: | ||
| - qemu |
There was a problem hiding this comment.
| when: | |
| - qemu | |
| when: qemu |
but actually why not for all builds?
There was a problem hiding this comment.
I don't think we use kexec in v2; but I wanted to keep this for v3 only. If we are ok with this in v2 I can remove the restriction. Let me test that it does as it says on v3 first.
840d91e to
85e77bf
Compare
Required for KUBE-1370. kho reserves memory to be handed over to the kexec'ed kernel; on memory constrained instances this is a significant amount of memory. Disable kho since we don't use kexec to reboot anyway.
85e77bf to
861540f
Compare
|
OK I've tested this with |
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved issues were identified.
Review effort: Lite
Findings: None
What changed in this PR
Disables Kexec Handover to reclaim approximately 128 MiB of RAM on constrained instances.
Changes:
- Adds
kho=offto GRUB kernel parameters. - Registers handlers to regenerate GRUB configuration.
| File | Description |
|---|---|
ansible/tasks/setup-system.yml |
Writes the KHO-disabled GRUB configuration. |
ansible/playbook.yml |
Registers handler imports. |
ansible/handlers/update-grub.yml |
Regenerates GRUB configuration. |
ansible/handlers/main.yml |
Imports the GRUB handler. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
What kind of change does this PR introduce?
fix: disable Kexec Handover to free up ~128MiB of RAM
Required for KUBE-1370.
What is the current behavior?
On Linux 7.0 kernels kho is enabled by Ubuntu:
This means that we're reserving even more memory than on 6.8.0:
What is the new behavior?
Additional context
kho reserves memory to be handed over to the kexec'ed kernel; on memory
constrained instances this is a significant amount of memory. Disable
kho since we don't use kexec to reboot anyway.