WIP: findings: what DARNER_MEMORY_MAP lists on an RTX 5080 #490
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!490
Loading…
Reference in a new issue
No description provided.
Delete branch "TurboTheTurtle/Darner:memory-map-listed"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Contributor role (optional)
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.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.proc_private_mbmedians 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.0for timings.How it was tested
af6d96fon385954bon9172220on3e3b7a6onc8258f9(rebased; the numbers were measured at4e1e2efond91d8e4). One file,docs/findings.md, +30/-4, no code. The launcher of those game runs wasscripts\play-nvidia.ps1, which main renamed toscripts\build-darner.ps1.cargo xtask policy->asset policy: 576 files ok(onc8258f9).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 --lib1823 passed, 0 failed, 81 ignored;darner-shader --lib568 passed, 0 failed, 16 ignored. The two failures the earlier reports on this series listed are gone on the newmain: thewatch::parallel-run flake of #389 (taken by #262 and its follow-up, which hold the watch journal's test lock) andemit::waterfall_tests::sampled_marks_restore_early_depth_only_when_safe_in_pixel_shadersat the DXIL validator (taken by #227, which writes SV_Depth in the early-depth fixture).scripts\play-nvidia.ps1 -Build diag -Res 1440 -Dlss quality -NoMenu,-MorewithDARNER_ADAPTER=5080,DARNER_EXIT_AFTER_WORLD_S=120,DARNER_BENCH_CSV,DARNER_KEYS=3:Enter,10:Enter,DARNER_DATA_DIRat the existingdatafolder, frame generation off):draws/frameabove 1,000 in 3,020 / 3,419 / 3,166 rows of the three windows,vram_used_mbmedians 12,410 / 12,598 / 12,532, no frame over 50 ms in any arm.Checklist
main.docs/asset-policy.md(one text file).Checked for overlap
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 (otherdocs/findings.mdrows). None carries these numbers.Made with AI assistance (DeepSeek).
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 stateMEM_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 implementationUsing 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
4e1e2ef242toaf6d96f936Both applied in
af6d96f, thanks.crates/darner-gpu/src/copystat.rs:943-945), only regions in stateMEM_COMMITare 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 three branches were also rebased onto the new
main(c8258f9) in the same push:3e3b7a6,9172220,af6d96f.docs/findings.mdis not among the files that moved, so no content changed besides the two points above.cargo xtask policygivesasset policy: 576 files okthere and both clippy gates exit 0; the gate-3 result for this revision is added below when the run finishes.WIP: [pr-docs][memory][NVIDIA] findings: what DARNER_MEMORY_MAP lists on an RTX 5080to WIP: findings: what DARNER_MEMORY_MAP lists on an RTX 5080View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.