Record fixture-driven check memory cost #39
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
allod/memory!39
Loading…
Reference in a new issue
No description provided.
Delete branch "agent/nix-check-fixture-memory"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The existing note covers a composition root evaluating every machine. It does not cover the case that actually bites in a framework repo: checks that build NixOS fixtures cost the same as a machine, so the check run climbs with fixture count rather than machine count.
Measured while adding microvm volume declarations to
allod/archetypes— its ownnix flake checkwent from ~4.0 GiB to ~5.7 GiB peak on a 7 GiB box with no swap, with ~840 MiB headroom at the tightest point. Holding a dozen sabotage fixtures live at once was an OOM kill; consuming them as thunks one at a time bought back over a gigabyte.Also records the tension worth knowing before optimizing: forcing
system.build.toplevelis what runs a module's assertions, so a fixture that skips the force is cheap and vacuous. Force deliberately rather than uniformly.Refs allod/strategy#20
Risk
R0. One paragraph in a memory topic file.