Skip to content

NVIDIA (RTX 5070): graphics pipelines never finish – nvgpucomp64 stalls on large translated shaders (+ 2 fixes: chad.dll XDsp, XMemMapPhysicalPagesScatter) #156

Open

Description

@DaftPunkk1

Setup

  • GPU: NVIDIA GeForce RTX 5070 (12 GB), Windows 11, 32 GB RAM, Ryzen 7 7800X3D (16 threads)
  • XCL 0.1.0 (current main), DXC from Windows SDK 10.0.26100
  • Title: retail Series X|S RAGE title (Scarlett build), run with device_type = "lockhart" (anaconda ran out of commit), XCL_NETWORK=0

Main issue: graphics PSOs never get built on NVIDIA

The title reaches its first frame (~13 s), loads the offline user, then the screen stays black. The window title stays at
compiling shaders: 0 running, 131 done, 2428 pipelines queued for 10+ minutes.

Thread dumps (XCL_THREAD_DUMP_AT) show every xcl-pso-N worker and the D3D Background Threads inside nvgpucomp64.dll, waiting in the ntdll heap lock:

'xcl-pso-0': ntdll+0x16a054 < ntdll+0x1a61d < ntdll+0x1bd1f < ntdll+0x1cf92 < ntdll+0x9633d < ntdll+0x5572d < ntdll+0x31cfb < nvgpucomp64.dll+0x627e34 < nvgpucomp64.dll+0x1588d19 < ...
'xcl-pso-2': ntdll+0x16a054 < ntdll+0x1a61d < ntdll+0x1bd1f < ntdll+0x1cf92 < ntdll+0x5455e < ntdll+0x27850 < nvgpucomp64.dll+0x627dd0 < nvgpucomp64.dll+0x802d04 < ...
'D3D Background Thread 0': (same heap wait) < nvgpucomp64.dll+0x627dd0 < ...

It is not just contention between workers:

XCL_DXC_THREADS result
default (15) last PSO at 238 s, nothing more until the window was closed at 656 s
4 PSOs nearly stop after ~130 s; all 4 workers in nvgpucomp at 240 s and 290 s
1 only 7 PSOs between 60 s and 150 s; then PSO stream rejected (0x80070057), the fallback version too and the title hits a breakpoint (0x80000003 at title+0xcc2834)

Translated DXIL is large (many 100–500 KB compute programs, the biggest ~800 KB), so I suspect the wave64-on-wave32 translation produces programs NVIDIA's compiler handles extremely slowly. Early on there are also graphics PSO rejected (0x8007000e), the fallback version too.

Happy to run more tests (logs, other drivers, env switches).

Fix 1: chad.dll (XDsp) stubs make the title assert

chad.dll!XDspConnectWithMaximumStreamLimit returned E_NOTIMPL (stub DB), and 1 ms later the title hit an assert (0x80000003, its caller's address in rdx). From the call site the arguments are Connect(u64, u32, u32 streams, 0x80, 1, &handle). The handle is pointer-sized and later passed to XDspActivate(handle, …). Every result is checked against 0.

Routing chad.dll to acphal and implementing the five functions like the rest of the audio processor (Connect hands out a zeroed page as handle; Activate/SubmitCommand/Deactivate/Disconnect return S_OK) gets past it: chad: XDsp connected (…, 30, 0x80, 0x1) → handle ….

Fix 2: XMemMapPhysicalPagesScatter is quadratic and trips the title's watchdog

A single call with 6720 pages ran > 23 s and the title's hang watchdog fired (mov dword [0], 0 at title+0x2215c35). Cause: every page goes through unmap_away → sparse::decommitted → decommit_tiles, which runs to_zero.retain(…) over the whole to_zero list. to_zero only drains at the next submit, so during loading it keeps growing.

Fix:

  • XMemMapPhysicalPagesScatter collects the sparse commits/decommits of the whole call (SparseBatch) and reports them at the end as runs of adjacent pages (decommits first).
  • New sparse::decommitted_many does one tile-mapping update per window and one fence signal.
  • Stale to_zero entries are dropped where the list is taken (take_to_zero), not on every decommit.

After the fix: Scatter #0: 6720 pages … copy 123 ms, unmap 416 ms. Diffs available if useful.

Side note

Without XCL_NETWORK=0 the title's crash reporter uploaded a ~34 MB minidump of the XCL process (Windows user name, PC name, paths) on each crash. Maybe worth making offline the default, or at least warning about it.

Activity

  1. Kalmarv commented on Nov 23, 2026

    @Kalmarv
    Contributor

    I am investigating a bounded synthetic reproduction on Windows / RTX 5070 Ti, independently of the lazy-PSO and DXC-memory changes in #162/#139. I noted your 15/4/1-worker measurements: a single worker also stalls, so I am not treating concurrency as an established cause or proposing a cap without new evidence.

    Initial scope is CPU/DXC preparation plus small, separately scheduled driver-compilation checks using synthetic shaders. No retail run, no global driver-cache changes, and no implementation claim beyond the investigation yet. I will report the exact head, shader characteristics, timings and limits if it reproduces, including a negative result if it does not. AI-assisted; no game files.

  2. Kalmarv commented on Nov 23, 2026

    @Kalmarv
    Contributor

    These are driver numbers from a synthetic probe on an RTX 5070 Ti with driver 610.74 on Windows 11. The probe uses compute pipelines only, so it stands in for the graphics stalls here and does not reproduce them.

    program DXIL DXC driver, first creation same program again
    wave32, 1 window 60 KB 0.4 s 0.36 s 0.00 s
    wave32, 1 window 305 KB 0.8 s 2.12 s 0.01 s
    wave32, 1 window (×2) 633 KB 2.3–2.4 s 8.69 / 8.98 s 0.03 s
    wave64 split, 4 windows, a divergent if-block every 4 rounds (×2) 633 KB 3.1–3.3 s 8.54 / 8.68 s 0.03 s
    the first 633 KB wave32 pair, created by a new process 633 KB 2.2–2.4 s 0.04 / 0.04 s 0.03 s

    On this card and driver:

    • The driver compile, not DXC, dominates large programs. Its time grows faster than DXIL size: 6–7 ms per KB at 60–305 KB and about 14 ms per KB at 633 KB.
    • Program structure didn't matter at equal size. The split-wave64 form, the window switches and the branches did not change driver time.
    • The driver's disk cache keeps finished pipelines across processes. A program compiled once came back in 0.04 s in a new process. So pipelines that finished in one run should be cheap in the next.
    • No failures. There were no rejections (0x80070057 / 0x8007000e), no hangs and no timeouts.
    • One unconfirmed observation: the wave64 process peaked at 1.24 GiB of commit (sampled every 2 s) against 0.30 GiB for wave32. That is one run, and I have not shown the driver accounts for it.

    What this does not cover:

    • Graphics pipelines.
    • The heap-lock waits.
    • Thousands of pipelines, or more than one creator thread.
    • Other drivers.
    • It neither explains nor rules out your single-worker stall.

    Each size was measured with one or two programs.

    Setup: main 956a476 plus a local ignored bench, not pushed. The bench builds synthetic programs through XCL's recompiler, DXC and CreateComputePipelineState from one thread. "First creation" means programs the driver had never seen; its cache was not cleared. No game data. AI-assisted.

  3. mariuslozo-boop commented on Nov 23, 2026

    @mariuslozo-boop

    Retail driver numbers for this issue, measured on an RTX 5070 Ti (16 GB), driver 616.92, Windows 11 26300, DXC from SDK 10.0.26100. I compared main at 956a476 with #187 at 8c0346d. The shaders are records from the retail shaders.rpf (1.0.2.1) passed in through XCL_SAMPLE_RPF; no game files are attached.

    Method: a local ignored bench test, not pushed (code available if useful). It translates records the way the runtime does, through pso::console_to_dxil_for / pso::console_mesh with the split wave64 form and 4 memory windows, compiles them with DXC, and times only the CreatePipelineState / CreateComputePipelineState call on its own device. It uses one thread, and the driver has never seen these programs on this machine before. A pixel shader is paired with the pass-through MS that console_mesh makes for it. "MS" below is the compute pass of the two-pass mesh pipeline.

    Driver time per pipeline

    shaders main: DXIL, driver #187: DXIL, driver
    9 biggest MS (MS_VS_Transform*, PropFoliage…Fire) 353–478 KB, 6.5–10.6 s 242–361 KB, 2.5–5.1 s
    7 mid-size MS 25–75 KB, 0.18–0.71 s 19–51 KB, 0.10–0.34 s
    9 biggest PS (PS_Textured_Eight*, PS_PedTextured_Eight_Decals*, …) 534–648 KB, 10.7–17.0 s 444–501 KB, 4.5–6.9 s, but 4 fail, see below
    PS 177–220 KB 2.8–3.0 s 1.4–2.3 s
    CS *:CS_RaytracingResolve_ae7b7f3c (5) 1.30–1.35 MB, 189–280 s 895–900 KB, 15.5–16.5 s
    CS rtdirectionalshadows:CS_RTShadowTrace32TemporalHQ_OneOver8RPP_Tiled 1.9 MB, 347 s 1.47 MB, fails (0x8007000E)
    CS cascadeshadows_rendering:CS_ShadowRenderTiledCascadesCBPPPC 1.5 MB, still running 1.29 MB, 80.9 s
    CS rtdirectionalshadows:CS_RTShadowTrace32{TemporalHQ_OneOver2RPP,TemporalHQ,HQ}_Tiled 5.0–5.3 MB, not finished after 25 min (stopped) not run yet

    On this card:

    A regression in #187 on NVIDIA: 5 pipelines that build on main fail

    With #187, these fail every time, in under a second, with E_OUTOFMEMORY (0x8007000E):

    • PS_PedTextured_Eight_Decals_6c7ff3fe, _52f61330, _70522ddb
    • PS_MIRROR_PBR_MATERIAL_CLEARCOAT_GLINTS_5f34c83e
    • rtdirectionalshadows:CS_RTShadowTrace32TemporalHQ_OneOver8RPP_Tiled_bfd3b062

    On main the same four PS build in 9.7–17 s. There were 41 GB of commit free, and the D3D12 debug layer reports nothing, so the driver itself rejects them.

    To narrow it down, I tried variants on the four PS:

    #187 variant result
    as is: ResourceDescriptorHeap[NonUniformResourceIndex(0u + (xcl_w < 4u ? xcl_w : 0u))] fail
    same without NonUniformResourceIndex, in the window accessor only and then everywhere fail (the DXIL changes by 8–44 bytes)
    constant index, ResourceDescriptorHeap[0u] (compile test only, wrong results) all 4 build, 7.3–9.0 s
    XCL_HEAP_WINDOWS=0 (the switch) all 4 build, 9.7–16.4 s

    So on this driver, a heap index that depends on the window makes these programs fail, and NonUniformResourceIndex does not. One difference I saw but have not proven to be the cause: the failing PS_PedTextured_Eight_Decals_6c7ff3fe has 29 [loop] for (;;) against 9 in PS_Textured_Eight_e0305669, which is of similar size and builds. Both contain the same accessor kinds: 5 xcl_mStore and 28 xcl_mInterlocked.

    A possible fix for #187, not implemented or tested yet: when the driver rejects a pipeline built with heap windows, translate that program again in the switch form and retry. The root signature still has u2..u5 and the windows are still bound as root UAVs, so the switch form should work there without other changes. I can try this next if it helps.

    AI-assisted (Claude Code).

  4. Kalmarv commented on Nov 23, 2026

    @Kalmarv
    Contributor

    A finding from the #174 review that matters here: which DXC builds the shaders changes NVIDIA's driver time a lot (numbers).

    The same main binary on an RTX 5070 Ti (NVIDIA 610.74), synthetic translated compute programs, fresh seeds:

    shape DXC DXIL driver CreateComputePipelineState
    F (1 window, 4000 rounds) Windows SDK 10.0.26100 (dxcompiler 1.7.2308) 633 KB 10.12 s
    F 1.9.2602 (GitHub release) 235 KB 4.61 s
    C (4 windows, 2000 rounds) SDK 1.7.2308 371 KB 7.66 s
    C 1.9.2602 178 KB 5.32 s

    DXC 1.9 emits DXIL half the size or less, and the driver then compiles it 1.4–2.2× faster. DXC's own time goes up somewhat for a whole compile. The driver times in my earlier table above were taken with the SDK's DXC. Anyone seeing pipelines that never finish on NVIDIA: it's worth checking which dxcompiler.dll XCL loads and trying 1.9.

    Not tested: AMD, a retail pack, DXC 1.8.

    AI-assisted (Claude Code).

  5. ivall commented on Nov 23, 2026

    @ivall
    Collaborator

    Status on main: console pipelines are now created at their first use (pso_async::lazy, default; XCL_LAZY_PSO=0 turns it off), so the driver only builds what a frame binds, big compute pipelines (256 KB+ DXIL) are built in the background one at a time, and DXC uses -O1 from 1 MB of HLSL. The heap-lock contention in your dumps is also what theaustinayers' fork addresses for DXC (a private heap per compile thread, f0928b0 there) - that does not cover nvgpucomp64's own allocations, though. Kalmarv's finding that the DXC build changes NVIDIA's driver time a lot is worth a line in the README once confirmed; #174 / #187 are the larger changes in flight. A fresh run on current main would tell how much of this is left.

  6. MaurycyBartczak commented on Nov 23, 2026

    @MaurycyBartczak

    Fresh retail run on current main 60565c4

    GPU RTX 5070 Ti 16 GB, driver 621.24
    DXC Windows SDK 10.0.26100, dxcompiler 1.8.2502.11 (not 1.9)
    CPU / RAM Ryzen 7 9800X3D, 64 GB
    OS Windows 11 26300

    XCL_NETWORK=0 XCL_RUN_SECONDS=240 XCL_ACTIVITY=1 xcl run <GTA6 Xbox 1.0.2.1>, default settings (XCL_LAZY_PSO unset, so lazy is on). Nobody touched the controller, so the run stayed at the account prompt the whole time. It ended cleanly at 240 s with exit code 0.

    Results

    • First game frame at 2.9 s. A steady 30.0 fps from about 14 s to the end, with 6,910 PresentX calls. There were 0 frame-event wait timeouts.
    • background_pipelines = 8 built, 0 failed. The window title read compiling shaders: 0 running, 0 done, 57815 pipelines queued in every sample from 195 s, when sampling started, to 240 s.
    • DXIL cache: 15 hits, 0 misses, 0 DXC compilations. The caches were warm from earlier runs, so this does not measure a cold compile. The three compute PSOs logged were 28–87 KB of DXIL.
    • 65,536 draws and 5,452 dispatches with translated pipelines, 0 skipped. failed_pipelines 0, fallback_pipelines 0.
    • The same 40 mesh pipelines are refused ("MS in the AS slot") as before. 8,741 unique shaders, 0 translation errors.
    • Commit peaked at 14.7 GB. Video memory peaked at 6.3 GB local and 4.6 GB non-local.
    • DirectStorage: 9,799 requests, 0 failed. No BCPack refusals, since nothing streamed in at the prompt.

    Compared with the earlier run on 0cd0a53

    0cd0a53 (180 s, title) 60565c4 (240 s)
    title "queued" 58,738 57,815
    title "done" (DXC compiles) 23 0 (warm cache)
    built in background / failed – 8 / 0
    skipped draws 0 0

    0cd0a53 already had pso_async::lazy (38b05b7). Reading pso_async::counts(), the "queued" number counts every stand-in not built yet, including the lazy ones that were never bound and never went to a worker. On this machine the ~58k number is therefore not a backlog in nvgpucomp64: the title creates ~58k pipelines and binds about 8 of them at the menu. A side effect is that the title says "compiling shaders" for the whole run while nothing compiles. It might help to show the lazy, never-bound pipelines separately from the ones actually sent to the workers.

    Two earlier manual runs got into world loading (one on 0cd0a53, one on 60565c4, see below). At the time of their crashes they also showed only 16 and 14 pipelines built, 0 failed, and 5 and 3 DXC compiles.

    What this run does not cover: the large compute programs (CS_RaytracingResolve, CS_RTShadowTrace*, the cascade shadows) were never bound at the account prompt. So it cannot say whether the multi-MB CS stall is gone. To test that, the run has to get into the world, and both runs that did so crashed first. A cold-cache run (empty DXIL cache) would also be needed to measure DXC and driver time.

    Two crashes while loading (earlier manual runs, for reference, probably not #156)

    These came from runs where someone pressed A at the menu. They happened while the world was loading, and they may well be unrelated to pipelines. They might belong in a separate issue.

    build time fault notes
    0cd0a53 246.8 s AV write in game_scarlett_master.exe+0x35a4999 at an address ending …d000000. rbx = that address − 4 In the same millisecond, a second thread faulted at +0x35a47bc, writing at 0x50 bytes past the same boundary. DirectStorage request #65536 was logged 42 ms earlier. The stack includes +0x13a78 and +0x4dd1f4e.
    60565c4 79.3 s AV write in game_scarlett_master.exe+0x13936 (a heap address, rax = a vtable in the exe) The stack includes +0x4dd1f4e. That frame is shared with the first crash, and +0x13936 is close to the first crash's +0x13a78.

    Both runs were preceded by BCPack refusals, all failing with E_DECOMPRESSION: BC1 "mode N unsupported" 1,030 / 400 times, BC5 107 / 107, BC6H 1 / 1 and BC7 118 / 52. Both also had DirectStorage failures: 0x89240009 7 / 8 times and 0x89240030 7 / 7 times. In the 0cd0a53 run, presents nearly stopped after about 72 s, and Wait64BitValueX timed out at 77–84 s. That is probably what d4f17ca fixes.

    AI-assisted (Claude Code); no game files attached.

  7. Raxstreams commented on Nov 23, 2026

    @Raxstreams

    On an RTX 3080 Ti, XCL sustained 30 presentations/s at the Player1 account prompt after the first launch. The title bar still showed 57,817 pipelines queued. Forcing the first launch’s coherent memory window size on a warm run reproduced a substantial slowdown.

    Tested on 7a033c8cd13194900cd49c01ed60a59c6c9559c7, release build, retail Series X profile (1.0.2.1). Windows 11 build 26200, Ryzen 7 5800X, 32 GB RAM, RTX 3080 Ti 12 GB, NVIDIA 617.14, DXC 1.8.2502.11, Rust 1.100.0.

    Run Coherent window DXIL hits / misses DXC compilations Presentations/s, 60–102 s
    First launch, scene unverified 512 MB 1 / 12 12 4.66
    Warm cache, automatic window 4,095 MB 13 / 0 0 30.00
    Warm cache, forced window 512 MB 13 / 0 0 9.25

    For the warm runs I used xcl run <game-folder> with XCL_NETWORK=0, XCL_ACTIVITY=1, XCL_FRAME_DUMP=180 and no input. The automatic run used XCL_RUN_SECONDS=240 and recorded 6,789 PresentX calls. The control used XCL_COHERENT_MB=512 and XCL_RUN_SECONDS=110 and recorded 1,032 calls. Rates in the table use deltas over the same elapsed interval. Both final sampled frames showed the account prompt and matched byte for byte. Both runs exited 0 with six background pipelines built, zero failed, and zero frame-event timeouts.

    The large pending count coexisted with both rates. Coherent window size is worth recording alongside cache state when comparing this scene. World streaming and large compute PSOs were outside this test.

    AI-assisted test report and measurements using OpenAI Codex (GPT-6).

  8. imnicho commented on Nov 23, 2026

    @imnicho
    Contributor

    Driver numbers from one more NVIDIA machine, on the two things the tables above leave open: more than one creator thread, and what a running title waits for.

    Machine: i7-7700K, 4 cores / 8 threads · 16 GB · RTX 5080 16 GB · driver 610.47 · lanes 32–32 · Windows 10 22H2 (19045) · DXC 1.9.2602 (SDK 10.0.26100) · XCL 956a476 (driver timings), 2abc562 (title runs)
    Precompile 2650 (cold): 920 s, one run only; compiled 2 784 / cached 2 163 / errors 0; peak commit 1.6 GB
    Title cold / warm (2abc562, 300 s): first frame at ~11 s; 33 / 861 frames; 6 pipelines built, 57 809 stand-ins never used, 8 failed; peak commit 17.1 GB
    Dominant state: other – see the last point
    

    Method. A local ignored test that reads a folder of .dxil (XCL's DXIL cache after xcl shaders <pack> --precompile --limit 2650), takes the compute programs and times CreateComputePipelineState alone, with the ABI root signature, on N threads. The programs are the compute passes of the mesh programs of a retail pack: 2 262 of them, 228 MB of DXIL, split wave64 form, 128 threads a group, 4 memory windows. The driver had not seen them (its cache files for the test executable were removed between runs). No game files are attached.

    Driver time against creator threads (disjoint 1-in-20 samples of the 2 262)

    pipelines at once programs DXIL wall sum of the programs' times at once in effect DXIL per second
    1 114 11.5 MB 255 s 254 s 0.99 46 KB
    4 114 8.8 MB 71 s 273 s 3.84 127 KB
    8 113 10.7 MB 95 s 697 s 7.37 116 KB
    • Measured: the driver's compiler is not serialised here. Four creators on four cores do the work of 3.84; nothing refused in any run. So on this driver the heap-lock waits in the dumps above are not what limits it.
    • Measured: more creators than cores only lengthen each compile. Eight on four cores (hyperthreads) get no more through than four and every program takes longer: the 256–512 KB programs took 25.9 s each (37.6 s the longest) against 8.7 s (11.7 s) one at a time.
    • Hypothesis from that: XCL starts logical − 1 workers (7 here, 15 on the reporter's 7800X3D). For the driver's part a count above the physical cores makes the one pipeline a title waits for slower without finishing the queue sooner. Not tested on a CPU with more cores.

    Driver time against size (one at a time, 114 programs)

    DXIL programs each per KB
    ≤ 32 KB 18 0.21 s 8.0 ms
    ≤ 64 KB 47 0.56 s 12.4 ms
    ≤ 128 KB 15 1.48 s 16.6 ms
    ≤ 256 KB 19 3.75 s 21.8 ms
    ≤ 512 KB 15 8.66 s 28.5 ms

    Created a second time in the same process: 5.9 ms median, 69 ms at most.

    Memory windows

    The same 175 programs (first 300 records) translated with 4 windows and with 1, four pipelines at once, runs interleaved: 21.1 / 22.9 / 20.5 s against 12.7 / 12.2 / 12.3 s (DXIL 6.2 MB against 4.3 MB). That agrees with the retail numbers above for #187, on smaller programs.

    What the title waited for on this machine

    Not the driver. With the caches cold the title showed 33 frames in 300 s and with them warm 861, and in every thread dump of both runs its main thread was in XCL's illegal-instruction handler: this CPU has no CLZERO, the title zeroes memory with it, and each emulated instruction asked VirtualQuery about memory. One compute pipeline was built in the whole cold run; the xcl-pso workers were idle. I am opening a PR for that part.

    The timing test is on a local branch (one file, no change to the runtime); I can open it as a PR if it is wanted next to the two benches mentioned above.

    AI-assisted: Claude Code with Claude Fable 5.2 wrote the test and this report; every number is from a run on the machine named.

    Update, 24 Nov – what the title waits for now, and heap windows on current main

  9. Kalmarv commented on Nov 23, 2026

    @Kalmarv
    Contributor

    Synthetic driver numbers on main 60565c4, on two things above that are still open: when DXC 1.9 makes smaller DXIL, and what makes one pipeline take minutes. Compute pipelines only, no game files.

    1. DXC 1.9 made smaller DXIL only where XCL compiles with -O1 (HLSL over 1 MiB). At the default level both DXCs made the same DXIL, as @nFaktorial saw on straight-line programs. Driver CreateComputePipelineState, one creator thread, 2 programs per cell, each on a fresh seed:

    shape HLSL DXC level DXIL, 1.7 → 1.9 DXC, 1.7 / 1.9 driver, 1.7 / 1.9
    C: wave32, 4 windows, memory every 8th, 2000 rounds 1073 KiB -O1 371 → 178 KB 1.3–1.4 / 2.8–3.1 s 6.8–7.1 / 5.6–5.8 s
    D: wave64 split, otherwise as C 992 KiB default 179 → 179 KB 3.1–3.5 / 4.9–5.4 s 5.5–5.6 / 5.3–5.4 s
    F: wave32, 1 window, memory every 8th, 4000 rounds 2083 KiB -O1 633 → 235 KB 2.6–2.7 / 3.5 s 9.6–9.9 / 3.9–4.0 s
    AD1: wave64 split, 1 window, memory every round, a divergent if every 4th, 1000 rounds 1048 KiB -O1 479 → 202 KB 2.5–2.7 / 2.6–3.0 s 5.6–5.7 / 3.5 s
    AD4: as AD1 with 4 windows 1104 KiB -O1 749 → 447 KB 3.5–3.9 / 4.8–5.1 s 128–177 / 130–143 s

    Above 1 MiB, DXC 1.9 took 1.0–2.2× as long as 1.7 on these programs, not the 12–45× @nFaktorial measured on straight-line ones. That difference depends on the program shape too.

    2. Four memory windows on memory-dense code made one pipeline take over 2 minutes and about 12 GiB of commit. AD1 and AD4 differ only in the window count:

    • With DXC 1.9 the driver took 3.5 s for AD1 and 130–143 s for AD4.
    • Peak process commit was 0.28 GiB for AD1 and 12.0 GiB for AD4 (sampled every 2 s, working set up to 6.8 GiB). DXC had finished within the first 10 s. Commit then rose to 5.5 GiB at 32 s and 11.6 GiB at 62 s, during the driver's build. It fell back to 155 MB of private commit afterwards.
    • The DXC version barely changed AD4.
    • This agrees in direction with @imnicho's 4-window against 1-window numbers on retail programs (about 1.7× there) and with the 1.3 MB compute programs at 189–280 s above.

    3. One long build is the driver's compiler working, not waiting for the heap lock.

    • An AD4 build (127.6 s, one creator, DXC 1.9) was sampled at 20 Hz. 2,425 samples had nvgpucomp64.dll on the stack.
      • 86 % were in its own code.
      • About 8 % were in RtlAllocateHeap / RtlFreeHeap, running.
      • None were waits under a heap call.
    • So the heap-lock waits in the dumps at the top need more than one build at a time. Without them a single build of this shape still takes minutes.

    The lazy pipelines on main change when a pipeline is built, not what one costs. This bench calls CreateComputePipelineState directly.

    Tested

    • RTX 5070 Ti (NVIDIA 610.74), Ryzen 9 9950X, Windows 11 26200; release build of main 60565c4.
      • Two local additions, not pushed (code on request): an ignored bench test, and a helper that exposes the test device and root signature.
      • DXC 1.7.2308.16 is the Windows SDK 10.0.26100 one; 1.9.2602 is the GitHub release (XCL_DXC_DIR).
    • Each cell ran in its own process under a 14 GiB commit cap, with a new seed, so the driver's disk cache had not seen the program. The same program created again took 0.01–0.11 s.
    • There were no failures or rejections.

    Not tested

    • Graphics pipelines, and more than one creator thread on the AD4 shape.
    • Other drivers, AMD, DXC 1.8.
    • Whether a title's programs reach AD4's commit, or how this commit adds to a title's own.
    • One run per cell; the sampled stack is from a single build.

    🤖 Claude Opus 5.5

  10. klNuno commented on Nov 23, 2026

    @klNuno

    Note

    Clanker Claude Opus 5.5 is responding on behalf of meetsu

    There is a separate case in the API discussed in Fix 2. When the address array is valid and the page array is null, XMemMapPhysicalPagesScatter returns FALSE with ERROR_INVALID_PARAMETER. That guard is still present on 85bdf21. The internal mapper already handles a null page array by unmapping. A local change on 4017f8f accepts the null array and passes it through for each address.

    Tested

    • A new regression test maps two noncontiguous addresses, writes distinct values, unmaps both with a null array, and checks that the original pages retain their contents. The call returned 0 before the change. With the change, all 18 kernelx tests passed on Windows 11 build 26200 (Ryzen 7 9800X3D, RTX 5080).
    • Three Series S profile runs on earlier local builds stopped at the same breakpoint after profile selection. Inspection of that call site showed a null page array passed to this function and a breakpoint on a FALSE return.
    • Two local title runs with the change and other patches stopped at the launcher's system memory reserve before the profile prompt.

    Not tested

    • Progress beyond the breakpoint with the change, a title run on 85bdf21, the full workspace suite, or this call on console hardware.

    AI use

    • Codex drove the builds and runs. Claude Opus 5.5 reviewed the fix, the test evidence and the call site, and drafted the report. Codex edited and posted it.
  11. vladbondarenko97 commented on Nov 24, 2026

    @vladbondarenko97
    Contributor

    Same wall, different NVIDIA generation, and one data point you don't have: a complete package (every archive present, incl. audio.rpf) reaches its first present instead of hanging at 0 presents.

    Setup: Windows 11, RTX 3080 Ti (Ampere, 12 GB), xcl origin/main db1ddb2 (so it includes the XCL_NETWORK=0 whole-process fix), retail 1.0.2.1 Series X package with all archives, XCL_NETWORK=0, XCL_FRAME_DUMP=2, XCL_TRACE_FAULTS=1. Not lockhart — default device type.

    What we get: the title presents at ~4–6 s — D3D12.X: PresentX – the title presents its own frames (1 plane(s)), swap chain 3840x2160 DXGI_FORMAT(28), present: first game frame shown (3840x2160). Then ~1.5 s later it dies. The dumped frame (frame_1.bmp, quarter-size 960x540) is uniform black — consistent with the numbers right after the present:

    [6.007] activity (2 s): 1 presents, 5 submits, 0 draws, 0 dispatches, 1 frame-event waits (0 timed out), 0 frame statistics (0 not flipped); DirectStorage 4200 requests
    

    So it presents a frame it never drew into. Pipeline accounting matches your window title:

    d3d12.presents = 1
    background_pipelines = [0, 0, 50561]   # 50,561 queued, 0 completed
    translated_pipelines = 0   fallback_pipelines = 0   failed_pipelines = 0
    shaders: unique 854, submitted 201,992   recomp_programs = 0
    

    Thread dumps line up with yours. Every PSO worker is parked on the same ntdll frame as in your dumps (ntdll+0x16a054 first), e.g.

    thread 99036 'xcl-pso-9':  ntdll.dll+0x16a054 < ntdll.dll+0x88fe3 < KERNELBASE.dll+0xddd18 < xcl.exe+0x4a1464 < xcl.exe+0x31e0d8 < xcl.exe+0x32cc31 < xcl.exe+0x45a817 < KERNEL32.DLL+0x2dda7
    thread 100284 'xcl-pso-10': (identical frames)
    

    and several threads sit in your watchdog region:

    thread 13368 '': ntdll.dll+0x166464 < KERNELBASE.dll+0x1427f < game_scarlett_master.exe+0x3a1a200 < game_scarlett_master.exe+0x2215eca < KERNEL32.DLL+0x2dda7
    thread 34984 '': ... < game_scarlett_master.exe+0x1da8776 < game_scarlett_master.exe+0x2215eca < KERNEL32.DLL+0x2dda7
    thread 96648 '': ... < game_scarlett_master.exe+0x1e95177 < game_scarlett_master.exe+0x2215eca < KERNEL32.DLL...
    

    But our death is not your Fix-2 watchdog write. Ours is an int3, not the mov dword [0], 0 at +0x2215c35:

    [6.583] unhandled exception 0x80000003 in game_scarlett_master.exe+0x1330a44
            rax=0x0 rbx=0x701596a80 (vtable game_scarlett_master.exe+0x62fd480) rcx=0xfffffffd rdx=0x1000 rsi=... rdi=...
            rbp=0x10000 r8=0x0 r9=0x0 r10=... r11=0x1000 r12=... r13=0x0 r14=0x17fb0 r15=0x1
            on the stack: +0x3143b5, +0x71c1560, +0x78d57e0, +0x51d2319, +0x7bdfaa8
    [7.240] process ends with status 0x80000003 (thread 61432)
    

    So on Ampere the stall is there (workers parked, 0/50,561 pipelines) but the failing assert is title+0x1330a44, with rcx=0xfffffffd, rdx=0x1000, rbp=0x10000 — which reads more like a memory/pages path than the watchdog.

    On your two fixes, from our side:

    • Fix 1 (chad.dll XDsp → acphal): we appear to be past it already — our run logs acphal: APU connected (4096 commands, 4096 messages) and acphal: ApuCreateHeap(...), and our title does not import chad.dll at all (imports_by_source lists only amd_fidelityfx_loader_xbox, bink2scarlett, libhttpclient.gdk, msvcp140, vcruntime140*, xboxbvhbuilder as game DLLs). So no assert there for us.
    • Fix 2 (XMemMapPhysicalPagesScatter quadratic → watchdog): plausible for us too, since four threads sit in the watchdog region, which is why I'd like to test it — if the diff exists as a branch, we'll build it here and report the numbers (RTX 3080 Ti, complete package, both xcl-smoke-style counts and the pipeline accounting above). If you'd rather keep it, no problem — the diagnosis alone is already useful.

    Nothing else here needs a reply; the numbers above are the whole point.

    AI-assisted (Claude Code CLI via a model proxy; the run and every log line above are xcl's own output).

  12. 15 remaining items

  13. MaurycyBartczak commented on Nov 24, 2026

    @MaurycyBartczak

    Follow-up to my earlier comment, now on main b7aa9f3, with the same machine (RTX 5070 Ti, driver 621.24, DXC 1.8.2502 from the SDK, 64 GB RAM). XCL_NETWORK=0, release build, A pressed through the menus by hand.

    What got better since 60565c4:

    • BCPack now unpacks: bcpack_refused is empty. bcpack_unpacked: BC1 2,082 requests, BC5 108, BC6H 1, BC7 208, all with failed: 0. The earlier runs refused 400–1,030 BC1 requests.
    • DirectStorage: 1 failed request in the whole run (it used to be 14–15). The run got past request #65536 (at 93 s).
    • The earlier crash in game_scarlett_master.exe+0x13936 (75–79 s, in both runs on 60565c4 and 63b9930) is gone.
    • 2,523 presents. background_pipelines 773 built, 0 failed. failed_pipelines 0.

    New crash, while loading, at 133 s:

    unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)
    rax=0x0 rbx=0x0 rcx=0x70024c348 rdx=0x1 rbp=0x0
    on the stack: +0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca
    

    This is a null write: rax = rbx = 0. The last lines before it are background compute PSOs (12–55 KB of DXIL, 64–328 ms each), with nothing unusual. One stub was new in this run: ID3D12GraphicsCommandList10::#101 (not on PC), 16 calls, first from game_scarlett_master.exe+0x50a6657. The others are the same as before: allocator #9, list #75/#126/#142/#131/#132, queue #31.

    I couldn't find this address in an existing issue. If it belongs in an issue of its own instead of here, I can move it there.

    AI-assisted (Claude Code); no game files attached.

  14. MaurycyBartczak commented on Nov 24, 2026

    @MaurycyBartczak

    Follow-up: the 0xc0000005 at game_scarlett_master.exe+0x23cf683 ("write at address 0x0") during the first load is not a NULL from a failed allocation. It is the title's own hang watchdog. The watchdog fires about 30 s after presenting stops while the title builds compute pipelines. The crash is deterministic.

    Setup: XCL b7aa9f3 (release build of that commit). RTX 5070 Ti 16 GB, driver 621.24. Ryzen 7 9800X3D, 64 GB RAM. Windows 11 26300, DXC 1.8.2502. All runs used XCL_NETWORK=0 and XCL_RUN_SECONDS=200. Runs 1–5 also used XCL_ACTIVITY=1 and XCL_PRESS_A_AT=15,20,25,30,35,40,45,50,55,60. Those presses take the title from the account prompt through to the loading screen, which starts at about 16 s.

    run extra setting crash RVA crash at presents presents stop commit / local VRAM at the last activity line
    0 (manual, A by hand from 55 s) – +0x23cf683 133.3 s 2,523 ~103 s (inferred: 2,400 at 95.8 s) – (no XCL_ACTIVITY)
    1 – +0x23cf683 92.3 s 1,259 62–64 s 28,963 / 14,266 MB
    2 – +0x23cf683 91.3 s 1,263 60.5–62.5 s 29,166 / 14,564 MB
    3 XCL_TRACE_MEM=200000 +0x23cf683 91.3 s 1,289 62–64 s 29,185 / 14,699 MB
    4 XCL_THREAD_DUMP_AT=66,78,86,90 +0x23cf683 92.3 s 1,259 62–64 s 29,746 / 14,528 MB
    5 XCL_PSO_WAIT_MS=2000 +0x23cf683 91.3 s 1,315 62–64 s 42,643 / 14,517 MB

    Every run has the same crash line: rax=0x0 rbx=0x0 and stack +0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca. ID3D12GraphicsCommandList10::#101 is called 14–18 times in each run, first from +0x50a6657. bcpack_refused is empty in every run. No nvlddmkm or 4101 events appeared in the System log.

    What the crash is: the frames in the crash line (+0x2215c35 / +0x2215eca) belong to a watchdog thread in the title. It checks a progress stamp once a second. After 30 s without progress it calls a hook (the function containing +0x23cf683), which deliberately writes to address 0. rax=0 and rbx=0 are that loop's counters running out, not an allocation result. The stack list in the crash line comes from a stack scan (one entry is not code), so read it as approximate. Anyone with the title can confirm this quickly at those RVAs.

    Timeline (XCL_ACTIVITY, runs 1–5): presents and submits drop to 0 between 62 and 64 s. DirectStorage requests also drop to 0. The crash follows 29–30 s later. That matches the 30 × 1 s countdown. Loading begins at about 16 s, so the crash comes about 76 s after loading starts. Run 0 has the same 76 s gap: loading began at about 57 s, after the manual presses, and the crash came at 133 s.

    Memory trace (run 3): the title makes 35 traced allocations of 64 KiB or more, all within the first 8.4 s, and none returns 0. There are 4 UMA: lines and none says no room. No out-of-memory lines appear. The largest reservations are 2 × 24 GiB and 1 × 6.1 GiB (GPU-visible, write-watched), plus 3.9 GiB in the coherent window. During the stall (run 1), commit rises from about 28.1 to 29.0 GB, and local VRAM stays flat at about 14.3 GB of 16 GB. In runs 1–4, local VRAM ends between 14.3 and 14.7 GB.

    Thread dumps (run 4, at 66 / 78 / 86 / 90 s, plus the dump at the crash):

    • Main thread: waits at +0x23cf735 (a WaitForSingleObjectEx through +0x56a0d) in every dump from 66 s to the crash.
    • Command-list thread: at 66, 78 and 86 s it is in xcl.exe bind::execute_indirect → pso_async::resolve_wait. It gets there from the title's list slot cache compiled shaders between pso requests #61 call at +0x248d19f (vtable +0x1E8). The title frame above that call changes between dumps (+0x359da2b, +0x359dac2, +0x359db0a), so these are successive waits for different pipelines, not one stuck build. At 90 s the thread is inside nvgpucomp64.dll. At the crash it is in real::translated_compute_pso → dxc::compile.
    • Other title threads: 3–4 of them alternate between translated_compute_pso (waiting for DXC) and nvgpucomp64.dll. At 90 s, all four D3D background threads are also compiling in nvgpucomp64.dll.
    • Pipeline builds: between 62 and 93 s, 41 translated compute pipelines are built, taking 55.7 s of build time in total. The longest is 7.6 s, for 523 KB of DXIL.
    • DirectStorage: all 17 xcl-dstorage workers are parked in every dump. No thread is in file I/O.

    XCL_PSO_WAIT_MS=2000 (run 5): this setting did not prevent the stall. Presents still stopped at 62–64 s and the crash came at 91.3 s. Per-pipeline driver builds were longer (up to 18 s), and commit grew to 42.6 GB. After logging the crash line, the process wrote nothing more: no crash dump, no thread dump, no exit. It used no CPU for about 5 minutes after the crash, well past the 200 s timeout, and I stopped it from outside. Commit and GPU memory were released and the driver logged no errors.

    Side note: DirectStorage requests failed with 0x89240009 in every scripted run. There were 946, 1,399, 926, 106 and 1,271 failures in runs 1–5. They all fall in 2-s windows between 44 and 52 s, about 15 s before the stall.

    Conclusion:

    • The crash is deterministic: 5 of 5 scripted runs crashed 91.3–92.3 s after start, about 76 s after loading began. The manual run fits the same pattern.
    • It is not a failed allocation.
    • The title's watchdog fires because nothing presents or submits for 30 s while the title builds a long series of large translated compute pipelines (DXC plus the NVIDIA driver compiler). The command-list thread waits for these pipelines at bind time, and the main thread is blocked the whole time at +0x23cf735. What it waits for was not identified.
    • The comment on XCL_PSO_WAIT_MS in pso_async.rs already anticipates this watchdog. A 2 s bind budget alone did not avoid it here, so something else also holds the frame. The longest synchronous compute-pipeline creations on title threads (5–18 s each) are the next thing to check.

    AI-assisted (Claude Code); no game files attached.

  15. milesah3ad commented on Nov 24, 2026

    @milesah3ad

    On NVIDIA, building a pipeline gets slower the more distinct pipelines are already alive, and so does DXC in the same process. Stand-ins (one shader shared by many pipelines) don't do this. No game files.

    Setup: RTX 5080 16 GB, driver 621.24, Ryzen 7 9800X3D (16 threads), 64 GB, Windows 11 Pro 26300, DXC 1.9.2609.5, main 930e8b4, release. Probe: milesah3ad/xcl pso-many (613d94c, local tooling, not for merging). It runs 15 threads, and each one translates a distinct synthetic compute program (the runtime options: 4 windows, split wave64, about 25 KB of DXIL each), compiles it with DXC and calls CreateComputePipelineState. Every pipeline is kept alive. The times below are the mean per pipeline on one thread, with 15 running at once.

    1. Build time against live pipelines (run with a release at 8,000)

    live (distinct) DXC ms driver ms private MB
    0–3,000 258–268 438–457 884–1,437
    4,000 305 709 1,723
    5,000 368 1,055 1,989
    6,000 496 1,358 2,192
    7,000 643 1,814 2,458
    8,000 794 2,278 2,590
    all 8,000 released, then 8,500–10,000 258–266 460–552 1,132–1,353
    • The driver time is flat up to about 3,000 live pipelines, then rises steadily: 5× by 8,000. A longer run without the per-stage split kept going: 23 → 1.3 pipelines/s overall from 0 to 18,000 live (43 → 752 ms of wall time per pipeline), with no failure. My time limit stopped it.
    • DXC slows too (3× by 8,000), although it has nothing to do with the pipelines. So the cost is process-wide, not only inside the driver's compile. It fits the ntdll heap-lock waits in the thread dumps at the top of this issue, but I haven't profiled it, and CPU contention from the driver's own threads could explain it as well.
    • Releasing every live pipeline brings both times back to the start values right away, and private bytes fall back (2,590 → 809 MB). So the slowdown comes from the live pipelines, not from DXC's state or from the size of the driver's disk cache.
    • About 0.26 MB of private memory per live pipeline. Local and non-local video memory stay flat (11 / 7 MB), as @lemosss measured in Device lost after ~60k live PSOs: "Kernel memory failure" from D3D12 debug layer (RTX 4060 Laptop, 8 GB) #1333.

    2. Identical pipelines (stand-ins) don't count. 60,000 pipelines of one program, created first and kept alive: 10.8 µs and about 6.5 KB each. Distinct pipelines built after them took 438–441 ms, the same as with nothing alive. So the ~57k stand-ins in #1333 don't add to this.

    What it means for a title, as far as I can tell: the first-load watchdog crash @MaurycyBartczak traced above happens with about 1.3k real pipelines alive, below where this starts on this machine, so it doesn't explain that crash. It would matter once a run holds several thousand real pipelines (preload of an earlier run's pipelines, or a longer session). Then every further build gets slower, the waits at bind time grow, and the 30 s watchdog gets closer. If that holds on other cards, evicting real pipelines the title hasn't bound in a while, or capping how many the preload builds ahead, would keep builds at their base speed.

    Not tested

    • Other NVIDIA generations and drivers, AMD, graphics pipelines (compute only here), real programs from a retail pack, and fewer creator threads (all runs used 15).
    • Where the process-wide time goes (heap, CPU or driver locks). No profile was taken.

    AI use

    • Claude Code (Claude Opus 5.5) wrote the probe, ran it on the machine above and wrote this report. I checked the numbers against the run logs.
  16. added
    goal:world-load
    on Nov 24, 2026
  17. wondercrash commented on Nov 24, 2026

    @wondercrash
    Contributor

    On our machine the NT process-heap lock slows NVIDIA's compiler only when DXC runs in the same process at the same time; with the driver alone the heap type makes no difference. That fits @QemmHD's "no effect" numbers and @Kalmarv's single build without lock waits.

    Setup: RTX 5090 32 GB, NVIDIA 621.14, Ryzen 7 9800X3D, 62 GB RAM, Windows 11 23H2 (10.0.22631), release build. Tree: our integration branch wondercrash/xcl (upstream main plus other open upstream PRs plus our own changes, not plain main). Snapshot on integ at about b555b63; bench on 952b1ca (b555b63 + the segment-heap manifest).

    Snapshot (WinDbg, one snapshot only). xcl shaders shaders.rpf --precompile --only cs --used --pipelines, cold caches, 8 driver threads and 15 DXC threads in one process:

    • One NT process heap: 2.6 GB committed, 7 363 free blocks (15 % external fragmentation), lock contention counter 552 951.
    • An nvgpucomp64 thread held its lock inside RtlReAllocateHeap → RtlFreeHeap → RtlpDeCommitFreeBlock → RtlpInsertFreeBlock → RtlpFindEntry → RtlpHeapFindListLookupEntry.
    • Waiting for it: D3D Background Thread 0 (nvgpucomp64, allocating) and three DXC workers (DxcNew ×2, DxcDelete).

    Bench (scratch test, not pushed): 20 translated retail compute programs, 0.30–1.05 MB DXIL (13.9 MB in all). Each is cold for the driver (unique static sampler and root constants, fresh exe copy per run). 8 driver threads, biggest first. "+ DXC": 15 more threads keep XCL's DXC pool busy with the runtime HLSL of 44 retail compute programs, starting 5 s before the driver. Segment heap = the same exe with the heapType manifest added by mt.exe. #688 = 760f742's dxc.rs ported onto the same tree. Two runs per cell where two values are given.

    variant driver wall per compile median / max NT lock collisions, driver phase process heap commit
    NT heap + DXC 135.5 / 137.7 s 31.1 / 89.8, 27.2 / 88.6 s 2 318 604 / 2 000 205 45 → 1198 / 1304 MB
    segment heap + DXC 76.6 / 83.7 s 28.5 / 34.1, 29.1 / 48.1 s – –
    NT heap + DXC on #688's private heaps 71.2 / 91.3 s 24.6 / 39.1, 28.5 / 52.9 s 779 266 / 613 677 44 → 262 / 263 MB
    segment heap + #688 (one run) 93.2 s 29.2 / 57.6 s – –
    NT heap, no DXC 34.1 s 13.2 / 16.3 s 1 159 184 19 → 285 MB
    segment heap, no DXC 35.8 s 13.8 / 16.9 s – –
    • The first eight programs (0.91–1.05 MB) took 69.6–89.8 s each on the NT heap next to DXC, and 13.5–16.3 s with no DXC (results.txt:3-10 vs :95-102).
    • Without DXC the NT heap still counts 1.16 M collisions, but the times match the segment heap. Driver threads among themselves are not slowed by the lock, as @QemmHD measured.
    • @ivall: private DXC heaps alone removed most of the slowdown here, although nvgpucomp64 stays on the process heap. With them the process heap grew to 262 MB instead of 1.2–1.3 GB. [inference] What hurts the driver is DXC's churn on the heap it shares.
    • DXC itself was slower on the segment heap: 2.65–2.85 vs 3.07–3.46 compiles/s during the driver phase.
    • Caveat: every run had another xcl process (a cache warm-up, DXC + driver) on the CPU, so absolute times are contended. The variants were interleaved in time (12:09–12:21).
    • [inference, not measured] What is left after either fix (median ~25–29 s vs ~13–14 s driver-only) is plain CPU sharing: 23 busy threads plus the warm-up on 16 logical CPUs. Why @QemmHD's 8 concurrent DXC compiles showed no difference is open; that load was smaller than 15 threads compiling for the whole driver phase.

    In our tree the manifest is 952b1ca (crates/xcl/xcl.exe.manifest with <heapType>SegmentHeap</heapType>, embedded by crates/xcl/build.rs, plus a test), merged into integ as 9d610e1. It also moves the title's UCRT malloc and every DLL's process-heap allocations to the segment heap. Upstream main 689f2db has no such manifest. #688 is the other route and did about as well here.

    Not tested

    • A title run with and without the segment heap.
    • A run on plain main.
    • Other drivers or GPUs, AMD.
    • 8 driver + 7 DXC threads, which would separate CPU sharing from the lock.
    • Smaller DXC loads like @QemmHD's.

    AI use: omp with Claude Opus 5.5 took the WinDbg snapshot, wrote and ran the bench; Claude Opus 5.5 wrote this; the runs are ours on the machine above.

  18. not-rex commented on Nov 25, 2026

    @not-rex

    @wondercrash a data point for your segment-heap manifest (952b1ca) on top of #688, from an RTX 3080 (10 GB, driver 610.88, Ryzen 9 5900X, Windows 11). Here the segment heap still helped with #688's private DXC heaps already in.

    Tree: main 930e8b4 + #688 + #757/#758/#759 + #820 + #1288 + #1321 + #929. #820 and #759's replay were hand-ported onto main's reworked big-compile turn. The second arm adds 952b1ca, cherry-picked.

    Run: xcl pipelines on a journal from a retail world run (58,741 pipelines to make), on a copy of the same warm cache. XCL_DXC_THREADS=4, XCL_BIG_COMPILES=2, 12 build threads, 30 min each, one run per arm.

    NT heap segment heap
    done at ~3 min (cached or keyed done) 51,647 51,642
    built in the next 27 min 12 (none after ~6 min, 12 always in flight) 84 (~3.1/min, steady)
    slowest logged build 1,593 KB blob, 91.4 s 1,457 KB blob, 54.9 s
    peak commit 52 GB 49 GB

    What's left are the big programs, and with the NT heap the same 12 sat in flight for most of the half hour. An earlier NT-heap run on the same journal made ~2.4/min, so treat the 7x as an upper bound; the direction matches your 135 -> 77 s.

    Are you planning a PR for the manifest? If not, I'm happy to open one with you as co-author, or to run yours on this card.

    AI use: Claude Code (Claude Opus 5.5) ran the A/B on my machine through a scripted runner and wrote this.

  19. milesah3ad commented on Nov 25, 2026

    @milesah3ad

    Follow-up to the DXC-and-driver-in-one-process slowdown above: with #1638's XCL_DXC_PROCESS=1 (DXC in worker processes), concurrent NVIDIA pipeline builds were 22 % faster on an RTX 5080 and the in-process penalty roughly halved (+70 % → +33 % over the driver alone), on synthetic programs. Details: #1638 (comment)

    AI use: Claude Code (Claude Opus 5.5).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    goal:world-load

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions