Report unavailable private-memory counters in the D3D12 memory example #1182
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1182
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1182"
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?
@ghptc on GitHub · 2026-11-28 15:00 UTC · original
ghptc:fix/list-memory-private-counter→main· +69 −16 · 1 files · 2 commits · merged 2026-11-29 08:16 UTCOn Proton Experimental, the D3D12 command-list example printed
private 0 MBat every checkpoint, including while mapped upload buffers were live. A CPU-only control reproduced this twice. A second pair of runs prefilledPrivateUsagewith a sentinel.K32GetProcessMemoryInfosucceeded, returned a 72-byte structure for the 80-byte request and left the sentinel untouched. The example had printed its zero initializer. The address-space walk increased by exactly 32 MiB on commit and returned to baseline on release.PagefileUsageincreased only after the program touched the pages.The example now checks success and the returned structure size and reports an unavailable private counter explicitly. In that case it also prints the sum of committed
MEM_PRIVATEregions from its existingVirtualQuerywalk, with its own label. A valid nonzero counter keeps its existing display.Two Windows-target regression tests passed under Proton. The example was also exercised on an RTX 5070 with the bounded synthetic workload from #1163 applied locally. All three upload batches released and the private-region column reported 44 MB. The branch contains only the reporting change and its tests.
Run the regression tests on Windows with the following command.
@Exopus-0x65f7ad0 on GitHub · 2026-11-28 16:53 UTC · original
The native Windows side: Windows 11 26300, RTX 5060 Ti 8 GB (NVIDIA driver from today), this PR's head,
cargo run --release -p victory-gpu --example list_memory.K32GetProcessMemoryInfogives a valid, non-zero counter, so the existing display is kept as intended (no "unavailable" label):A side observation that may matter for the 16 GB threads (#944, #1064): on this driver, write-combined memory isn't given back when lists and upload buffers are released. About 1.7–1.9 GB stays committed after "released" and "all gone".
ba8d0aa48atoe5840c20d1