Compute pipeline build takes >120 GB of memory on NVIDIA #1588

Open
opened 2026-11-24 18:07:18 +00:00 by PrMeiliv · 9 comments
PrMeiliv commented 2026-11-24 18:07:18 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by PrMeiliv on 2026-11-24T18:07:18Z.


Game and package version

Retail 1.0.2.1

What happens

Setup:
9800x3d
4080
32go

Precompile (xcl shaders shaders.rpf --precompile --pipelines)

  • 3 runs, two of them on 9e3831e. Each crashes with LLVM ERROR: out of memory / Allocation failed after
    22600/26503 shaders, at "pipelines: 450–525 made, 0 refused".
  • After raising the page file to 120 GB and restarting with 2 pipeline threads, the same point
    uses ~123 GB of commit.

In game (same build, same cache)

  • With an automatic page file: process commit 28.7 GB at 66 s. World load at ~50 s, last frame ~66 s,
    title watchdog crash (+0x23cf683, null write) at 95 s. One compute PSO took 44.6 s (921 KB DXIL).
  • Next run, memory allocation of 11206656 bytes failed (exit 0xc0000409) at 43 GB of commit.
  • With a 120 GB page file: commit 69 GB at 40 s, 124 GB at 66 s, then the same watchdog crash at ~114 s.
    XCL's own counters (target pages, pools, arenas, sparse) are about the same as in the 28.7 GB run,
    so ~95 GB is outside them.

Guess: one large compute program (maybe bigger because of the split wave64 form) needs unbounded
memory in DXC or the NVIDIA compiler. It sits on the world-load path, so this is likely the
"slow build" holding up the first world frame on NVIDIA.

XCL version

9e3831e

GPU and driver version

4080 32.0.16.2124

Windows version

26h2 36300.9974

report.json and xcl.log

xcl.log
report.json

Console output


Written by Claude (Opus 5.5)

<!-- greyfinch-sync:ivall/xcl:issue:6588293738 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1598). Originally posted by [PrMeiliv](https://github.com/PrMeiliv) on 2026-11-24T18:07:18Z. --- ### Game and package version Retail 1.0.2.1 ### What happens Setup: 9800x3d 4080 32go **Precompile** (`xcl shaders shaders.rpf --precompile --pipelines`) - 3 runs, two of them on 9e3831e. Each crashes with `LLVM ERROR: out of memory / Allocation failed` after 22600/26503 shaders, at "pipelines: 450–525 made, 0 refused". - After raising the page file to 120 GB and restarting with 2 pipeline threads, the same point uses ~123 GB of commit. **In game** (same build, same cache) - With an automatic page file: process commit 28.7 GB at 66 s. World load at ~50 s, last frame ~66 s, title watchdog crash (`+0x23cf683`, null write) at 95 s. One compute PSO took 44.6 s (921 KB DXIL). - Next run, `memory allocation of 11206656 bytes failed` (exit 0xc0000409) at 43 GB of commit. - With a 120 GB page file: commit 69 GB at 40 s, 124 GB at 66 s, then the same watchdog crash at ~114 s. XCL's own counters (target pages, pools, arenas, sparse) are about the same as in the 28.7 GB run, so ~95 GB is outside them. **Guess:** one large compute program (maybe bigger because of the split wave64 form) needs unbounded memory in DXC or the NVIDIA compiler. It sits on the world-load path, so this is likely the "slow build" holding up the first world frame on NVIDIA. ### XCL version 9e3831e ### GPU and driver version 4080 32.0.16.2124 ### Windows version 26h2 36300.9974 ### report.json and xcl.log [xcl.log](https://github.com/user-attachments/files/35361397/xcl.log) [report.json](https://github.com/user-attachments/files/35361396/report.json) ### Console output ```text ``` Written by Claude (Opus 5.5)
ofc0urse commented 2026-11-24 19:07:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by ofc0urse on 2026-11-24T18:29:31Z.


Same picture here on an RTX 4060 Ti 8 GB (driver 621.24, 32 GB RAM, main 9e3831e + local test-only patches, XCL_HEAP_WINDOWS=1), and it goes away when the few translated sources over 8 MB of HLSL are not compiled.

I added a log line for every DXC compile of 4 MB or more and a test-only switch that refuses sources over a size. With sources over 8 MB refused, xcl shaders <pack> --precompile --only cs --pipelines refused six: 12.0, 12.3, 12.7, 29.5, 29.6 and 147.4 MB of HLSL. Free commit has stayed flat at 43–52 GB since, now past 1,475 pipelines, 0 refused; sources of 4–4.6 MB build in 21–126 s each. Without the cap the same command took free commit from ~48 GB to 4.9 GB in about 2 minutes, and a title run went from 33 to 82 GB of process commit in ~40 s with xcl-dxc-0 inside dxcompiler.dll at the time. Numbers per DXC flag are in #1526 (https://github.com/xcl-dev/xcl/pull/1526#issuecomment-7139633778), the title-run side in #1566 (https://github.com/xcl-dev/xcl/issues/1566#issuecomment-7140177866).

So the ~95 GB outside XCL's counters is most likely DXC compiling these sources inside the XCL process (its heap is not in XCL's counting allocator). The 147.4 MB one is probably the 154.6 MB program measured in #1269, in the heap-window form. I can't separate it fully from the driver: in the precompile run without the cap I had no per-compile log yet, and I did not try which of the six alone takes the memory.

A workaround that worked here, test-only and not a PR: refuse those sources in dxc::compile_here before DXC sees them, so their pipelines are refused like any failed compile.

AI use: Claude Code (Claude Opus 5.5) ran the builds and runs and wrote this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7140719151 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7140719151). Originally posted by [ofc0urse](https://github.com/ofc0urse) on 2026-11-24T18:29:31Z. --- Same picture here on an RTX 4060 Ti 8 GB (driver 621.24, 32 GB RAM, `main` `9e3831e` + local test-only patches, `XCL_HEAP_WINDOWS=1`), and it goes away when the few translated sources over 8 MB of HLSL are not compiled. I added a log line for every DXC compile of 4 MB or more and a test-only switch that refuses sources over a size. With sources over 8 MB refused, `xcl shaders <pack> --precompile --only cs --pipelines` refused six: **12.0, 12.3, 12.7, 29.5, 29.6 and 147.4 MB** of HLSL. Free commit has stayed flat at 43–52 GB since, now past 1,475 pipelines, 0 refused; sources of 4–4.6 MB build in 21–126 s each. Without the cap the same command took free commit from ~48 GB to 4.9 GB in about 2 minutes, and a title run went from 33 to 82 GB of process commit in ~40 s with `xcl-dxc-0` inside `dxcompiler.dll` at the time. Numbers per DXC flag are in #1526 (https://github.com/xcl-dev/xcl/pull/1526#issuecomment-7139633778), the title-run side in #1566 (https://github.com/xcl-dev/xcl/issues/1566#issuecomment-7140177866). So the ~95 GB outside XCL's counters is most likely DXC compiling these sources inside the XCL process (its heap is not in XCL's counting allocator). The 147.4 MB one is probably the 154.6 MB program measured in #1269, in the heap-window form. I can't separate it fully from the driver: in the precompile run without the cap I had no per-compile log yet, and I did not try which of the six alone takes the memory. A workaround that worked here, test-only and not a PR: refuse those sources in `dxc::compile_here` before DXC sees them, so their pipelines are refused like any failed compile. AI use: Claude Code (Claude Opus 5.5) ran the builds and runs and wrote this; I checked it before posting.
joeypercia commented 2026-11-24 21:09:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by joeypercia on 2026-11-24T20:07:31Z.


Two open PRs target exactly the sources @ofc0urse names, and with both merged the blow-up is gone here: #1321 (structured code over 128 bytes per code byte falls back to pc blocks, so the 147 MB program) and #1316 on #1315 (compute programs through a compact form: CS_ScreenProbes_ActivateProbes 29.7 MB → 1.05 MB of DXIL).

Tested: RTX 4070 Ti (driver 616.56), Ryzen 7 7800X3D, 32 GB RAM, automatic page file (limit ~68–75 GB during these runs), Windows 11 Pro 26200, release builds, retail 1.0.2.1, no XCL_PSO_WAIT_MS. #1321 conflicts with main since #680 (both add a line at the top of translate); I merged it locally keeping both, and moved its program binding into translate() where #1316 splits off prepare().

tree (all + #1288 + #742) process commit what happened
main 9e3831e 31 GB at 270 s → 100 GB at ~400 s (page file at its limit, 0 free) a pipeline worker busy 5+ min on one compute program, no frames after 98 s; I ended it
9e3831e + #1321 + #1316 flat 32–33 GB from 300 s to 650 s the compact ActivateProbes (1,053,264 B) built in 20.5 s; ~1 MB compute PSOs after it at 48–63 s each; no frames after 118 s
precompile (--precompile --only cs --pipelines, 6 DXC threads) on the same tree 4.4 → 9.2 GB went past record 22,600 (where the crash above happens) to 775 pipelines, 0 refused; stopped by me after ~1 h (slow, not stuck)

So for this issue's memory, #1321 + #1316 look like the fix; the remaining world-load stop on NVIDIA here is the build time of the ~1 MB compute pipelines, not memory.

Not tested: #1321 or #1316 alone (only together); XCL_HEAP_WINDOWS=1; the direct DXIL path (XCL_DIRECT_DXIL=1) with this title.

AI use: Claude Code (Claude Opus 5.5) ran the builds and the title on my machine, read the logs and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7143075021 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7143075021). Originally posted by [joeypercia](https://github.com/joeypercia) on 2026-11-24T20:07:31Z. --- Two open PRs target exactly the sources @ofc0urse names, and with both merged the blow-up is gone here: #1321 (structured code over 128 bytes per code byte falls back to `pc` blocks, so the 147 MB program) and #1316 on #1315 (compute programs through a compact form: `CS_ScreenProbes_ActivateProbes` 29.7 MB → 1.05 MB of DXIL). **Tested**: RTX 4070 Ti (driver 616.56), Ryzen 7 7800X3D, 32 GB RAM, automatic page file (limit ~68–75 GB during these runs), Windows 11 Pro 26200, release builds, retail 1.0.2.1, no `XCL_PSO_WAIT_MS`. #1321 conflicts with `main` since #680 (both add a line at the top of `translate`); I merged it locally keeping both, and moved its `program` binding into `translate()` where #1316 splits off `prepare()`. | tree (all + #1288 + #742) | process commit | what happened | |---|---|---| | `main` `9e3831e` | 31 GB at 270 s → **100 GB at ~400 s** (page file at its limit, 0 free) | a pipeline worker busy 5+ min on one compute program, no frames after 98 s; I ended it | | `9e3831e` + #1321 + #1316 | **flat 32–33 GB** from 300 s to 650 s | the compact `ActivateProbes` (1,053,264 B) built in 20.5 s; ~1 MB compute PSOs after it at 48–63 s each; no frames after 118 s | | precompile (`--precompile --only cs --pipelines`, 6 DXC threads) on the same tree | 4.4 → 9.2 GB | went past record 22,600 (where the crash above happens) to 775 pipelines, 0 refused; stopped by me after ~1 h (slow, not stuck) | So for this issue's memory, #1321 + #1316 look like the fix; the remaining world-load stop on NVIDIA here is the build time of the ~1 MB compute pipelines, not memory. **Not tested**: #1321 or #1316 alone (only together); `XCL_HEAP_WINDOWS=1`; the direct DXIL path (`XCL_DIRECT_DXIL=1`) with this title. **AI use**: Claude Code (Claude Opus 5.5) ran the builds and the title on my machine, read the logs and wrote this report.
CowboyBingus commented 2026-11-24 22:06:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by CowboyBingus on 2026-11-24T22:01:44Z.


Peak commit of two of the very large compute programs, per program, on the same base: main 266b845 against #1316 at 964f5ed with XCL_COMPACT_CS unset (auto). RTX 5070 Ti, xcl shaders <record folder> --measure-pso <hash> (driver caches off), one cold run each (new exe copy, empty XCL_DXIL_CACHE), peak private commit sampled every 0.5 s, main's runs stopped at 600 s:

program main 266b845 #1316 964f5ed
56c0cd3b82a00c6e not built within 600 s, peak 4,986 MB built: DXC 15.0 s + driver 18.3 s, peak 579 MB
958400d2caf07244 not built within 600 s, peak 4,973 MB built: DXC 23.4 s + driver 6.2 s, peak 503 MB
  • This is one program per process through --measure-pso, not a --pipelines run.
  • 95cc13288a27a96e (ActivateRays) is not affected by #1316: its compact form is refused (9975-word table (at most 8192)), so both builds translate it the same way.
  • Commands and the HLSL / DXIL sizes are in #1316's description, under Tested.

AI use: Claude Code (Claude Opus 5.5) ran the measurements and wrote this comment.

<!-- greyfinch-sync:ivall/xcl:comment:7145705582 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7145705582). Originally posted by [CowboyBingus](https://github.com/CowboyBingus) on 2026-11-24T22:01:44Z. --- Peak commit of two of the very large compute programs, per program, on the same base: `main` `266b845` against [#1316](https://github.com/xcl-dev/xcl/pull/1316) at `964f5ed` with `XCL_COMPACT_CS` unset (`auto`). RTX 5070 Ti, `xcl shaders <record folder> --measure-pso <hash>` (driver caches off), one cold run each (new exe copy, empty `XCL_DXIL_CACHE`), peak private commit sampled every 0.5 s, `main`'s runs stopped at 600 s: | program | `main` `266b845` | #1316 `964f5ed` | |---|---|---| | `56c0cd3b82a00c6e` | not built within 600 s, peak 4,986 MB | built: DXC 15.0 s + driver 18.3 s, peak 579 MB | | `958400d2caf07244` | not built within 600 s, peak 4,973 MB | built: DXC 23.4 s + driver 6.2 s, peak 503 MB | - This is one program per process through `--measure-pso`, not a `--pipelines` run. - `95cc13288a27a96e` (`ActivateRays`) is not affected by #1316: its compact form is refused (`9975-word table (at most 8192)`), so both builds translate it the same way. - Commands and the HLSL / DXIL sizes are in #1316's description, under **Tested**. AI use: Claude Code (Claude Opus 5.5) ran the measurements and wrote this comment.
O5-7 commented 2026-11-25 08:08:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by O5-7 on 2026-11-25T07:21:20Z.


Claiming the offline xcl shaders --precompile --pipelines memory-gating slice for #1598 (disjoint from #1638's DXC subprocess cap and #1315/#1316's compact backend).

Currently Pipelines::make_with_cache_path in crates/xcl/src/shaders.rs bounds only total thread count (XCL_PIPELINE_THREADS, default 4) and the 8 MiB single-shader cap (XCL_PIPELINE_MAX_KB), so up to 4 large (1–8 MiB) uncached compute DXILs can enter the NVIDIA driver simultaneously without commit-headroom checks — unlike runtime xcl-pso* workers in hle/d3d12x/real.rs (big_compile_turn / big_compile_headroom).

Plan (one small PR):

  • Gate uncached large DXIL builds in shaders.rs (--pipelines) with huge-DXIL concurrency serialization and GlobalMemoryStatusEx commit-headroom checks matching the runtime policy in real.rs (cached-blob hits stay ungated).
  • Add unit tests for the gating / headroom policy and verify peak commit on native Windows (RTX 5080).
<!-- greyfinch-sync:ivall/xcl:comment:7155767743 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7155767743). Originally posted by [O5-7](https://github.com/O5-7) on 2026-11-25T07:21:20Z. --- Claiming the offline `xcl shaders --precompile --pipelines` memory-gating slice for #1598 (disjoint from #1638's DXC subprocess cap and #1315/#1316's compact backend). Currently `Pipelines::make_with_cache_path` in `crates/xcl/src/shaders.rs` bounds only total thread count (`XCL_PIPELINE_THREADS`, default 4) and the 8 MiB single-shader cap (`XCL_PIPELINE_MAX_KB`), so up to 4 large (1–8 MiB) uncached compute DXILs can enter the NVIDIA driver simultaneously without commit-headroom checks — unlike runtime `xcl-pso*` workers in `hle/d3d12x/real.rs` (`big_compile_turn` / `big_compile_headroom`). Plan (one small PR): - Gate uncached large DXIL builds in `shaders.rs` (`--pipelines`) with huge-DXIL concurrency serialization and `GlobalMemoryStatusEx` commit-headroom checks matching the runtime policy in `real.rs` (cached-blob hits stay ungated). - Add unit tests for the gating / headroom policy and verify peak commit on native Windows (RTX 5080).
b3IKK commented 2026-11-25 12:06:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by b3IKK on 2026-11-25T11:50:40Z.


Cross-link from a world-load run today: the program that made this issue's numbers so large no longer exists in that form on current main. 56c0cd3b82a00c6e was 29,215,780 B of DXIL (the ~150 MB of HLSL in the report above, in the heap-window form) at 689f2db and never finished compiling in a 1494 s run. On main 426a5a7 the same record is 484,744 B of DXIL and the driver finishes it in 10.4 s.

That is #2120's routing ("enormous compute programs take the direct DXIL translator") — the log line for its sibling says 15008 KB of HLSL would compile unoptimised - direct DXIL instead (2345 KB). The remaining big program is 95cc13288a27a96e at 2,401,896 B and ~149 s of driver time, which #2120 leaves on the HLSL path.

Measured on an RTX 5080 (32-lane waves, driver 32.0.16.1088), retail 1.0.2.1, 600 s runs with XCL_PSO_DISK_CACHE=0 so the driver compiles are cold: 39 compute records that both main 426a5a7 and main + #1380 reached, 994.5 s of driver time on main, of which the ten of 700 KB or more are 661.0 s. #1380 (7d43a46) takes those ten to 301.2 s. Details and the per-record table are in my comment on #1380.

Not tested: AMD, Linux / Wine, XCL_HEAP_WINDOWS=1, and what any of these programs compute; the title's picture stops before they finish in both runs.

AI use: OpenCode, Claude Fable 5.2 built the trees, ran the runs and wrote this.

<!-- greyfinch-sync:ivall/xcl:comment:7161572595 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7161572595). Originally posted by [b3IKK](https://github.com/b3IKK) on 2026-11-25T11:50:40Z. --- Cross-link from a world-load run today: **the program that made this issue's numbers so large no longer exists in that form on current `main`.** `56c0cd3b82a00c6e` was 29,215,780 B of DXIL (the ~150 MB of HLSL in the report above, in the heap-window form) at `689f2db` and never finished compiling in a 1494 s run. On `main` `426a5a7` the same record is **484,744 B of DXIL and the driver finishes it in 10.4 s**. That is #2120's routing ("enormous compute programs take the direct DXIL translator") — the log line for its sibling says `15008 KB of HLSL would compile unoptimised - direct DXIL instead (2345 KB)`. The remaining big program is `95cc13288a27a96e` at 2,401,896 B and ~149 s of driver time, which #2120 leaves on the HLSL path. **Measured** on an RTX 5080 (32-lane waves, driver 32.0.16.1088), retail 1.0.2.1, 600 s runs with `XCL_PSO_DISK_CACHE=0` so the driver compiles are cold: 39 compute records that both `main` `426a5a7` and `main` + #1380 reached, 994.5 s of driver time on `main`, of which the ten of 700 KB or more are 661.0 s. #1380 (`7d43a46`) takes those ten to 301.2 s. Details and the per-record table are in my comment on #1380. Not tested: AMD, Linux / Wine, `XCL_HEAP_WINDOWS=1`, and what any of these programs compute; the title's picture stops before they finish in both runs. AI use: OpenCode, Claude Fable 5.2 built the trees, ran the runs and wrote this.
Chrysana commented 2026-11-25 19:09:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Chrysana on 2026-11-25T19:06:22Z.


AMD numbers for 95cc13288a27a96e (ActivateRays), for "Not tested: AMD" above. On RDNA4 the title's driver compile of this record never finished in 5 runs. While it compiles, process commit grows by ~16 GB in ~70 s. In the one run where it ended, the driver refused it with 0x8007000e after 69 s, and 12.7 GB of commit went within 2 s. XCL's own counters stay flat throughout, so this is the driver compiler's memory.

Setup: AMD Radeon RX 9070 XT 16 GB (RDNA4), driver 32.0.32015.2008, Ryzen 7 9800X3D, 31 GB RAM, page files growing on demand (commit ceiling 79 GB), Windows 11 26200.9974, release builds. Retail title 1.0.2.1, XCL_NETWORK=0 XCL_ACTIVITY=1, A pressed every 4 s from 12 to 120 s, default path (no XCL_DIRECT_DXIL), driver caches on but holding no blob for this record (driver blob absent every time).

The record on main 06c9f55: [SHADER] 95cc13288a27a96e: 15008 KB of HLSL would compile unoptimised – direct DXIL instead (2363 KB), then driver compile start …: compute PSO, 2420640 B DXIL, record 95cc13288a27a96e. On this base it goes through the direct DXIL translator, not the HLSL path described above for 426a5a7.

build compile starts outcome process commit
main 06c9f55 108.4 s refused with 0x8007000e at 177.5 s, after 69.1 s in the driver; its dispatches are skipped 28.1 GB at 108 s → 44.3 GB at 174 s → 31.6 GB at 178 s
06c9f55 + #1993 3260d40 110.6 s still compiling when the process failed fast (0xc0000409) at ~183 s; at 181.0 s the driver refused another compute PSO (354,252 B) with 0x8007000e 25.8 GB at 100 s → 45.0 GB at 180 s
06c9f55 + #1993 3260d40 107.5 s still compiling when my memory guard stopped the run at ~143 s 36.2 GB at 140 s
06c9f55 + #1993 69903fc 108.7 s still compiling at the 140 s limit 26.4 GB at 100 s → 35.9 GB at 140 s
06c9f55 + #1993 3260d40 269.7 s (reached later in that run) still compiling at the 300 s limit at most 40.4 GB
  • #1993 changes sparse copy-backs and the fence hooks that settle them, not shader compiles. On main and with #1993, commit follows the same curve while this compile runs (more on that in my #1993 comment).
  • A few other huge compute PSOs (330–430 KB, 10–14 s each) compile during the same stretch, so not all ~16 GB is this one. The 12.7 GB that goes within 2 s of its refusal is the clearest measure of its share.
  • In the main run, the compile is logged as huge, ungated here (a title thread's, cached, or gated by its caller), so the runtime's huge-compile gate didn't hold it. For this size, the gate's headroom rule (big_compile_headroom: the larger of 3 GB and 512 × the DXIL size) asks for 3 GB of free commit. On RDNA4 this compile took several times that. This may matter for @O5-7's gating slice: the 512× figure would need to be ~5,000× to cover it.
  • After the refusal, main skipped the program's dispatches for the remaining 122 s and didn't try the compile again.
  • I didn't use xcl shaders --measure-pso for this record: it compiles the record's HLSL through DXC, while the title sends this record through the direct DXIL translator, so it wouldn't time the same compile.

Not tested

  • How long the compile takes on AMD when it finishes: it never did here.
  • A larger fixed page file, the RDNA2 iGPU, Linux / RADV, XCL_DIRECT_DXIL=1.
  • Current main (these runs are on 06c9f55).

AI use

  • Claude Code (Claude Opus 5.5) ran the title runs, read the logs and the gate's code, and drafted this comment. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7171826114 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7171826114). Originally posted by [Chrysana](https://github.com/Chrysana) on 2026-11-25T19:06:22Z. --- AMD numbers for `95cc13288a27a96e` (ActivateRays), for "Not tested: AMD" above. **On RDNA4 the title's driver compile of this record never finished in 5 runs. While it compiles, process commit grows by ~16 GB in ~70 s. In the one run where it ended, the driver refused it with `0x8007000e` after 69 s, and 12.7 GB of commit went within 2 s.** XCL's own counters stay flat throughout, so this is the driver compiler's memory. **Setup:** AMD Radeon RX 9070 XT 16 GB (RDNA4), driver 32.0.32015.2008, Ryzen 7 9800X3D, 31 GB RAM, page files growing on demand (commit ceiling 79 GB), Windows 11 26200.9974, release builds. Retail title 1.0.2.1, `XCL_NETWORK=0 XCL_ACTIVITY=1`, A pressed every 4 s from 12 to 120 s, default path (no `XCL_DIRECT_DXIL`), driver caches on but holding no blob for this record (`driver blob absent` every time). **The record on `main` `06c9f55`:** `[SHADER] 95cc13288a27a96e: 15008 KB of HLSL would compile unoptimised – direct DXIL instead (2363 KB)`, then `driver compile start …: compute PSO, 2420640 B DXIL, record 95cc13288a27a96e`. On this base it goes through the direct DXIL translator, not the HLSL path described above for `426a5a7`. | build | compile starts | outcome | process commit | |---|---|---|---| | `main` `06c9f55` | 108.4 s | **refused with `0x8007000e` at 177.5 s**, after 69.1 s in the driver; `its dispatches are skipped` | 28.1 GB at 108 s → 44.3 GB at 174 s → **31.6 GB at 178 s** | | `06c9f55` + #1993 `3260d40` | 110.6 s | still compiling when the process failed fast (`0xc0000409`) at ~183 s; at 181.0 s the driver refused another compute PSO (354,252 B) with `0x8007000e` | 25.8 GB at 100 s → 45.0 GB at 180 s | | `06c9f55` + #1993 `3260d40` | 107.5 s | still compiling when my memory guard stopped the run at ~143 s | 36.2 GB at 140 s | | `06c9f55` + #1993 `69903fc` | 108.7 s | still compiling at the 140 s limit | 26.4 GB at 100 s → 35.9 GB at 140 s | | `06c9f55` + #1993 `3260d40` | 269.7 s (reached later in that run) | still compiling at the 300 s limit | at most 40.4 GB | - #1993 changes sparse copy-backs and the fence hooks that settle them, not shader compiles. On `main` and with #1993, commit follows the same curve while this compile runs (more on that in [my #1993 comment](https://github.com/xcl-dev/xcl/pull/1993#issuecomment-7167335364)). - A few other huge compute PSOs (330–430 KB, 10–14 s each) compile during the same stretch, so not all ~16 GB is this one. The 12.7 GB that goes within 2 s of its refusal is the clearest measure of its share. - In the `main` run, the compile is logged as `huge, ungated here (a title thread's, cached, or gated by its caller)`, so the runtime's huge-compile gate didn't hold it. For this size, the gate's headroom rule (`big_compile_headroom`: the larger of 3 GB and 512 × the DXIL size) asks for 3 GB of free commit. On RDNA4 this compile took several times that. This may matter for @O5-7's gating slice: the 512× figure would need to be ~5,000× to cover it. - After the refusal, `main` skipped the program's dispatches for the remaining 122 s and didn't try the compile again. - I didn't use `xcl shaders --measure-pso` for this record: it compiles the record's HLSL through DXC, while the title sends this record through the direct DXIL translator, so it wouldn't time the same compile. **Not tested** - How long the compile takes on AMD when it finishes: it never did here. - A larger fixed page file, the RDNA2 iGPU, Linux / RADV, `XCL_DIRECT_DXIL=1`. - Current `main` (these runs are on `06c9f55`). **AI use** - Claude Code (Claude Opus 5.5) ran the title runs, read the logs and the gate's code, and drafted this comment. I checked it before posting.
KOLESNiii commented 2026-11-26 11:05:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-26T10:09:39Z.


A whole-pack xcl shaders --precompile --only cs --pipelines on an RTX 2070 SUPER (DXC 1.9.2609.5, 11 DXC threads) got past this issue's point at 22,600 and then ended twice at ~23,200–23,400 with a different fault: 0xc0000005 in dxcompiler.dll at the same offset, not the out-of-memory abort here. Commit was not sampled during those two runs. With XCL_DXC_THREADS=1 the same records compiled, and commit stayed at half the limit. Details in #2751.

Claude Code (Claude Opus 5.5) wrote this note from those runs.

<!-- greyfinch-sync:ivall/xcl:comment:7188988266 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7188988266). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-26T10:09:39Z. --- A whole-pack `xcl shaders --precompile --only cs --pipelines` on an RTX 2070 SUPER (DXC 1.9.2609.5, 11 DXC threads) got past this issue's point at 22,600 and then ended twice at ~23,200–23,400 with a different fault: `0xc0000005` in `dxcompiler.dll` at the same offset, not the out-of-memory abort here. Commit was not sampled during those two runs. With `XCL_DXC_THREADS=1` the same records compiled, and commit stayed at half the limit. Details in #2751. Claude Code (Claude Opus 5.5) wrote this note from those runs.
cindertheblue commented 2026-11-26 21:46:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by cindertheblue on 2026-11-26T21:46:09Z.


RDNA3 numbers on current main, next to Chrysana's RDNA4 ones: on a 15 GB PC, the offline pass still needs far more memory than the machine has between records 22,600 and 24,600 of the retail pack, even with one DXC thread.

Retail 1.0.2.1, xcl shaders shaders.rpf --precompile --only cs --pipelines, main b49be18 (contains 426a5a7), release, RX 7600 XT (RDNA3, 32.0.31041.1004), Ryzen 5 9600X, 15.1 GB RAM, Windows 11 26200, DXC 1.8.2502.11 from the Windows SDK, XCL_ADAPTER=7600, XCL_PSO_DISK_CACHE=0. Threads were set with XCL_DXC_THREADS and confirmed by each log's (N compile threads) header. Each run resumes from the previous run's DXIL cache. "Peak private" is xcl.exe's private bytes, sampled every 5 s.

run compile threads page file last progress line pipelines peak private end
1 11 (default) system-managed 22800/26503 (687 s) 725 made, 1 refused not sampled DXC 0x8007000E on a link (compiled whole, and no more programs are linked), then LLVM ERROR: out of memory, exit 0xC0000409 at 1,548 s
2 1 system-managed 22800/26503 (5 s) 800 made, 4 refused 42.6 GB stopped by hand at 1,150 s
3 1 system-managed 23200/26503 (23450 s); 23,000 → 23,200 took 22,518 s 1,025 made, 5 refused 46.7 GB the same DXC 0x8007000E link fallback once; stopped by hand at 27,433 s
4 3 64 GB on NVMe + 4 GB (commit limit 83.1 GB) 23600/26503 (1152 s) 1,550 made, 3 refused 66.9 GB stopped by hand at 2,282 s
5 5 same 23200/26503 (6 s), no progress after 1,050 made, 0 refused 56.7 GB stopped after 661 s: free RAM down to 0.3 GB, 10,000–87,000 pages read/s
6 3 same 24800/26503 (14005 s) 2,675 made, 3 refused 63.6 GB so far still running
  • Run 6's pace per 200 records: 23,200 → 23,400 in 820 s, 23,800 → 24,000 in 1,939 s, and 24,400 → 24,600 in 7,303 s. The last is the slowest, and its 63.6 GB peak came in it. Up to 23,200 the cache answers in seconds.
  • Programs named in the logs:
    • Run 1 logged three between 22600/ and 22800/: 56c0cd3b82a00c6e (30,266 KB of HLSL → 434 KB direct DXIL), 958400d2caf07244 (30,185 → 396 KB) and 95cc13288a27a96e (15,020 → 2,399 KB). The last is the record whose RDNA4 driver compile Chrysana found to take ~16 GB.
    • Run 3's only [SHADER] lines, after 23200/: c963276f38285bf4 (12,377 → 2,285 KB), f839072880d49fb4 (12,691 → 2,339 KB) and 219287eb2f6021fe (13,117 → 2,408 KB).
  • What this does not show: records are claimed in pack order (#2751), and the sampler covers the whole process. So it does not show which record, or whether DXC or AMD's compiler (amdxc64, in the same process), holds the memory.

In game, before any precompile: same build, XCL_ADAPTER=7600, offline, page file system-managed. The title runs the menus and first-run setup at 30 fps and reaches the story loading screen.

  • At 284 s it ends in amdxc64.dll+0xd7d474 (read at 0x0, exit 0xC0000005), with no device removal.
  • peak_commit_mb was 28,248. The title's crash reporter logged memory.load_percent 86 and system.memory.swap.free 2,394,624 of system.memory.swap.total 52,658,228.
  • That fits the driver running out of memory during the loading compiles, but it is not proven. The offset differs from #2874's +0xd2a411.

Not tested

  • NVIDIA and other AMD cards, and more than 15 GB of RAM.
  • Which allocation holds the memory: there was no per-module heap sampling.
  • The game rerun with the finished cache, because run 6 has not finished.
  • #1638's DXC worker processes, and a smaller XCL_DIRECT_SPLIT_INSTRUCTIONS.

AI use

  • Claude Code (Claude Opus 5.5) ran the precompiles and the game run on this machine, sampled memory, and wrote this comment from those logs.
<!-- greyfinch-sync:ivall/xcl:comment:7204041182 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7204041182). Originally posted by [cindertheblue](https://github.com/cindertheblue) on 2026-11-26T21:46:09Z. --- RDNA3 numbers on current `main`, next to Chrysana's RDNA4 ones: on a 15 GB PC, the offline pass still needs far more memory than the machine has between records 22,600 and 24,600 of the retail pack, even with one DXC thread. Retail 1.0.2.1, `xcl shaders shaders.rpf --precompile --only cs --pipelines`, `main` `b49be18` (contains `426a5a7`), release, RX 7600 XT (RDNA3, 32.0.31041.1004), Ryzen 5 9600X, **15.1 GB RAM**, Windows 11 26200, DXC 1.8.2502.11 from the Windows SDK, `XCL_ADAPTER=7600`, `XCL_PSO_DISK_CACHE=0`. Threads were set with `XCL_DXC_THREADS` and confirmed by each log's `(N compile threads)` header. Each run resumes from the previous run's DXIL cache. "Peak private" is `xcl.exe`'s private bytes, sampled every 5 s. | run | compile threads | page file | last progress line | pipelines | peak private | end | |---|---|---|---|---|---|---| | 1 | 11 (default) | system-managed | `22800/26503 (687 s)` | 725 made, 1 refused | not sampled | DXC `0x8007000E` on a link (`compiled whole, and no more programs are linked`), then `LLVM ERROR: out of memory`, exit `0xC0000409` at 1,548 s | | 2 | 1 | system-managed | `22800/26503 (5 s)` | 800 made, 4 refused | 42.6 GB | stopped by hand at 1,150 s | | 3 | 1 | system-managed | `23200/26503 (23450 s)`; 23,000 → 23,200 took 22,518 s | 1,025 made, 5 refused | 46.7 GB | the same DXC `0x8007000E` link fallback once; stopped by hand at 27,433 s | | 4 | 3 | 64 GB on NVMe + 4 GB (commit limit 83.1 GB) | `23600/26503 (1152 s)` | 1,550 made, 3 refused | 66.9 GB | stopped by hand at 2,282 s | | 5 | 5 | same | `23200/26503 (6 s)`, no progress after | 1,050 made, 0 refused | 56.7 GB | stopped after 661 s: free RAM down to 0.3 GB, 10,000–87,000 pages read/s | | 6 | 3 | same | `24800/26503 (14005 s)` | 2,675 made, 3 refused | 63.6 GB so far | still running | - **Run 6's pace per 200 records:** 23,200 → 23,400 in 820 s, 23,800 → 24,000 in 1,939 s, and 24,400 → 24,600 in 7,303 s. The last is the slowest, and its 63.6 GB peak came in it. Up to 23,200 the cache answers in seconds. - **Programs named in the logs:** - Run 1 logged three between `22600/` and `22800/`: `56c0cd3b82a00c6e` (30,266 KB of HLSL → 434 KB direct DXIL), `958400d2caf07244` (30,185 → 396 KB) and `95cc13288a27a96e` (15,020 → 2,399 KB). The last is the record whose RDNA4 driver compile Chrysana found to take ~16 GB. - Run 3's only `[SHADER]` lines, after `23200/`: `c963276f38285bf4` (12,377 → 2,285 KB), `f839072880d49fb4` (12,691 → 2,339 KB) and `219287eb2f6021fe` (13,117 → 2,408 KB). - **What this does not show:** records are claimed in pack order (#2751), and the sampler covers the whole process. So it does not show which record, or whether DXC or AMD's compiler (`amdxc64`, in the same process), holds the memory. **In game,** before any precompile: same build, `XCL_ADAPTER=7600`, offline, page file system-managed. The title runs the menus and first-run setup at 30 fps and reaches the story loading screen. - At 284 s it ends in `amdxc64.dll+0xd7d474` (read at 0x0, exit `0xC0000005`), with no device removal. - `peak_commit_mb` was 28,248. The title's crash reporter logged `memory.load_percent` 86 and `system.memory.swap.free` 2,394,624 of `system.memory.swap.total` 52,658,228. - That fits the driver running out of memory during the loading compiles, but it is not proven. The offset differs from #2874's `+0xd2a411`. **Not tested** - NVIDIA and other AMD cards, and more than 15 GB of RAM. - Which allocation holds the memory: there was no per-module heap sampling. - The game rerun with the finished cache, because run 6 has not finished. - #1638's DXC worker processes, and a smaller `XCL_DIRECT_SPLIT_INSTRUCTIONS`. **AI use** - Claude Code (Claude Opus 5.5) ran the precompiles and the game run on this machine, sampled memory, and wrote this comment from those logs.
cindertheblue commented 2026-11-26 22:50:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by cindertheblue on 2026-11-26T22:50:15Z.


Follow-up to my run table above: one record at a time, the memory is in AMD's compiler, and nearly all of it in one record, 95cc13288a27a96e (ActivateRays). In its native 64-lane form, AMD's compiler grew until Windows' commit ran out, then the pipeline was refused. In the split wave64 form (XCL_SPLIT_WAVE64=1) it compiled in 82 s and 13.9 GB, and the pipeline was made. XCL's translation and DXC take 3 s or less for each of these records.

How

The same main b49be18 release build, RX 7600 XT (RDNA3, 32.0.31041.1004), 15.1 GB RAM, page file 64 GB + 4 GB (commit limit 83 GB).

  • Each record was extracted alone with xcl rpf shaders.rpf --extract <name>. The [SHADER] line of the runs on the extracted file names the record's hash.
  • Each run is xcl shaders <that folder> --precompile --only cs, with an XCL_DXIL_CACHE of its own for each record (not the shared one), and with XCL_ADAPTER=7600, XCL_PSO_DISK_CACHE=0, XCL_DXC_THREADS=1 and XCL_PIPELINE_THREADS=1. xcl.exe private bytes were sampled every 1 s.
  • A: without --pipelines, which is translation and DXC only; the driver is not called.
  • B: with --pipelines. That is A plus AMD's compile, so B minus A is the driver.
  • Cold driver cache: run under the plain xcl.exe, B for c963276f38285bf4 took 0.2 s, because AMD's driver cache already held it from the full-pack runs. So the cold B runs use a copy of the same binary renamed xclprobe.exe. There, the same record took 89.5 s, so the copy does not see the first one's driver cache.

Native form (default on this GPU)

record DXIL A: translate + DXC B: + AMD compile, cold peak private pipeline
95cc13288a27a96e ScreenProbes_ActivateRays 2,399 KB 3.0 s, 269 MB 606.5 s 68,017 MB (at 542 s) refused
219287eb2f6021fe RTShadowTrace32TemporalHQ_OneOver2RPP_Tiled 2,408 KB 0.8 s 96.6 s 8,673 MB (at 11 s) made
f839072880d49fb4 RTShadowTrace32TemporalHQ_Tiled 2,339 KB 0.9 s 92.5 s 8,312 MB (at 11 s) made
c963276f38285bf4 RTShadowTrace32HQ_Tiled 2,285 KB – 89.5 s 7,958 MB (at 11 s) made
958400d2caf07244 ScreenProbes_ActivateProbesTarget 396 KB 0.7 s 6.6 s 936 MB made
  • 95cc13288a27a96e: private bytes grew at about 110 MB/s (4.8 GB at 32 s, 51.0 GB at 441 s) to the 68.0 GB peak. Commit left reached 4 MB, and the record was refused at 606 s. So this does not show whether AMD's compiler would finish with more memory, only that it needs more than about 68 GB here. That fits Chrysana's RDNA4 numbers above for the same record.
  • The three shadow records peak at 8–8.7 GB about 11 s into the compile. They then drop, and stay between 0.2 and 5.4 GB until the compile finishes at about 90 s.

Split wave64 form (XCL_SPLIT_WAVE64=1)

record DXIL B: cold peak private pipeline
95cc13288a27a96e 1,204 KB (compact form, 13890 blocks of 2643 kinds) 82.3 s 13,947 MB made
958400d2caf07244 431 KB 7.5 s 1,060 MB made
c963276f38285bf4, f839072880d49fb4, 219287eb2f6021fe the same sizes as the native form 0.8–0.9 s (driver cache hit) – made
  • No pieces: 95cc13288a27a96e was not split into a dispatch chain. There is no split compute programs line, and one pipeline was made. With XCL_DIRECT_SPLIT_INSTRUCTIONS=4000 the run took 2.7 s, an AMD cache hit, so the DXIL was the same as at 12,500. The gain comes from the other form of the program, not from splitting.
  • The shadow records: in this form they hit the cache the cold native runs had filled, so the switch leaves their DXIL unchanged. They are most likely 32-lane programs already.

Not tested

  • Whether the split wave64 form of 95cc13288a27a96e gives the right results, or how fast it runs in game.
  • XCL_SPLIT_WAVE64=1 for a whole pack or a title run on AMD.
  • Other AMD cards and drivers, NVIDIA, and more than 15 GB of RAM.
  • Which allocator inside amdxc64 holds the memory.

AI use

  • Claude Code (Claude Opus 5.5) wrote the probe script, ran these runs on this machine, and wrote this comment from their logs.
<!-- greyfinch-sync:ivall/xcl:comment:7205027076 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/1598#issuecomment-7205027076). Originally posted by [cindertheblue](https://github.com/cindertheblue) on 2026-11-26T22:50:15Z. --- Follow-up to my run table above: one record at a time, the memory is in AMD's compiler, and nearly all of it in one record, `95cc13288a27a96e` (ActivateRays). In its native 64-lane form, AMD's compiler grew until Windows' commit ran out, then the pipeline was refused. In the split wave64 form (`XCL_SPLIT_WAVE64=1`) it compiled in 82 s and 13.9 GB, and the pipeline was made. XCL's translation and DXC take 3 s or less for each of these records. **How** The same `main` `b49be18` release build, RX 7600 XT (RDNA3, 32.0.31041.1004), 15.1 GB RAM, page file 64 GB + 4 GB (commit limit 83 GB). - Each record was extracted alone with `xcl rpf shaders.rpf --extract <name>`. The `[SHADER]` line of the runs on the extracted file names the record's hash. - Each run is `xcl shaders <that folder> --precompile --only cs`, with an `XCL_DXIL_CACHE` of its own for each record (not the shared one), and with `XCL_ADAPTER=7600`, `XCL_PSO_DISK_CACHE=0`, `XCL_DXC_THREADS=1` and `XCL_PIPELINE_THREADS=1`. `xcl.exe` private bytes were sampled every 1 s. - **A:** without `--pipelines`, which is translation and DXC only; the driver is not called. - **B:** with `--pipelines`. That is A plus AMD's compile, so B minus A is the driver. - **Cold driver cache:** run under the plain `xcl.exe`, B for `c963276f38285bf4` took 0.2 s, because AMD's driver cache already held it from the full-pack runs. So the cold B runs use a copy of the same binary renamed `xclprobe.exe`. There, the same record took 89.5 s, so the copy does not see the first one's driver cache. **Native form (default on this GPU)** | record | DXIL | A: translate + DXC | B: + AMD compile, cold | peak private | pipeline | |---|---|---|---|---|---| | `95cc13288a27a96e` ScreenProbes_ActivateRays | 2,399 KB | 3.0 s, 269 MB | 606.5 s | **68,017 MB** (at 542 s) | **refused** | | `219287eb2f6021fe` RTShadowTrace32TemporalHQ_OneOver2RPP_Tiled | 2,408 KB | 0.8 s | 96.6 s | 8,673 MB (at 11 s) | made | | `f839072880d49fb4` RTShadowTrace32TemporalHQ_Tiled | 2,339 KB | 0.9 s | 92.5 s | 8,312 MB (at 11 s) | made | | `c963276f38285bf4` RTShadowTrace32HQ_Tiled | 2,285 KB | – | 89.5 s | 7,958 MB (at 11 s) | made | | `958400d2caf07244` ScreenProbes_ActivateProbesTarget | 396 KB | 0.7 s | 6.6 s | 936 MB | made | - **`95cc13288a27a96e`:** private bytes grew at about 110 MB/s (4.8 GB at 32 s, 51.0 GB at 441 s) to the 68.0 GB peak. Commit left reached 4 MB, and the record was refused at 606 s. So this does not show whether AMD's compiler would finish with more memory, only that it needs more than about 68 GB here. That fits Chrysana's RDNA4 numbers above for the same record. - **The three shadow records** peak at 8–8.7 GB about 11 s into the compile. They then drop, and stay between 0.2 and 5.4 GB until the compile finishes at about 90 s. **Split wave64 form (`XCL_SPLIT_WAVE64=1`)** | record | DXIL | B: cold | peak private | pipeline | |---|---|---|---|---| | `95cc13288a27a96e` | **1,204 KB** (compact form, `13890 blocks of 2643 kinds`) | **82.3 s** | **13,947 MB** | **made** | | `958400d2caf07244` | 431 KB | 7.5 s | 1,060 MB | made | | `c963276f38285bf4`, `f839072880d49fb4`, `219287eb2f6021fe` | the same sizes as the native form | 0.8–0.9 s (driver cache hit) | – | made | - **No pieces:** `95cc13288a27a96e` was not split into a dispatch chain. There is no `split compute programs` line, and one pipeline was made. With `XCL_DIRECT_SPLIT_INSTRUCTIONS=4000` the run took 2.7 s, an AMD cache hit, so the DXIL was the same as at 12,500. The gain comes from the other form of the program, not from splitting. - **The shadow records:** in this form they hit the cache the cold native runs had filled, so the switch leaves their DXIL unchanged. They are most likely 32-lane programs already. **Not tested** - Whether the split wave64 form of `95cc13288a27a96e` gives the right results, or how fast it runs in game. - `XCL_SPLIT_WAVE64=1` for a whole pack or a title run on AMD. - Other AMD cards and drivers, NVIDIA, and more than 15 GB of RAM. - Which allocator inside `amdxc64` holds the memory. **AI use** - Claude Code (Claude Opus 5.5) wrote the probe script, ran these runs on this machine, and wrote this comment from their logs.
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
xcl-dev/xcl#1588
No description provided.