Repository navigation
docs: record design B retention pressure and the 16 GiB commit reduction - #2780
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
tedin7
left a comment
There was a problem hiding this comment.
Review of head ab604660, docs only (docs/experiments.md, +107 lines).
Verdict: no code concerns. Merge stays with MasterDomino or @R0Y00. The tables report numbers from running the game: the matched retention pair, the ~6 min start-up attribution run, and the 16 GiB host-commit table built from #2767, #2770, #2773 and #2775. I do not have the game, so I could not reproduce any of those numbers. They are taken as the author's and MasterDomino's reports. Someone who has run the game should confirm them before this is merged.
What I checked against origin/main:
- The
Heldnames in the doc match theheld_names[]array insrc/startup_stubs/d3d12_xs_device.cpp:view-refs,list-hold,flight,queued-waiting-fence,drain-pending,unqueued,left-class:*,never-class:*.view-refs-in-visible-heapis also in the heartbeat line. X2W_D3D12_RETIRE_REASONSis read in that file, andX2W_D3D12_RELEASE_RETIRED_VIEWSis still referenced there.- #2767, #2770, #2719, #2468 and #2679 are merged. #2773 and #2775 are still open, so the "together" row in the host-commit table describes changes that are not all on main yet.
- The text names no game, path, dump or capture.
Small nit, not blocking: the new ## Design B ... heading comes right after a closing code fence with no blank line before it (line 17293). Add one blank line.
Commands run in a worktree at the exact head:
python3 tests/docs_links_check.py: passed, 24 files, 540 links.python3 tests/bidi_controls_check.py: passed.git diff --check origin/main...HEAD: clean.
CI was still pending when I looked. No Win2025 run (docs only).
AI-assisted; commands listed were executed locally.
ab60466 to
bb46eb6
Compare
|
Thanks @tedin7. Added the blank line before the ## Design B ...\ heading and rebased onto current \main\ (\�b46eb60). \docs_links_check.py\ (25 files / 540 links) and \git diff --check\ clean. Agreed on the merge gate: the host-commit 'combined four' row is a local measurement with #2767/#2770/#2773/#2775 applied together (the latter two still open), not a claim they are all on main; the matched retention pair and attribution are MasterDomino's and JB2WIN's #2379 reports. Someone who has run the title should confirm the numbers before merge. |
|
Title-run confirmation (@tedin7's merge gate): I ran the title locally on a 16 GiB host (GTX 1660 SUPER, 5,966 MiB VRAM, Windows 11, SysCommitLimit 22,931.8 MiB), release build,
So the merged-fix portion and the baseline are confirmed by a fresh title run; the full 8,787 MiB combined figure depends on #2773/#2775 landing. The matched RX 9070 XT retention pair and the view-refs attribution remain MasterDomino's and JB2WIN's #2379 reports as cited. |
R0Y00
left a comment
There was a problem hiding this comment.
Reviewed the published measurement sources and the title-neutral docs at d49ae8cc. The RX 9070 XT matched pair, the separate ownership attribution, the 180 s main-only run and the 300 s combined experiment now link to their respective reports. The text labels the large-heap cap as opt-in and avoids assigning the combined delta to one patch. This is a documentation review of contributor reports. Local checks on this head were docs links (25 files / 540 links), bidirectional controls (2,024 tracked files), and git diff --check; all passed.
Records the #2379 design-B retention pressure and the separate 16 GiB host-commit reduction in
docs/experiments.md, as R0Y00 requested ("record the approximately 9 GB result as pressure measured in that run, alongside the bytes still owned by live slots, recording holds and in-flight work where the counters distinguish them") and as promised after #2719 landed. Docs only; no behavior change. Refs #2379, #2679, #2719, #1199.What is recorded
Release()+ completed fences retire prior references/submissions but a live slot stays reboundable; slice 3 ended with startup: track UAV/RTV/DSV descriptor slots in the retire class (slice 3a) #2719;X2W_D3D12_RELEASE_RETIRED_VIEWSis diagnostic-only. The retained bytes are intended pressure, not a reclamation bug.main6b9fb9d9, one release build, onlyX2W_D3D12_RELEASE_RETIREDdiffers, 600 s window. Off: access violation at 490.7 s after 8x0x8007000e, texture retained peak 10.67 GB / 4,874. On: survived to 600 s, 53,000 references dropped, retained peak 9.41 GB / 4,364 (end 9.10 GB / 4,267), local usage ~5.4 GB over the DXGI budget. Retention-over-time table included.1cce2a32): ~4.4 GB (4,445,110,272 B / 2,297 objects, oldest 4,374 frames) are slot 133 class members held only by never-overwritten shader-visible descriptor slots (view-refs), ~0.55 GB never-class buffers, ~0.2 GB never-class RT/DS/UAV,unattributed=0/0.X2W_D3D12_RETIRE_REASONS=1->retire_reasons_lineHeldcategories separating live descriptor slots (view-refs,view-refs-in-visible-heap), recording holds (list-hold,unqueued,drain-pending), and in-flight work (flight,queued-waiting-fence), plusleft-class:*/never-class:*,total,unattributed. A current GTX 1660 SUPER line is quoted.-LazyMemory+X2W_D3D12_LAZY_TEXTURES=1): audio: commit the stand-in APU heap on demand #2767 + xmem: lazily reserve below-40 startup blocks and reclaim empty slabs #2770 + gpu: defer CreateCommittedResource for read-only slot 133 textures #2773 + gpu: cap slot 133 existing heaps at 256 MiB and grow upload ring on demand #2775 together cut host commit peak 12,144 MiB -> 8,787 MiB (-3.28 GiB), DXGI non-local 2,897 -> 695 MiB, existing-heap 2,199 -> 0 MiB. Explicitly distinguished from local-VRAM retention; remaining commit targets named (RT/DS/UAV slot 133 textures, tiny< 64 KiBbuffers,MEM_MAPPEDduplicates).No game names, paths, dumps, or captures; adapters and aggregate counters only.
Verified (
ab604660, fromorigin/main96a7b4fb)The referenced fixtures (
startup_resource_retire_reasons,startup_resource_retire_views,startup_slot133_lazy_textures,startup_slot133_heap_cap,xmem_*) are the acceptance commands listed in the section; the matched title pairs are local executable runs recorded as pressure measurements, not source-built fixtures.NOT established
AI-assisted.