GeezerVison is showing github.com — id(phase-14): memory profile at scale — RSS per resident world and compaction spike · Issue #13086 · developing-today/code
id(phase-14): memory profile at scale — RSS per resident world and compaction spike #13086DescriptionPart of the #6304 v1 large-world stress program (Phase 14 core topic #6281). Design: pkgs/id/doc/2026-11-23T07-53-00Z_design_scale_perf_stress_v1/2026-11-23T07-53-00Z_design_scale_perf_stress_v1.md. Depends on the stress generator slice of #6304's breakdown.
Scope
Memory profile of the world stack at scale: RSS per resident world at the 1x and 10x tiers, resident-set growth under the existing per-world memory budget / eviction behaviour (#557 criteria), and the memory spike during checkpoint compaction of a large journal (the committed compaction baseline is 10,972 us at 2,000 entries; measure at a 100k-entry journal).
Acceptance
- RSS-per-resident-world numbers at 1x and 10x on the reference laptop, recorded in the id(phase-14): Scale & performance hardening — v1 — first-iteration design #6304 limits table.
- Compaction peak-memory number at a 100k-entry journal, recorded alongside the existing 2,000-entry baseline.
- Any tier at which the resident set cannot be held is reported as a measured limit (the wall is a result, not a failure).
Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026 Lane RF (archer) claiming this slice.
Plan: extend the stress bench surface in pkgs/id/benches/world_bench.rs (beside the stress_gen profile landed in #13083) with a memory-profile measurement — RSS per resident world at the 1x and 10x tiers, and peak memory during checkpoint compaction of a 100k-entry journal (alongside the committed 2,000-entry baseline). Numbers go into the #6304 design doc's limits table; any tier that cannot hold its resident set is recorded as a measured wall, per the acceptance criteria. dezren39 commented on Nov 23, 2026 Progress — Lane RF: PR #13224 is open with the full slice.
Landed in the PR: the stress_mem profile in world_bench (RSS per resident world at a tier; compaction peak memory at 2,000 and 100,000 entries), the verbatim stress_world_entries extraction it shares with the generator, and the three measured rows in the #6304 design's limits table.
Headline results (reference laptop, medians of 5 runs): 1x resident set fully held — 21,011 B/world blended over 1,101 worlds; 10x fully held — 18,223 B/world over 11,001 worlds, no wall at either tier; compaction spike 4.88 MiB over pre-op RSS at 2,000 entries and 89.41 MiB at 100,000 entries. Full numbers and verification are in the PR. dezren39 commented on Nov 23, 2026 Done — Lane RF. PR #13224 merged (36b25a094169), this issue auto-closed as completed, and the change is verified present on main.
What landed:
Acceptance, against the merged tree (reference laptop, medians of 5 runs):
- RSS per resident world: 1x — 21,834 B/world blended (1,101 worlds held, 28.56 MiB total; idle 11,350 B/world; active 93,593 B/world; hot +3,280,896 B). 10x — 18,320 B/world blended (11,001 worlds held, 197.90 MiB total; idle 9,334 B/world; active 87,945 B/world; hot +20,250,624 B).
- Compaction peak memory: 5.59 MiB over pre-op RSS at 2,000 entries; 89.34 MiB at 100,000 entries, recorded directly under the 10,972 µs / 2,000-entry baseline row.
- Walls: none — both tiers' resident sets are fully held on the reference laptop, and no eviction engages on the restore path (eviction lives in the hub/actor layer); resident-set growth is the recorded phase progression.
Verification: release bench build clean on the merged tree (no new warnings), cargo fmt --check clean for the bench file, --quick smokes green for stress_gen, stress_mem, and the co-merged frame_cost. The numbers in the table are the post-merge re-measurement (the pre-merge batch differed by ≤ ~9% on the idle marginal, within baseline-RSS drift; the table carries the merged-tree values).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|