perf: drop DAMON reclaim

It sampled memory every 5ms, always on, which woke the VM ~400 times a
second at idle instead of ~50. Memory the VM has used now stays with it
until it needs it again or reboots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Job79andClaude Opus 5.5 committed 2026-11-17 20:52:00 +01:00
1 parent 9dc6dff880
commit 49ae3230ed
1 file changed
-9
-9
View File
@@ -77,10 +77,6 @@ UnifiedKernelImageFormat=%i_%v
# mkosi.extra/etc/machine-id is empty, so no boot
# counts as the first
# - systemd.firstboot=no agent-setup asks its own questions
# - damon_reclaim.* free memory unused for an hour (min_age is in µs),
# so the host can take it back through virtio-balloon
# free page reporting. The watermarks make it run
# however much memory is free.
# - SYSTEMD_DEFAULT_MOUNT_ systemd handles mount changes at most 5 times per
# RATE_LIMIT_BURST= second and holds back mounts once it hits that. At
# boot that delays / and /var by up to a second each.
@@ -91,11 +87,6 @@ KernelCommandLine=
quiet
systemd.machine_id=firmware
systemd.firstboot=no
damon_reclaim.enabled=Y
damon_reclaim.min_age=3600000000
damon_reclaim.wmarks_high=1000
damon_reclaim.wmarks_mid=999
damon_reclaim.wmarks_low=0
SYSTEMD_DEFAULT_MOUNT_RATE_LIMIT_BURST=50
# The initrd only needs to find and mount the disks of a VM.
KernelInitrdModules=