From 57d012c95588849c63378899dc17384c5a1cb47e Mon Sep 17 00:00:00 2001 From: jerryfane Date: Thu, 22 Oct 2026 21:00:09 +0200 Subject: [PATCH] Guest agent: say what idle reclaim does when /proc/stat cannot be read (#75 review P3) --- cmd/sandboxd-guest-agent/reclaim_linux.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/sandboxd-guest-agent/reclaim_linux.go b/cmd/sandboxd-guest-agent/reclaim_linux.go index 74a4581..1a29ef1 100644 --- a/cmd/sandboxd-guest-agent/reclaim_linux.go +++ b/cmd/sandboxd-guest-agent/reclaim_linux.go @@ -15,8 +15,10 @@ import ( // it writes back dirty pages, drops the page cache and reclaimable slab, and // compacts memory: the dropped pages become free, and compaction gathers // free pages into the 2 MiB blocks that free page reporting hands back to -// the host. It never stops the guest: a failure is logged and retried at the -// next quiet period. +// the host. It never stops the guest: a failed drop or compaction is logged +// and tried again at the next quiet period, and if /proc/stat cannot be read +// the reclaim logs that and ends for the life of the VM (the balloon still +// returns what the guest frees by itself). func idleReclaim() { var policy guestagent.IdleReclaim last, err := cpuBusy()