Repository navigation
Conversation
TestTheMachineSaysHowItEnded/shut_down booted systemd in spin's 128 MiB base and never plugged, ~90 MiB to the guest. A guest left there runs its OOM killer through the boot (docs/boot-time.md, "The memory"): 28 of 40 boots did on the KVM fleet (compat 45230275709), and when it took systemd-logind the power button went unhandled and QEMU did not end. spin plugs 2048 MiB right after a workspace starts, as the probes do; the subtest now does the same, and fails on any OOM in the guest's console rather than only on the ones that cost the shutdown. With the plug, 0 of 40 (compat 45231206182). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
boot:recorddecides whether a machine ends as spin's runner expects, so it has to boot the guest as spin boots it. Itsshut_downsubtest booted systemd in the 128 MiB base and never plugged memory. That left ~90 MiB to the guest (GuestMemoryTotal 90 in the same job). A guest left at that size runs its OOM killer through the boot, as docs/boot-time.md ("The memory") and labs 44784196287 and 44788801555 recorded. When the killer took systemd-logind, the power button went unhandled and QEMU did not end (#656's failure). Closes #658.What
shell(t, r, true)plugs 2048 MiB through virtio-mem right after the machine is released. That is what spin does right after a workspace starts, and what the probes do (plugged=2048).TestTheMachineSaysHowItEndedfails on anyOut of memoryin the guest's console. Before, only an OOM that also cost the shutdown failed it.shell.Measured
This was a loop of the subtest alone, 40 boots per run, on the KVM fleet through compat.yml on a throwaway branch (
exp/658-repro, not for merge).For spin
Inferred, not measured here. spin's own window between start and plug is the same race, at 128 MiB. Booting with 2048 MiB at boot instead of plugging is already proposed in spin-stack/spin#1660 (#561). This PR does not change the machine.
🤖 Generated with Claude Code