Report unavailable private-memory counters in the D3D12 memory example #1182
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ghptc on 2026-11-28T15:00:23Z.
On 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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Exopus-0x65f7ad0 on 2026-11-28T16:53:36Z.
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".