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

Open
opened 2026-11-29 23:12:41 +00:00 by slopcreator9003 · 0 comments
slopcreator9003 commented 2026-11-29 23:12:41 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by slopcreator9003 on 2026-11-29T23:12:41Z.


What happened

On Linux/Proton, with VICTORY_WAVE_FOLDED at 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.

  • The step ran flat at about 6 GB for five minutes. From about 7,150 of 11,456 pipelines the process grew by about 1 GB a second, and the kernel ended it at 26.3 GB on a PC with 30 GB and no swap (Out of memory: Killed process ... (main) ... anon-rss:26303220kB).
  • The pipelines, each made alone with victory warm --these <n> inside a memory limit (systemd-run --user --scope -p MemoryMax=...):
pipeline key compute shader folding on (default) VICTORY_WAVE_FOLDED=0 before 8f0a0c24
8f2a6d96ae644dbf047d3c5b9179f501 b2711644ca5566cc 11.8 GB after 23 s, ended at a 12 GB limit; also ended at 14 GB made, 0.4 GB at most made in 0.7 s
8ede1bccf44bdca312da70b97c388616 0903802745985664 8 GB after 10 s, ended at an 8 GB limit made in 1.6 s, 0.4 GB at most made in 1.6 s
  • The other 15 pipelines that were being made when the process ended take about 0.5 GB each alone, so it is these two (of what I found; I did not look for more).
  • Where it is: perf (user time, 3 s while it grows) has 88.75 % in libnvidia-gpucomp.so.620.73.04, and the memory is the driver's own: [heap] in /proc/<pid>/maps was 7.76 GB at that moment. The translation itself takes 0.7 to 0.8 s either way.
  • Whether the compile would end with more memory I do not know; every try met its limit first.

Blame commit: 8f0a0c24 ("Shaders: wave64 programs folded exactly onto 32-lane hosts (VICTORY_WAVE_FOLDED, on)"), by git bisect between 568c5e5d (good) and 55d06914 (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):

folding off folding on
translated shader (the cache's file) 121,780 bytes 294,868 bytes
VGPRs 216 432 and the temporaries
WAVE64-FOLD 216 console VGPRs, 32 host threads per group, 112680 bytes of code
WAVE64-FOLD EXEC set to every lane again: 98 EXEC branches taken wave-wide
WAVE64-RETRY folded: wave Some(32)

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 private and "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 (for play; the variable for warm and preload). 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 % in libnvidia-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 / _ONLY could 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 71cae091b beside victory.exe, VKD3D_CONFIG=no_descriptor_heap, VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains.

VIctory release or commit

main 55d06914, built here with cargo 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:

2026-11-29T20:34:56.523204Z  INFO victory_gpu::compilemem: compile memory: process 0 MB private, 6276 MB in memory; the PC has 19642 MB free and 19642 MB left to commit; buffer mirror span 0 MB, texture staging 0 MB; compiles: 16 running (most at once 16), 7061 started, 7045 finished, 0 waited to start (0 ms in all)
2026-11-29T20:35:06.533978Z  INFO victory_gpu::compilemem: compile memory: process 0 MB private, 14833 MB in memory; the PC has 11227 MB free and 11227 MB left to commit; buffer mirror span 0 MB, texture staging 0 MB; compiles: 16 running (most at once 16), 7221 started, 7205 finished, 0 waited to start (0 ms in all)
2026-11-29T20:35:23.379177Z  WARN victory_gpu::memguard: memory guard: a compile is put off (it is made again later; the process goes on) what="0252f026455425130546183155f9fb1d" so_far=1 free_physical_mb=7066 free_commit_mb=7066 reason="the commit left would fall under its floor"
2026-11-29T20:35:26.558187Z  INFO victory_gpu::compilemem: compile memory: process 0 MB private, 25434 MB in memory; the PC has 2350 MB free and 2350 MB left to commit; buffer mirror span 0 MB, texture staging 0 MB; compiles: 7 running (most at once 16), 7515 started, 7508 finished, 76 waited to start (24352 ms in all)
2026-11-29T20:35:26.714129Z  WARN victory_gpu::pipeline::refused: host pipeline failed (logged once per key) key="296d62427f26f69f+8653e7e2dc1e88dc" stage="mesh" hr=0x8007000e lacks="" reason="mesh 0x8007000e" error=Out of memory. (0x8007000E)

The kernel, a second later:

Out of memory: Killed process 1776298 (main) total-vm:34355680kB, anon-rss:26303220kB, file-rss:148212kB, shmem-rss:1144kB

One pipeline alone, folding on, in a 6 GB limit (the line it ends on; no "made" line follows):

2026-11-29T21:56:07.207453Z  INFO victory_gpu::pipeline: shader translated stage="compute" hash=b2711644ca5566cc user_data=2 samplers=8 ms=720
Memory cgroup out of memory: Killed process ... (main) ... anon-rss:5978220kB

Are you working on a fix?

No

Written with AI assistance (Claude).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6685462004 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3427). Originally posted by [slopcreator9003](https://github.com/slopcreator9003) on 2026-11-29T23:12:41Z. --- ### What happened On Linux/Proton, with `VICTORY_WAVE_FOLDED` at 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. - The step ran flat at about 6 GB for five minutes. From about 7,150 of 11,456 pipelines the process grew by about 1 GB a second, and the kernel ended it at 26.3 GB on a PC with 30 GB and no swap (`Out of memory: Killed process ... (main) ... anon-rss:26303220kB`). - The pipelines, each made alone with `victory warm --these <n>` inside a memory limit (`systemd-run --user --scope -p MemoryMax=...`): | pipeline key | compute shader | folding on (default) | `VICTORY_WAVE_FOLDED=0` | before 8f0a0c24 | |---|---|---|---|---| | `8f2a6d96ae644dbf047d3c5b9179f501` | `b2711644ca5566cc` | 11.8 GB after 23 s, ended at a 12 GB limit; also ended at 14 GB | made, 0.4 GB at most | made in 0.7 s | | `8ede1bccf44bdca312da70b97c388616` | `0903802745985664` | 8 GB after 10 s, ended at an 8 GB limit | made in 1.6 s, 0.4 GB at most | made in 1.6 s | - The other 15 pipelines that were being made when the process ended take about 0.5 GB each alone, so it is these two (of what I found; I did not look for more). - Where it is: `perf` (user time, 3 s while it grows) has 88.75 % in `libnvidia-gpucomp.so.620.73.04`, and the memory is the driver's own: `[heap]` in `/proc/<pid>/maps` was 7.76 GB at that moment. The translation itself takes 0.7 to 0.8 s either way. - Whether the compile would end with more memory I do not know; every try met its limit first. **Blame commit:** 8f0a0c24 ("Shaders: wave64 programs folded exactly onto 32-lane hosts (VICTORY_WAVE_FOLDED, on)"), by `git bisect` between 568c5e5d (good) and 55d06914 (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`): | | folding off | folding on | |---|---|---| | translated shader (the cache's file) | 121,780 bytes | 294,868 bytes | | VGPRs | 216 | 432 and the temporaries | ``` WAVE64-FOLD 216 console VGPRs, 32 host threads per group, 112680 bytes of code WAVE64-FOLD EXEC set to every lane again: 98 EXEC branches taken wave-wide WAVE64-RETRY folded: wave Some(32) ``` 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 private` and "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` (for `play`; the variable for `warm` and `preload`). 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 % in `libnvidia-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` / `_ONLY` could 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 `71cae091b` beside victory.exe, `VKD3D_CONFIG=no_descriptor_heap`, `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains`. ### VIctory release or commit main 55d06914, built here with `cargo 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: ``` 2026-11-29T20:34:56.523204Z INFO victory_gpu::compilemem: compile memory: process 0 MB private, 6276 MB in memory; the PC has 19642 MB free and 19642 MB left to commit; buffer mirror span 0 MB, texture staging 0 MB; compiles: 16 running (most at once 16), 7061 started, 7045 finished, 0 waited to start (0 ms in all) 2026-11-29T20:35:06.533978Z INFO victory_gpu::compilemem: compile memory: process 0 MB private, 14833 MB in memory; the PC has 11227 MB free and 11227 MB left to commit; buffer mirror span 0 MB, texture staging 0 MB; compiles: 16 running (most at once 16), 7221 started, 7205 finished, 0 waited to start (0 ms in all) 2026-11-29T20:35:23.379177Z WARN victory_gpu::memguard: memory guard: a compile is put off (it is made again later; the process goes on) what="0252f026455425130546183155f9fb1d" so_far=1 free_physical_mb=7066 free_commit_mb=7066 reason="the commit left would fall under its floor" 2026-11-29T20:35:26.558187Z INFO victory_gpu::compilemem: compile memory: process 0 MB private, 25434 MB in memory; the PC has 2350 MB free and 2350 MB left to commit; buffer mirror span 0 MB, texture staging 0 MB; compiles: 7 running (most at once 16), 7515 started, 7508 finished, 76 waited to start (24352 ms in all) 2026-11-29T20:35:26.714129Z WARN victory_gpu::pipeline::refused: host pipeline failed (logged once per key) key="296d62427f26f69f+8653e7e2dc1e88dc" stage="mesh" hr=0x8007000e lacks="" reason="mesh 0x8007000e" error=Out of memory. (0x8007000E) ``` The kernel, a second later: ``` Out of memory: Killed process 1776298 (main) total-vm:34355680kB, anon-rss:26303220kB, file-rss:148212kB, shmem-rss:1144kB ``` One pipeline alone, folding on, in a 6 GB limit (the line it ends on; no "made" line follows): ``` 2026-11-29T21:56:07.207453Z INFO victory_gpu::pipeline: shader translated stage="compute" hash=b2711644ca5566cc user_data=2 samplers=8 ms=720 Memory cgroup out of memory: Killed process ... (main) ... anon-rss:5978220kB ``` ### Are you working on a fix? No _Written with AI assistance (Claude)._
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA#3427
No description provided.