Repository navigation
Conversation
|
AMD RDNA4 data for #2098. The speed-up from building huge pipelines side by side carries over to AMD: 3.2× at 7 at once. The memory cost does not. Each extra concurrent build adds about 2.3 GB of process private bytes on the AMD driver, against 0.34 GiB on NVIDIA in the description. So the commit check carries more of the weight on AMD. Setup
Method
Results (round 1 / round 2; 7 of 7 made and 0 refused in all eight runs)
Read / inference
Not tested
AI use: Claude Code (Claude Opus 5.5) ran the measurement and drafted this. Counts and timings only, no game data. |
|
@bielfreedom thanks, this is the measurement I was missing. 2.6× at 4 slots on RDNA4 supports the default. 2.3 GB per extra build, against 0.34 GiB on NVIDIA, means the free-commit check has to stay as it is. I've added both to the description, and the 16 GB, 16-thread case to Not tested. It also changes a follow-up. I was about to shrink that check's headroom to scale with program size, using the NVIDIA figure, as part of a fix for #505 (a background build that holds its slot and waits for free commit forever). With your numbers that would have been unsafe on AMD. So the follow-up keeps the 3 GiB headroom and only bounds the wait. AI use: Claude Code (Claude Opus 5.5) wrote this. |
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
A regression run under Wine on Linux on the retail title: no device removal, no crash, frames level with Tested
Regression run main (first run): this PR: The second Not tested
AI use
|
|
Linux (Wine + vkd3d-proton) + NVIDIA test of Setup: Fedora 44, Wine 11.21 Staging, Ryzen 9 9950X3D (32 threads), 62 GB RAM, RTX 4070 12 GB (driver 615.71.09). vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175; its dxil-spirv is the branch Tested
Read
Not tested: memory: the harness kept no free-memory samples in these runs and under Wine XCL's commit counter reads 0, so what 4 driver compiles at once cost here is not known (the description measured 0.34 GiB per extra build on NVIDIA under Windows); the standard dxil-spirv; a machine with fewer threads; Windows; AMD and Intel. AI use: Claude Code (Claude Fable 5.2 read the diff and built the trees; Claude Opus 5.5 ran these runs and wrote this comment). Posted without review by a person: the account owner was away and reads replies later. |
|
@Royalflamejlh, thanks for the Linux run. I've added it to the description. On the preload: this PR doesn't change it, and it should stay at 4 here.
I've noted the 4-worker limit under Not tested. Tying the preload to the slot default is a possible follow-up, but nobody has started it. AI use: Claude Code (Claude Opus 5.5) wrote this reply. |
|
The 16-thread / 16 GB NVIDIA case from Not tested: on a Ryzen 7 9800X3D + RTX 5080, building huge pipelines side by side helps, but less than on the 9950X, and it peaks at 4. 4 at once was 1.79× faster than one at a time. 7 at once was slower than 4 (1.65×), because each build took about 3× as long. The PR's default here is Setup: RTX 5080 16 GB, driver 621.24; Ryzen 7 9800X3D (8 cores, 16 logical CPUs); 64 GB RAM; Windows 11 Pro 26300; rustc 1.100.0, release; Method (a local probe, not pushed):
Reading: on this machine the Not tested: retail programs (synthetic shapes only, though in the PR's size class and through the direct translator), a title run of this PR's runtime path, AMD, other CPU sizes (e.g. 12 or 24 threads, to see where the knee moves). 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 logs. |
|
@Kalmarv for the rebase after #1996 (merged 10:49, now conflicting here): #1996 caps wanted huge builds at AI use: Claude Code (Claude Opus 5.5) wrote this from my earlier measurements on this PR. |
|
@milesah3ad thanks. The rebase onto #1996 is done locally: one commit on Here is what it does with #1996's cap. #1996 keeps the wanted cap at Your 16-thread numbers make 7 look too many. 7 at once took 656 s against 604 s at 4, for more memory. So I'm weighing two defaults for the push: the current one bound to 1–7, or a bound of 1–4. The opposite data point is @b3IKK's RTX 5080 run on #505 (comment). There, two huge-compile slots changed nothing in the title (30 builds finished against 31), because each driver compile itself took 60–103 s. Kalmarv picks the default today. Then it gets a new suite and smoke pair on the pushed head, and I'll push it. AI use: Claude Code (Claude Opus 5.5) wrote this reply. |
Seven cold cascade-shadow pipelines on an RTX 5070 Ti took 87.5 s at one build at a time and 26.3 s at seven. Default the ordinary huge-build gate to one slot per four available logical CPUs, bounded to 1–4: on a 16-thread machine seven huge programs took 604 s at four builds at once and 656 s at seven. Keep the explicit override and existing free-commit check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
55eafb2 to
c3fe7f4
Compare
|
Independent Windows check of the current Tested: Clean exact-head worktree; Windows 11 build 26300, Ryzen 7 9800X3D (16 logical CPUs), RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC, DXC 1.8.2502.11, debug.
Not tested: A current-head retail smoke pair, a cold driver-cache compile, actual title compile throughput, AMD hardware, or lower-memory hardware. The PR description still shows a smoke pair for the prior head; the author is preparing a current-head pair. These synthetic tests establish reservation behavior, not a measured title speedup. AI use: Codex (GPT-6.2 Sol) reviewed the current diff, ran the tests on this machine, and drafted this report. AI-assisted. |
|
Independent AMD Radeon (native wave64) verification of exact head Tested
Regression run ( PR: Not tested
AI use
|
bmjask
left a comment
There was a problem hiding this comment.
P1 concurrent admission does not reserve commit. CPU-based default permits up to four ordinary huge compiles, but big_compile_turn only checks currently free 3GiB; workers can all observe it before driver allocations become visible, then each allocate ~2.3GiB (per PR AMD evidence). Giant lane can add another unreserved build. Reserve global headroom/require available >= headroom*(in_flight+1) atomically and add low-commit multi-worker test. README also wrongly claims every gated compile checks 3GiB; wanted compiles bypass it and their cap rises too.
With several huge compiles allowed at once, each checked only that 3 GiB was free when it was admitted. The workers could all see the same free commit before any driver allocation showed, then take about 2.3 GiB each. Each admitted compile now reserves its headroom (big_compile_headroom) in a pool shared by the ordinary and the giant lane until it finishes, and a background compile is admitted only when its headroom plus the pool is free: same-size compiles need headroom * (in flight + 1). The check and the reservation are taken under one lock. A wanted compile still skips the check, but reserves. Once a compile's own allocations show, they are counted twice: on a machine with little commit, fewer huge compiles run at once. The README now says which compiles check for commit and that wanted ones may run up to XCL_HUGE_PSO_WANTED_CONCURRENCY. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, you're right: four workers could all pass the same 3 GiB check before any driver allocation showed up in the free commit.
Once a running compile's own allocations show up in the free commit, its reservation counts them a second time. That is deliberate, on the conservative side: on a machine with little commit, fewer huge compiles run at once, never more. With plenty of commit (the machines in the description had 67 GiB or more available) nothing changes. Tests (CPU only, no driver):
Both tests fail when the check leaves the pool out ( Why the extra slots matter: in one of our own 600 s title runs ( README: fixed as well. The commit check is for background compiles only. Wanted ones skip it (they still reserve) and run up to
AI use: Claude Code (Claude Opus 5.5) wrote the change and tests, ran the suite, and drafted this reply. |
With the CPU-scaled default, huge_pso_concurrency is 4 on a 16-thread machine while huge_pso_wanted_concurrency stayed base.max(2), also 4: with four background huge compiles running, a build a title thread waits for had no slot of its own and queued behind them. The wanted default is now one more than the background concurrency, as it was when that was 1. Found by xcl-dev#2633's a_title_thread_does_not_wait_behind_a_background_whole_ build_waiting_for_its_turn, which fails with this branch merged and passes with XCL_HUGE_PSO_CONCURRENCY=1 or XCL_HUGE_PSO_WANTED_CONCURRENCY=5. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Pushed d27d471: a build a game thread waits for keeps one slot above the background ones. With this PR's CPU-scaled default the background limit is 4 on a 16+ thread machine, while Claude Code (Claude Opus 5.5) found the case, wrote the fix and test, and ran these. |
|
NVIDIA test report for
|
|
Thanks @upipibi: a 3070 with 32 logical CPUs is a useful second machine for the 4 + 1 slot split. Added to the description under Tested. |
|
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
Thanks! — Devin |
Part of #1269. Background driver compiles of pipelines from 256 KiB to under 4 MiB of DXIL take turns in one slot by default (
XCL_HUGE_PSO_CONCURRENCY=1). In a cold 120 s title run withXCL_DIRECT_DXIL=1, seven cascade-shadow compute pipelines of 520–990 KB queue behind each other there, each starting when the last finishes. With the new default of four at once, the same seven finish 2.3× sooner (87.5 s to 38.8 s) for about 1.1 GiB more commit.What is in it
crates/xcl/src/hle/d3d12x/real.rs: the default becomes one slot per four available logical CPUs, at least 1 and at most 4.XCL_HUGE_PSO_CONCURRENCYstill overrides it (1–64). The separate one-wide lane for 4 MiB and up is unchanged. The free-commit check before each background compile now counts what the huge compiles already admitted have reserved: each admitted compile reserves its headroom (3 GiB, or 512× its DXIL above 6 MiB) in one pool shared with the 4 MiB lane until it finishes, and the check and the reservation happen under one lock, so several workers can't all pass the same check before the driver's allocations show (review by @bmjask). A compile a title thread waits for still skips the check, but reserves too. A unit test covers the default for 1 to 64 CPUs, and two cover the reservation: one over both lanes, and eight workers racing for 7 GiB of free commit.README.md: the new default and the measurement behind it, and which compiles the commit check applies to.crates/xcl/src/hle/d3d12x/real.rs(d27d471): a build a game thread waits for keeps one slot above the background ones. With the CPU-scaled default the background limit is 4 here, and the wanted cap stayedbase.max(2), also 4, so with four background huge compiles running a wanted one queued behind them. The wanted default is now one more than the background limit, which is what it was when that limit was 1. Found by D3D12.X: the pieces of a split program read their slab from a root CBV #2633'sa_title_thread_does_not_wait_behind_a_background_whole_build_waiting_for_its_turnwith both merged; that test passes withXCL_HUGE_PSO_CONCURRENCY=1orXCL_HUGE_PSO_WANTED_CONCURRENCY=5on the same exe. The new unit testa_wanted_huge_compile_has_a_slot_above_the_background_onesfails on f22f239 and passes on d27d471.Tested
Ryzen 9 9950X (32 logical CPUs, so 4 slots with this default; the table below sets the count by hand), RTX 5070 Ti (NVIDIA 610.74), 31 GiB RAM, 85 GiB commit limit, Windows 11 build 26200, release, DXC 1.9.2609.
Cold driver builds of the seven pipelines as the title emits them (byte-identical to the title's cache), one fresh process per level, implicit caches off, nothing else running:
Each build gets slower as more run together (1.65× at 7), but the wall time keeps falling. At 7 it equals the longest single build. Commit grows by about 0.34 GiB per extra build. On this machine 7 was still the fastest. @milesah3ad's 16-thread machine took 656 s at 7 against 604 s at 4, for more memory, so the default stops at 4.
AMD RDNA4, measured by @bielfreedom (comment), RX 9070 XT, Ryzen 7 7700 (16 logical CPUs, so 4 slots with this default), 32 GB RAM. Seven direct compute programs of 701–970 KB, driver builds only: 395–419 s one at a time, 156–159 s at 4 (2.6×), 127–131 s at 7 (3.2×). Peak process private bytes rose from 4.1 to 17.9 GB, about 2.3 GB per extra build, against about 0.34 GiB on NVIDIA. On AMD, then, the free-commit check before each gated build (3 GiB, counting what the builds already admitted reserve) carries the weight of keeping a smaller machine safe.
A cold title run under Linux (Wine + vkd3d-proton) on an RTX 4070, measured by @Royalflamejlh (comment), Ryzen 9 9950X3D (32 threads), on
55eafb2withXCL_DIRECT_DXIL=1, NVIDIA's disk cache off, 100 s: up to 4 big compiles went through the gate at once and none waited, against 1 at a time and 222–225 s of summed waiting onmain. The 14 big compiles that every run finished were done by 41.5 s, against 95.0 and 90.4 s onmain, though each took about 1.5× as long in the driver. Of the two runs with this change, the second hit a crash at 19.1 s, the one D3D12.X: title texture reads outside the coherent window use the safe copy #751 fixes, whichmainruns there have had too; its numbers are left out.Independent memory measurement by @tiagonleal (comment), RTX 5070 Ti, 32 GB: whole builds of a medium size bucket add about 0.35 GiB of peak memory per extra worker, from 1 to 8 at once, matching the 0.34 GiB above. With 8 at once on their large bucket (up to 1.8 MB), free RAM stayed above 16 GB. Wall time fell 3.8× (medium) and 2.5× (large), while summed driver time rose about 1.65×.
Lib tests of
d27d471by @upipibi (comment), RTX 3070 8 GB (driver 616.56), Ryzen 9 5950X (32 logical CPUs: 4 background slots, 5 for compiles a title thread waits for), debug, on the PR's base06c9f55:cargo test -p xcl --lib(withhle::xaudio2skipped, which hangs there onmaintoo) 1191 passed, 0 failed, 26 ignored, the same 25 SKIPPED lines from 15 tests;a_wanted_huge_compile_has_a_slot_above_the_background_onesand the 15big_compile_tests, 3 runs each: all passed. No title run.cargo test --workspace -- --test-threads=4(debug, DXC 1.9.2609) ond27d471: 1269 passed, 0 failed, 46 ignored (thexcllibrary: 1200 passed, 26 ignored), with the same 25 SKIPPED notices from 15 tests (21 no native wave64, three refused per-lane cases, one no heap windows).cargo test --workspace -- --test-threads=4(debug) onf22f239, onmain06c9f55: 1268 passed, 0 failed, 46 ignored (thexcllibrary: 1199 passed, 26 ignored), with 25 SKIPPED notices from 15 tests (21 for no native wave64, three refused per-lane cases, one for no heap windows).main06c9f55in the same setup: 1265 passed, 0 failed, 46 ignored, the same 25 notices. Both reservation tests fail with the check left without the pool (the old behaviour) and pass with it.Regression run
scripts/smoke.ps1through our pair runner, 60 s each,mainatb49be18(a newermainthan this PR's base06c9f55, which it contains) then this PR's headd27d471, release builds from clean trees, on the RTX 5070 Ti under Tested, as one queue job beside other work, withXCL_DIRECT_DXIL=1set for the pair. Both runs got the full 4095 MB coherent window. The earlier 120 s pair onf22f239(1333 / 1313 frames, peak commit 29863 / 29957 MB) is superseded by this one.main:
PR:
PR vs
main: 1215 / 1200 frames (101 %), peak commit 23142 / 24762 MB (93 %); device removals 0 and crashes 0 on both.The change only matters when several huge pipelines are built cold at once, which a warm driver cache on this machine mostly hides, so this pair checks that nothing regresses.
Not tested
(compile_threads() / 4).clamp(2, 4)workers (pso_async.rs), the same at most 4 as this default. This PR leaves that count alone.AI use
OpenAI Codex (GPT-6.2) wrote the change and the test. Claude Code (Claude Opus 5.5) wrote the commit reservation and its tests. Claude Code (Claude Opus 5.5) helpers ran the concurrency measurement, and Claude Code wrote this description and opened the PR. Claude Code (Claude Opus 5.5) found the wanted-slot case on an integration branch and wrote d27d471 and its test.
🤖 Generated with Claude Code