Skip to content

id(phase-14): memory profile at scale — RSS per resident world and compaction spike #13086

Closed

Description

@dezren39

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).

Acceptance

Activity

  1. added
    kind/featureNew feature or capability request
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    design/id-phase-14Design: id-phase-14 - all issues of this effort carry it
    epic/id-programReprioritization program epic (2026-11-12)
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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.

  5. added 2 commits that reference this issue on Nov 23, 2026
  6. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/idPackage/app: id (pkgs/ or apps/ in this repo)design/id-phase-14Design: id-phase-14 - all issues of this effort carry itepic/id-programReprioritization program epic (2026-11-12)kind/featureNew feature or capability requeststatus:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions