Commit 0892051
authored
feat(base): disable proactive memory compaction in guest (#2553)
Adds `vm.compaction_proactiveness=0` to the base template's
`/etc/sysctl.conf` so kcompactd no longer runs background page
migrations in the guest.
With 2 MiB host-side hugepage backing of guest RAM, every migration
dirties a destination hugepage from the host UFFD's perspective and
lands in the next memfile diff — with no snapshot-aligned benefit. The
pre-pause `compact_memory` write (#2551) does the work deterministically
right before we capture state.
Existing templates inherit the change on rebuild.1 parent 3b3f8d9 commit 0892051
1 file changed
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
78 | 86 | | |
79 | 87 | | |
80 | 88 | | |
| |||
0 commit comments