Repository navigation
Conversation
A background huge driver compile took its slot and then slept until its commit headroom (3 GB, or 512x the DXIL above 6 MiB) was free. The only way out was a title thread asking for that pipeline. On a 32 GB machine at ~28 GiB process commit, the holder never went on, and the other preload workers queued behind it for the rest of the run (xcl-dev#505). The commit wait now also ends in two cases, and the build goes on with its slot: - after 10 s with no huge driver compile in flight on any thread (nothing XCL builds would give commit back then); - after 30 s in any case. A warning names which of the two ended it. The headroom itself is unchanged. On RDNA4 each extra concurrent huge build added ~2.3 GB of private bytes, against ~0.34 GiB on NVIDIA (xcl-dev#2098), so a smaller headroom would not be safe there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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
|
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
Independent Windows check on a72af1a. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC, DXC 1.8.2502.11.
The timer probe used shortened thresholds, simulated memory and no native driver compile. No retail smoke was run. AI use: Codex (GPT-6, exact variant unspecified) wrote and ran the scratch test, ran the workspace suite and drafted this report. |
|
Closing: #1996 (merged) reworked the huge-build gate this PR changed. Builds that nobody is waiting for now wait for commit before they take a slot, and wanted builds have their own cap. That covers the stall this PR was for. The 10 s / 30 s bound on the commit wait isn't worth carrying alone against the new gate. If a run on a machine short of commit shows the wait hanging again, I'll reopen it against AI use: Claude Code (Claude Opus 5.5) wrote this note. |
Part of #505. A background driver compile of a huge pipeline (256 KiB of DXIL and up, on an
xcl-pso*worker) takes its slot first and then sleeps until its commit headroom is free: 3 GiB, or 512× the DXIL above 6 MiB. Nothing but a title thread asking for that pipeline ends the sleep.@Royalflamejlh's measurement on #505 found this on a 32 GB machine at 27.7–31.5 GiB of process commit:
big_compile_turnthrough the world-load stop in 26 of 27 samples: one in the commit wait, two waiting for its slot;Free commit only fell during the run, so the holder would never have gone on. This PR bounds that wait; the headroom stays as it is. It is independent of #2098, which changes the default number of huge-compile slots in the same file.
What is in it
All of it is in
crates/xcl/src/hle/d3d12x/real.rs, one commit.big_compile_turnnow ends in two more cases, and the build then goes on with its slot.HUGE_IN_DRIVER, counts huge compiles inside the driver. It is a guard aroundbuild()indriver_compile_identified.big_compile_headroom) is unchanged. Per build it costs far more commit on AMD than on NVIDIA:the_commit_wait_ends_alone_or_after_the_longest_waitinjects the free-commit reading and the in-flight count. It checks that:big_compile_turnkeeps its signature and callsbig_compile_turn_alone, which takes the counter and both times, so the test can inject them.Tested
cargo test -p xcl --lib big_compile_tests(debug): 10 passed, 0 failed, 0 ignored.cargo test --workspace -- --test-threads=4(debug): 1155 passed, 0 failed, 46 ignored. SKIPPED notices: no native wave64, three unsupported per-lane FP forms, no heap windows, and validation steps the SDK's DXC 1.7 validator can't run. The new test ran and passed.main's gate (the old wait behind the same signature): it doesn't finish and was killed by a 20 s timeout.Regression run
scripts/smoke.ps1 -Seconds 120, the same retail title, default settings, on the machine above, release builds from clean trees.mainran at 04:51 UTC and this PR at 05:32 UTC, with the same settings.maincbc296a(this PR's base):this PR,
a72af1a:1324 against 1326 frames shown, and 30097 against 29946 MB of peak commit, so no regression. Both runs,
mainincluded, presented no frames in their last 6 s, so that stall does not come from this change. The new warning appears in neither runtime log.Not tested
AI use
Claude Code (Claude Opus 5.5) wrote the change, the test and this description, and ran the tests and the smoke pair.
🤖 Generated with Claude Code