Linux/Proton: with VICTORY_WAVE_FOLDED on, NVIDIA's compiler never returns from two compute pipelines and takes all the PC's memory (preload ended at 26 GB); bisected to 8f0a0c24 #3427
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 trustno1-coder/VIctory-NVIDIA. Originally posted by slopcreator9003 on 2026-11-29T23:12:41Z.
What happened
On Linux/Proton, with
VICTORY_WAVE_FOLDEDat its default (on), NVIDIA's shader compiler does not come back from two compute pipelines and takes memory until the kernel ends the process. It happened in the last step of--preload("into the pipeline library"), every time, and the whole PC ran out of memory with it.Out of memory: Killed process ... (main) ... anon-rss:26303220kB).victory warm --these <n>inside a memory limit (systemd-run --user --scope -p MemoryMax=...):VICTORY_WAVE_FOLDED=08f0a0c248f2a6d96ae644dbf047d3c5b9179f501b2711644ca5566cc8ede1bccf44bdca312da70b97c3886160903802745985664perf(user time, 3 s while it grows) has 88.75 % inlibnvidia-gpucomp.so.620.73.04, and the memory is the driver's own:[heap]in/proc/<pid>/mapswas 7.76 GB at that moment. The translation itself takes 0.7 to 0.8 s either way.Blame commit:
8f0a0c24("Shaders: wave64 programs folded exactly onto 32-lane hosts (VICTORY_WAVE_FOLDED, on)"), bygit bisectbetween568c5e5d(good) and55d06914(bad) in a clean worktree: each step builds the commit and makes the first pipeline alone under a 6 GB limit. 21 commits tried (15 good, 6 bad), 16 left out because they do not build; its neighbours on both sides built.What the folded form gives the driver for
b2711644ca5566cc(fresh translation,VICTORY_WAVE_WHY=1):2.4 times the code does not explain 0.4 GB against more than 14, so my guess is something in the compiler that grows much faster than its input (twice the values alive across 98 wave-wide branches). Not shown: the library has no symbols.
The memory guard does not see it under Wine. Its lines say
process 0 MB privateand "the mean 0 MB, the biggest lately 0 MB" for the whole run, so it learns nothing of what a compile takes, and it put compiles off only in the last three seconds (lines below).Workaround:
--set VICTORY_WAVE_FOLDED=0(forplay; the variable forwarmandpreload). With it the same preload ends in 5.8 min at 8.5 GB at most, and the game runs.Related: a comment on #2278 (closed for another reason) has the same thing on another card, driver and program: RTX 2060, driver 615.78.08,
CS_ShadowRenderTiledCascadesAlphaCBPPPC(f133e35efed2a48a), 95 % inlibnvidia-gpucomp, memory growing, fine with folding off. It asked whether a 620.x driver copes; for these two programs 620.73.04 does not. #3173 is the folded programs' cost on the card, also Linux.Not checked: Windows; which other folded programs do this; whether it is the doubling or the wave-wide branches (
VICTORY_WAVE_FOLDED_SKIP/_ONLYcould tell); #2261's limit on VGPRs (this program has 216).A thought, as in that comment: a limit on the memory or time of one driver compile, after which the pipeline is listed in
warm-bad.txt, would make this a missing effect and not a PC out of memory. In--preload's library step nothing notes the pipelines being made, so finding the one took a run under a memory limit.GPU and driver
RTX 4070 Ti SUPER 16 GB, NVIDIA 620.73.04 (Linux)
CPU, RAM and Windows version
Ryzen 9 7900X, 32 GB (no swap). Linux, not Windows: NixOS 26.05, kernel 7.3.5, GE-Proton11-14 with the Wine server's view-tree patch (docs/linux-proton.md), vkd3d-proton master
71cae091bbeside victory.exe,VKD3D_CONFIG=no_descriptor_heap,VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains.VIctory release or commit
main
55d06914, built here withcargo xwin(with local changes outside the translator; the bisect ran on clean commits).Settings
Series S, DLSS quality, frame generation off, ray tracing off.
play ... --series-s --dlss quality --no-framegen-ready --preload.Logs
From the preload's window (its own lines; the title had not started, so there is no crash log). Memory flat, then growing while compiles still start and finish:
The kernel, a second later:
One pipeline alone, folding on, in a 6 GB limit (the line it ends on; no "made" line follows):
Are you working on a fix?
No
Written with AI assistance (Claude).