Repository navigation
Keep daemon services recoverable under chaos and pool pressure - #198
Conversation
Native physical-pool soak: passedThe fixed build completed 167/167 two-VM rounds in 30m 9s, with no harness retries. All rounds observed shared backing, recovered new pool admissions after both descriptor and thread exhaustion, and preserved both VM Executions and their jobs across an API Each round also deliberately killed the physical pool. Both VM runner processes exited every time; inspection returned This validates bounded physical-pool pressure and cleanup, not live VM recovery after physical-pool death, host power loss, or native compressed |
What failed
With two 256 MiB native OpenSandbox VMs sharing physical pages and holding memory at the top of an allocation burst, limiting only the pool process's file descriptors caused
accept()to returnEMFILE. The old pool exited, turning admission pressure into loss of RAM ownership for dependent VMs. The same fault reproduces in a deterministic real-process regression without KVM.Changes
SIGKILLat body-buffer saturation, and corrupted-header refusal followed by same-state recovery.Validation
mise run test -- pvisor-daemon: 292 passed, 6 skipped by default.physical_pool_survives_accept_fd_exhaustion: failed before the fix withToo many open files; 30/30 stress iterations passed after it with retries disabled.recovery_chaos: 10/10 iterations passed (no guest boot required).SIGKILL. A follow-up run filled the physical pool to rejection; guest reads and commands remained available, and the test released every synthetic reference.cargo check --locked -p pvisor-clipassed.This does not make actual physical-pool death recoverable: killing the owner still terminates dependent VMs; cleanup remains available and startup refuses to replace stale pool ownership. Native sealed-compression refault after pool death was not exercised on this host (kernel-fault userfaultfd is not permitted). The longer native soak is separate from these completed checks.