You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id(phase-14): memory profile at scale — RSS per resident world and compaction spike #13086
Part 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).
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.
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.
Done — Lane RF. PR #13224 merged (36b25a094169), this issue auto-closed as completed, and the change is verified present on main.
What landed:
stress_mem profile in pkgs/id/benches/world_bench.rs: RSS per resident world at a stress tier (idle/active/hot restored through WorldCore::restore and held, RSS sampled between phases) and the compaction peak-memory measurement (recover via FileJournal::open, restore, hold, FileJournal::compact to the 64-entry checkpoint set) at 2,000 and 100,000 entries. ID_BENCH_STRESS_MEM_PART splits the parts per process.
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).
Activity
developing-today commentedon Nov 23, 2026
CODE-4775
dezren39 commentedon Nov 23, 2026
Lane RF (archer) claiming this slice.
Plan: extend the stress bench surface in
pkgs/id/benches/world_bench.rs(beside thestress_genprofile 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 commentedon Nov 23, 2026
Progress — Lane RF: PR #13224 is open with the full slice.
Landed in the PR: the
stress_memprofile inworld_bench(RSS per resident world at a tier; compaction peak memory at 2,000 and 100,000 entries), the verbatimstress_world_entriesextraction 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.
docs(id): record post-merge stress_mem medians in the #6304 limits ta…
Merge pull request #13224 from developing-today/lane-rf-13086
dezren39 commentedon 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:
stress_memprofile inpkgs/id/benches/world_bench.rs: RSS per resident world at a stress tier (idle/active/hot restored throughWorldCore::restoreand held, RSS sampled between phases) and the compaction peak-memory measurement (recover viaFileJournal::open, restore, hold,FileJournal::compactto the 64-entry checkpoint set) at 2,000 and 100,000 entries.ID_BENCH_STRESS_MEM_PARTsplits the parts per process.stress_world_entries(character-identical, 1,224 chars;stress_gen --quickhot hash8ef2ffc8a61f687bunchanged before/after and after the merge with id(phase-14): frame cost vs world state size — view fuel and wall time at 10k/100k/1M events #13085/fix(id-bench): recover stress_gen after interrupted generation #13181).Acceptance, against the merged tree (reference laptop, medians of 5 runs):
Verification: release bench build clean on the merged tree (no new warnings),
cargo fmt --checkclean for the bench file,--quicksmokes green forstress_gen,stress_mem, and the co-mergedframe_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).