WIP: findings: what DARNER_MEMORY_MAP lists on an RTX 5080 #490

Draft
TurboTheTurtle wants to merge 4 commits from TurboTheTurtle/Darner:memory-map-listed into Main
First-time contributor

Contributor role (optional)

  • Fluxer ID: 1578592194158137347.

What it changes

  • docs/findings.md, "What is next" item 5 now carries what the map actually prints, in a new section at the end ("What the memory map lists", 2026-12-04), and the item points to it.
  • Measured on an RTX 5080 from the player's own saves with the diagnostics build, three arms in A B A order (two with the map, one with DARNER_MEMORY_MAP=0): the map line agrees between the two runs, 185,789 and 184,526 regions, the walk 891 and 950 ms on its own thread. The title's own allocations are 5,189 MB in 42 write-watched allocations; with the 3,549 MB of process heap segments that is the item's 9 GB of allocators. The windows come to 73 and 107 MB, not 7 GB; the uploads are the CSV's 29.5 to 31.7 MB a frame.
  • The private total in this spot is 28,529 / 28,651 / 28,759 MB (proc_private_mb medians over the filled rows of each 120 s window), peaking at 29,209 to 29,313 MB, i.e. below the item's 40 to 46 GB. The map's columns sum to 48,156 MB reserved with 25,796 MB in memory, the gap being almost all the page pool's 6,236 MB with nothing resident and the file mappings' 9,671 MB, so the row now says which of the two it means.
  • The walk costs about 3 ms a frame in the diagnostics build: 36.06 ms in both map arms against 33.06 ms with the walk left out, so the row tells readers to take the map once and then run with 0 for timings.

How it was tested

  • Tested revision: af6d96f on 385954b on 9172220 on 3e3b7a6 on c8258f9 (rebased; the numbers were measured at 4e1e2ef on d91d8e4). One file, docs/findings.md, +30/-4, no code. The launcher of those game runs was scripts\play-nvidia.ps1, which main renamed to scripts\build-darner.ps1.
  • cargo xtask policy -> asset policy: 576 files ok (on c8258f9).
  • cargo clippy --workspace --all-targets --locked -- -D warnings -> no output, exit 0.
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings -> no output, exit 0.
  • cargo test --workspace --locked -> exit 0, every package ok: darner-gpu --lib 1823 passed, 0 failed, 81 ignored; darner-shader --lib 568 passed, 0 failed, 16 ignored. The two failures the earlier reports on this series listed are gone on the new main: the watch:: parallel-run flake of #389 (taken by #262 and its follow-up, which hold the watch journal's test lock) and emit::waterfall_tests::sampled_marks_restore_early_depth_only_when_safe_in_pixel_shaders at the DXIL validator (taken by #227, which writes SV_Depth in the early-depth fixture).
  • Game (scripts\play-nvidia.ps1 -Build diag -Res 1440 -Dlss quality -NoMenu, -More with DARNER_ADAPTER=5080, DARNER_EXIT_AFTER_WORLD_S=120, DARNER_BENCH_CSV, DARNER_KEYS=3:Enter,10:Enter, DARNER_DATA_DIR at the existing data folder, frame generation off): draws/frame above 1,000 in 3,020 / 3,419 / 3,166 rows of the three windows, vram_used_mb medians 12,410 / 12,598 / 12,532, no frame over 50 ms in any arm.
  • Changes a default: no. Docs only; the numbers above are the measurement the row records.
  • Not tested: other cards, other resolutions, other saves, the walk's cost in the release build (the module is diagnostics-only).

Checklist

  • I ran this change in the game, or say below why it can't be (docs, tests only). Docs only; the game ran for the numbers in the row.
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md (one text file).
  • I recorded this PR's dependencies below.
    • Depends on: #481 (the same file; this branch starts at that commit, which itself depends on #475).

Checked for overlap

  • I searched the open pull requests for the same problem and for the files this touches.
  • Related PRs: #482 (docs/windows-memory.md, explains the same commit and budget counters, no file overlap), #489 (crates/darner-gpu/src/host.rs, the placement ledger, no file overlap), #470 and #459 (other docs/findings.md rows). None carries these numbers.
  • Replaces or overlaps: none found.

Made with AI assistance (DeepSeek).

## Contributor role (optional) - Fluxer ID: 1578592194158137347. ## What it changes - `docs/findings.md`, "What is next" item 5 now carries what the map actually prints, in a new section at the end ("What the memory map lists", 2026-12-04), and the item points to it. - Measured on an RTX 5080 from the player's own saves with the diagnostics build, three arms in A B A order (two with the map, one with `DARNER_MEMORY_MAP=0`): the map line agrees between the two runs, 185,789 and 184,526 regions, the walk 891 and 950 ms on its own thread. The title's own allocations are 5,189 MB in 42 write-watched allocations; with the 3,549 MB of process heap segments that is the item's 9 GB of allocators. The windows come to 73 and 107 MB, not 7 GB; the uploads are the CSV's 29.5 to 31.7 MB a frame. - The private total in this spot is 28,529 / 28,651 / 28,759 MB (`proc_private_mb` medians over the filled rows of each 120 s window), peaking at 29,209 to 29,313 MB, i.e. below the item's 40 to 46 GB. The map's columns sum to 48,156 MB reserved with 25,796 MB in memory, the gap being almost all the page pool's 6,236 MB with nothing resident and the file mappings' 9,671 MB, so the row now says which of the two it means. - The walk costs about 3 ms a frame in the diagnostics build: 36.06 ms in both map arms against 33.06 ms with the walk left out, so the row tells readers to take the map once and then run with `0` for timings. ## How it was tested - Tested revision: `af6d96f` on `385954b` on `9172220` on `3e3b7a6` on `c8258f9` (rebased; the numbers were measured at `4e1e2ef` on `d91d8e4`). One file, `docs/findings.md`, +30/-4, no code. The launcher of those game runs was `scripts\play-nvidia.ps1`, which main renamed to `scripts\build-darner.ps1`. - `cargo xtask policy` -> `asset policy: 576 files ok` (on `c8258f9`). - `cargo clippy --workspace --all-targets --locked -- -D warnings` -> no output, exit 0. - `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` -> no output, exit 0. - `cargo test --workspace --locked` -> exit 0, every package ok: `darner-gpu --lib` 1823 passed, 0 failed, 81 ignored; `darner-shader --lib` 568 passed, 0 failed, 16 ignored. The two failures the earlier reports on this series listed are gone on the new `main`: the `watch::` parallel-run flake of #389 (taken by #262 and its follow-up, which hold the watch journal's test lock) and `emit::waterfall_tests::sampled_marks_restore_early_depth_only_when_safe_in_pixel_shaders` at the DXIL validator (taken by #227, which writes SV_Depth in the early-depth fixture). - Game (`scripts\play-nvidia.ps1 -Build diag -Res 1440 -Dlss quality -NoMenu`, `-More` with `DARNER_ADAPTER=5080`, `DARNER_EXIT_AFTER_WORLD_S=120`, `DARNER_BENCH_CSV`, `DARNER_KEYS=3:Enter,10:Enter`, `DARNER_DATA_DIR` at the existing `data` folder, frame generation off): `draws/frame` above 1,000 in 3,020 / 3,419 / 3,166 rows of the three windows, `vram_used_mb` medians 12,410 / 12,598 / 12,532, no frame over 50 ms in any arm. - Changes a default: no. Docs only; the numbers above are the measurement the row records. - Not tested: other cards, other resolutions, other saves, the walk's cost in the release build (the module is diagnostics-only). ## Checklist - [x] I ran this change in the game, or say below why it can't be (docs, tests only). Docs only; the game ran for the numbers in the row. - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md` (one text file). - [x] I recorded this PR's dependencies below. - Depends on: #481 (the same file; this branch starts at that commit, which itself depends on #475). ## Checked for overlap - [x] I searched the open pull requests for the same problem and for the files this touches. - Related PRs: #482 (`docs/windows-memory.md`, explains the same commit and budget counters, no file overlap), #489 (`crates/darner-gpu/src/host.rs`, the placement ledger, no file overlap), #470 and #459 (other `docs/findings.md` rows). None carries these numbers. - Replaces or overlaps: none found. Made with AI assistance (DeepSeek).
Contributor

On 4e1e2ef, I would label the first map column committed MiB and the parenthesized column estimated resident MiB. The map uses whole reservation size to classify allocations, then sums only regions in state MEM_COMMIT. I checked the counting code on Windows with a 32 MiB reservation in a test process. Committing 4 MiB gave a first-column value of 4 MiB. Touching those pages changed the resident estimate from 0 to 4 MiB while the first column stayed at 4. Map implementation

Using the first run’s printed totals, the committed-to-resident gap is 48,156 − 25,796 = 22,360 MiB. The page pool contributes 6,236 MiB. Host file mappings contribute 9,671 − 7,413 = 2,258 MiB. Together those account for 8,494 MiB (38.0%). Write-combined buffers account for another 14,266 − 6,704 = 7,562 MiB. I would name those three categories individually in the findings paragraph. First-run figures

On `4e1e2ef`, I would label the first map column **committed MiB** and the parenthesized column **estimated resident MiB**. The map uses whole reservation size to classify allocations, then sums only regions in state `MEM_COMMIT`. I checked the counting code on Windows with a 32 MiB reservation in a test process. Committing 4 MiB gave a first-column value of 4 MiB. Touching those pages changed the resident estimate from 0 to 4 MiB while the first column stayed at 4. [Map implementation](https://git.gtahub.st/TurboTheTurtle/Darner/src/commit/4e1e2ef242c45d7c1ef9eb4c8752efa43fbe50c3/crates/darner-gpu/src/copystat.rs#L980) Using the first run’s printed totals, the committed-to-resident gap is 48,156 − 25,796 = **22,360 MiB**. The page pool contributes 6,236 MiB. Host file mappings contribute 9,671 − 7,413 = 2,258 MiB. Together those account for 8,494 MiB (38.0%). Write-combined buffers account for another 14,266 − 6,704 = 7,562 MiB. I would name those three categories individually in the findings paragraph. [First-run figures](https://git.gtahub.st/TurboTheTurtle/Darner/src/commit/4e1e2ef242c45d7c1ef9eb4c8752efa43fbe50c3/docs/findings.md#L537)
TurboTheTurtle force-pushed memory-map-listed from 4e1e2ef242 to af6d96f936 2026-12-05 19:42:27 +00:00 Compare
Author
First-time contributor

Both applied in af6d96f, thanks.

  • The columns are now committed MiB with estimated resident MiB in brackets, with the counting cited where it comes from: the class is taken from the allocation's whole size, reserved parts included (crates/darner-gpu/src/copystat.rs:943-945), only regions in state MEM_COMMIT are summed (:932), and only pages actually in memory raise the resident estimate (:864-872). Your 32 MiB reservation with 4 MiB committed is the reading the row now follows: committing moves the first column, touching moves only the second.
  • The gap is named class by class instead of "the rest": 48,156 committed against 25,796 estimated resident, so 22,360 MiB to explain, of which the title's page pool 6,236 MiB with nothing resident, host file mappings 9,671 - 7,413 = 2,258 MiB, and write-combined buffers 14,266 - 6,704 = 7,562 MiB; the first two alone are 8,494 MiB, 38.0 % of the gap.

The three branches were also rebased onto the new main (c8258f9) in the same push: 3e3b7a6, 9172220, af6d96f. docs/findings.md is not among the files that moved, so no content changed besides the two points above. cargo xtask policy gives asset policy: 576 files ok there and both clippy gates exit 0; the gate-3 result for this revision is added below when the run finishes.

Both applied in `af6d96f`, thanks. - The columns are now *committed MiB* with *estimated resident MiB* in brackets, with the counting cited where it comes from: the class is taken from the allocation's whole size, reserved parts included (`crates/darner-gpu/src/copystat.rs:943-945`), only regions in state `MEM_COMMIT` are summed (`:932`), and only pages actually in memory raise the resident estimate (`:864-872`). Your 32 MiB reservation with 4 MiB committed is the reading the row now follows: committing moves the first column, touching moves only the second. - The gap is named class by class instead of "the rest": 48,156 committed against 25,796 estimated resident, so 22,360 MiB to explain, of which the title's page pool 6,236 MiB with nothing resident, host file mappings 9,671 - 7,413 = 2,258 MiB, and write-combined buffers 14,266 - 6,704 = 7,562 MiB; the first two alone are 8,494 MiB, 38.0 % of the gap. The three branches were also rebased onto the new `main` (`c8258f9`) in the same push: `3e3b7a6`, `9172220`, `af6d96f`. `docs/findings.md` is not among the files that moved, so no content changed besides the two points above. `cargo xtask policy` gives `asset policy: 576 files ok` there and both clippy gates exit 0; the gate-3 result for this revision is added below when the run finishes.
TrustNo1 changed title from WIP: [pr-docs][memory][NVIDIA] findings: what DARNER_MEMORY_MAP lists on an RTX 5080 to WIP: findings: what DARNER_MEMORY_MAP lists on an RTX 5080 2026-12-06 03:28:03 +00:00
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'memory-map-listed:TurboTheTurtle-memory-map-listed'
git switch 'TurboTheTurtle-memory-map-listed'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'Main'
git merge --no-ff 'TurboTheTurtle-memory-map-listed'
git switch 'TurboTheTurtle-memory-map-listed'
git rebase 'Main'
git switch 'Main'
git merge --ff-only 'TurboTheTurtle-memory-map-listed'
git switch 'TurboTheTurtle-memory-map-listed'
git rebase 'Main'
git switch 'Main'
git merge --no-ff 'TurboTheTurtle-memory-map-listed'
git switch 'Main'
git merge --squash 'TurboTheTurtle-memory-map-listed'
git switch 'Main'
git merge --ff-only 'TurboTheTurtle-memory-map-listed'
git switch 'Main'
git merge 'TurboTheTurtle-memory-map-listed'
git push origin 'Main'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!490
No description provided.