RTX 3070: no crash, black window, 80k graphics pipelines queued, long driver PSO waits (nvidia-dev) #2585
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?
Imported from ivall/xcl. Originally posted by enykyu on 2026-11-26T01:09:29Z.
s
Imported from ivall/xcl. Originally posted by imnicho on 2026-11-26T01:44:44Z.
RTX 5080 16 GB on a PC with 16 GB of RAM,
nvidia-devc044dc6d: the same pipeline waits, two things that end a run earlier on this branch, and where the memory is when RAM is short.Setup
device_type = "lockhart"),XCL_NETWORK=0.XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_HUGE_PSO_CONCURRENCY=2 XCL_UMA_SHADOW=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_DRED=1, afterxcl shaders … --precompile --only cs --pipelines --used-only(88 min here, 2 slices).1. Without #684 the world load ends in
xg::copy_from. One run of one onc044dc6d: access violation inVCRUNTIME140.dllunderxcl::hle::xg::copy_from(xg.rs:713), 64 s after the world's set-up. With #684's commite56dbc3cherry-picked (it applies cleanly) two runs of two pass that point. So this branch needs #684 asmaindoes.2.
XCL_COHERENT_HEAPS=sparse:16stops the title 5 s in, four runs of four (withXCL_COHERENT_MB=1024). The last lines areconsole descriptor heap: the title's memory … not used (window Some(1), committed true)and then the title's own breakpoint (0x80000003). With heaps that small in the sparse windows, the memory the title hands over for its descriptor heap lies in window 1, andconsole_heap.rstitle_memoryonly takes window 0. I did not trysparse:512or more.3. The waits, as in the report above. With #684 and the default heaps:
XCL_PSO_AHEAD=0, 1200 sOne such compile at a time holds the title's thread, so a 20-minute run gets about 20 of them done here. The report above has ~9.4 s for a ~293 KB one; RAM is short here while they compile (next point), so I cannot say how much of the 60 – 90 s is this CPU.
4. Memory with 16 GB of RAM (the first run of the table; Windows' counters sampled once a second beside it)
XCL_UMA_SHADOW=1), and 1.4 GB of the sparse pools is not mapped.VirtualQueryEx+QueryWorkingSetEx): 39.8 GB committed, 8.2 GB resident. Of the resident bytes about 2.7 GB are some 190 private allocations of 15.8 MB each (the size of a full Windows heap segment), 1.7 GB is the driver's own shader cache file (DXCache\*.nvph, 12.3 GB of it mapped into the process), and the coherent window has 0.4 GB resident of its 4,096 MB.XCL_PSO_AHEAD=0made no visible difference to commit in the first 190 s (24.8 against 24.9 GB at 120 s, 25.6 against 26.0 GB at 190 s).Not tested: the Series X profile,
sparse:512or more, and anything behind the waits (no 3D frame here yet; the runs go on, each keeps what the driver compiled).A question for the maintainers: where should a fix go for code that exists only on
nvidia-dev(the build-ahead gate, the shadowed window): as a PR againstnvidia-dev, or held until that code is onmain?AI use: Claude Code with Claude Fable 5.2 ran the runs and wrote this.
Imported from ivall/xcl. Originally posted by joeypercia on 2026-11-26T05:20:10Z.
Why
nvidia-devc044dc6dstops presenting at about 115 s in the world on NVIDIA, and two commits frommainthat end it. A game thread blocks inExecuteIndirect. The block is behind the whole-form build of a split compute program, which the offline precompile on this branch doesn't produce.Setup: RTX 4070 Ti 12 GB (621.40), Ryzen 7 7800X3D, Windows 11 Pro 26200, release. Retail title 1.0.2.1, Series X profile.
XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_TEXTURE_LEVEL_PAGES=1, scripted A presses. Compute pipelines precompiled first withxcl shaders … --precompile --only cs --pipelinesfrom the same build.What happens on
c044dc6d(two runs): about 2,700 frames at 30 fps, then from about 115 s no presents and no submits. One run went on like that for 43 minutes until my script ended it, with no device removal. Binds waited 0 ms (lazy pipelines: 84243 made … binds waited 0 ms).Where the title is, from
XCL_THREAD_DUMP_AT=180,300, symbolized with the build'sxcl.pdb. The same stack is in both dumps:An
ExecuteIndirectof a split program needs its whole form (Chain::whole). Another thread holdsbuild_wholewhile the driver builds that whole program on a title thread. Its stack is cut off in the driver, so the dump doesn't show its XCL frames.These programs are the title's largest, and on this branch nothing builds their whole form ahead:
2228be78("prebuild split compute dispatch-chain pieces under --pipelines"): without it, the offline pass builds only the unsplit whole underabi_root_signature_with, a blob that neither the split path norChain::whole()loads.ec80c071("reuse offline whole compute pipelines before splitting").Both are on
main, and neither is innvidia-dev.With both cherry-picked onto
c044dc6d(local,25d74490):2228be78applies cleanly.ec80c071conflicts indispatch_chain.rs, where I kept this branch's refused-PSO warning and passedComputeBuild::Chain. It builds..chain.pso, 234 s.Chain::whole. It then hits the next blocker:0x887a0005at 122.5 s, DRED page fault at VA0x0, no allocations, no list in flight, whileCS 1b5466f261a70cde(160×90 groups, split wave64) had been running for over 500 ms. That is the same removal as on #2057 on this card, so it isn't caused by these two commits.So
nvidia-devneeds2228be78andec80c071frommainfor an offline precompile to help on NVIDIA. #2624 (@theaustinayers) already brings both (it mergesmainthrough #2371), so this explains why the stall should end with it; no separate change is needed.Not tested: more than one run with the two commits, other GPUs, and the Series S profile.
AI use: Claude Code (Claude Opus 5.5) ran the runs on my machine, symbolized the dumps, cherry-picked the commits and wrote this.
Imported from ivall/xcl. Originally posted by PACDevX on 2026-11-26T11:45:56Z.
Additional NVIDIA data for the device-removal case in this thread. RTX 3090 24 GiB, driver 621.24, Windows Sandbox with 40 GiB, Series S profile, local XCL release
c3572b3andXCL_DRED=pagefault.CreateReservedResourcefirst reported0x887A0005. The next D3D12 calls also reported removal. DRED returned GPU VA 0 with empty allocation lists and unknown state. There were no 5 s Wait64 releases in this run. The last DXGI sample was 23,363 MiB local usage against a 23,193 MiB budget.The same executable with full DRED and automated menu input had 10 presents in the first 51 critical windows versus 46 with page-fault DRED and manual input. Both the mode and the menu timing changed. The removal trace lacked an ETW event, so the WDDM reason and any relation to the compute shader mentioned above remain unverified.
AI use: Codex (GPT-6) collected the logs, ran the native descriptor check and drafted this report.
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-27T18:12:44Z.
RTX 3060 12 GB,
main6089122a: the stop in the first run is the driver compiles. The same build run again, with the driver's blobs on disk, presents to the end.Two 300 s runs of the same release build, one after the other.
XCL_ACTIVITY=1, A pressed every 4 s from 20 s, warm DXIL cache, no other switches.huge(440–640 KB DXIL), 3.9–7.2 s each, one after another on one title thread (ungated here (a title thread's …))In run 1, at 190 s submits, draws and dispatches all go to 0 together and stay there. Run 1 then compiles those 28 pipelines with
driver blob absentuntil the run ends, and says the blobs are kept on disk for the next run. Run 2 doesn't need them again, and the title keeps going. No device removals or crashes in either run.So on this card, at this point of loading, frames stop because a title thread builds huge graphics pipelines one at a time, with nothing in the offline preparation covering them. Video memory is about 6 GB over the card at the same time in both runs, and that doesn't stop it. That matches the waits described above. I haven't tried
XCL_HUGE_PSO_CONCURRENCYhere.RTX 3060 12 GB (driver 581.80), i9-14900KF, 64 GB RAM, Windows 11 26200.
AI use: Claude Code (Claude Opus 5.5) ran the title and read the logs, and wrote this report.