NVIDIA: intermittent device removal, GPU reads windows / list scratch the layer gave back (1.5 s to 106 s earlier); keep-freed is off on 32 GB PCs #455
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#455
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@JFIREonFIRE on GitHub · 2026-11-27 02:46 UTC · original
Looking for help with an intermittent NVIDIA device removal: the card reads memory the layer gave back, seconds to minutes earlier. Roughly one 4-to-11-minute run in three or four on an RTX 3090 / 32 GB (driver 32.0.16.2101), cool_fox-based tree with port 1 and the switches from #394,
VICTORY_D3D12_DRED=light. Breadcrumbs from five of them:VICTORY_WINDOWS_BAR_MB)0x51f000000+0x400000)All page faults, all "2–13 submissions sent ahead", none with black frames before.
What I found so far:
VICTORY_KEEP_FREEDdescribe faults of this kind on reads past a view into memory given back, and keep freed memory as the cure. But that keeping is off on PCs with 32 GB or less:ram_idle_mspasseskeep_freed() && !residency::limited_host_ram(), the scratch pool usesSPARE_MOST(128 MiB) instead ofSPARE_KEPTunder the same test, andram_idle_mstakes the smaller of free RAM and commit headroom, which with a system-managed page file is under 2 GiB, so windows and staging went back 2 s after their last use. The same lines are ina-publier'shost.rs.Question for whoever knows the window and scratch lifetimes: what can hold a window's or a scratch chunk's GPU address without holding the object? Candidates I can think of: a root CBV/SRV address set from a window into a list that is replayed or kept (
host lists never reset), indirect argument or count buffers written with such addresses, raw views the title-memory directory (memory.rs) writes per numbered copy, or descriptors we write into the title's heap. AVICTORY_*switch that logs every GPU address handed out from a window or chunk together with its owner would find it; is there one already?Measured and written with Claude Code (AI). No game files.