Repository navigation
Conversation
With XCL_PSO_WAIT_MS a bind waits for a compute pipeline within a budget and goes on with the stand-in. The build stayed "wanted", and a wanted build of a big program (256 KB of DXIL or more) takes neither the one slot for big driver compiles nor waits for 3 GB of free commit: that rule is for a bind that waits until the pipeline is built, which would hold the title. With a budget nothing holds the title, and the builds piled up in the driver. Measured on a retail title's world start (RTX 5070 Ti, 16 threads, 32 GB, XCL_PSO_WAIT_MS=100, cold driver cache, main 930e8b4): nine big compiles in the driver at once, eight of them begun with less than 3 GB of commit free (down to 0.8 GB), and 2.3 GB more process commit in 28 s with video memory flat. Under a budget a big build now always takes a turn. One nobody has bound stays in the one-at-a-time queue; one the title has bound (a bind waits for it or went on without it) takes a slot of a second queue, sized from the machine (half the logical processors, one per 8 GB of memory, at least one), and waits for the commit like the others. Without a budget nothing changes. Same run with the change: one big compile in the driver at a time, none begun with less than 3 GB free. The machine had under 3 GB free by the time the title bound its big programs, so several at once was not seen in a title run; the unit test covers it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
There was a problem hiding this comment.
My earlier comment reported EXEC-mask results from #1801. I reviewed the compile scheduler here at 6bf360e6e8089b52d2df9662b81d64f0522fd5c5.
With the free-commit check held false, I promoted a worker that already held the background slot. It released that slot, occupied one bound slot and stayed blocked until I allowed the commit check to pass. Both slot counts returned to zero after the worker finished. I found no actionable defect in that handoff.
The independent batch002_scheduler fixture and the big_compile_tests and a_build_hears filters ran serially with cargo test --offline --locked -j 1 -p xcl --lib <filter> -- --test-threads=1 --nocapture. Across those runs, 6 passed, 0 failed, 0 ignored, and 0 skip notices. Windows 11 build 26200.9974, Ryzen 7 5800X, RTX 3080 driver 616.92, debug MSVC Rust 1.100.0. The fixture controlled the memory predicate. It did not measure driver memory under load, the DXC reserve or preload-worker priority.
Codex (GPT-6) inspected the scheduler, wrote the promotion fixture and checked the test logs.
|
Reading this against
Context from an RTX 3080 world run with AI use: Claude Code (Claude Opus 5.5) read the code and wrote this note. |
XCL PR #1686 — Windows / Intel Arc A770 verificationHead STOR-WINLAB ran Windows 11 Enterprise Evaluation x64 (build 26200.9974) on an AMD Ryzen 7 3800X and Intel Arc A770 (driver 32.0.101.9175). Tested
Workspace failures and skips The library had 17 failures. Thirteen reported Not tested No matched main run, retail-title smoke run, or measurement of driver compile concurrency under retail load. Optional game sample variables were unset. Other GPU vendors were outside this run. AI use T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against |
|
Test report: #1686 rebased onto This is a local rebase, not the PR head.
let commit_free = || big_compile_commit_free(big_compile_headroom(bytes));
let slot = huge
.then(|| match kind == "compute" && super::pso_async::binds_have_a_budget() {
true => {
let lane = compile_slots(bytes);
let bound_lane = if std::ptr::eq(lane, &GIANT_COMPILES) { lane } else { bound_compiles() };
Some(bound_compile_turn(lane, bound_lane, commit_free, super::pso_async::build_is_bound))
}
false => big_compile_turn(compile_slots(bytes), commit_free, super::pso_async::build_is_wanted),
})
.flatten();#751 was applied on the same tree (it applied cleanly and only touches Tested
Regression run
Not tested
AI use
|
With
XCL_PSO_WAIT_MSset, a bind waits for a compute pipeline within a budget and then goes on with the stand-in. Its build stayed "wanted", and a wanted build of a big program (256 KB of DXIL or more) takes neither the one slot for big driver compiles nor waits for 3 GB of free commit. That rule is for a bind that waits until the pipeline is built; with a budget nothing holds the title, and the builds piled up in the driver. Under a budget a big build now always takes a turn. WithoutXCL_PSO_WAIT_MSnothing changes. Part of #1269 (claimed there: #1269 (comment)).What is in it
crates/xcl/src/hle/d3d12x/real.rs:bound_compile_turn– under a bind budget, a big build nobody has bound stays in the one-at-a-time queue (BIG_COMPILES); one the title has bound takes a slot of a second queue and waits for the commit like the others.bound_compiles_at_oncesizes that queue from the machine: half the logical processors, one per 8 GB of memory, at least one (4 on 16 threads / 32 GB). Testsbound_builds_go_several_at_once_and_wait_for_the_commit,bound_builds_at_once_follow_the_threads_and_the_memory.crates/xcl/src/hle/d3d12x/pso_async.rs:binds_have_a_budgetandbuild_is_bound(a bind waits for the build, or went on without it). Testa_build_hears_that_its_pipeline_is_bound.Tested
NVIDIA GeForce RTX 5070 Ti 16 GB (32-lane waves), driver 32.0.16.1088; Ryzen 7 5800X (16 threads), 32 GB RAM; Windows 11 Pro 26300; rustc 1.96.1
stable-x86_64-pc-windows-msvc; DXC 1.9.2609.5; tests in debug, title runs in release.cargo build --workspace+cargo test --workspace -- --test-threads=4on6bf360e: 861 passed, 0 failed, 42 ignored.SKIPPED:gpu_geometry_wave32_prefix_count_over_a_mask(no wave64),gpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).Retail title, world start,
XCL_PSO_WAIT_MS=100,XCL_PSO_DISK_CACHE=0, a new exe name per run (cold driver cache), scripted A presses. These runs were onmain930e8b4with temporary log lines around the driver's compile of big programs (not in this PR), before the rebase:930e8b4The "with this change" column is a run of an earlier form of the change that put every bound build back into the one-at-a-time queue. A run of the form in this PR (with D3D12.X: a bind does not wait for a pipeline behind the workers' queue #1273 applied locally on top) also had one big compile in the driver at a time and none begun under 3 GB free; its bound builds were waiting for the commit, which was under 3 GB from 90 s on (0.6 GB at 122 s) from the world load alone.
Regression run
scripts/smoke.ps1 -Game <folder> -Seconds 60, release, mainc160d86and this PR's head6bf360e:Not tested
XCL_PSO_WAIT_MSand without input, so the title stays in its front end.threads / 2and one per 8 GB are the right sizes.6bf360ewithXCL_PSO_WAIT_MS(the measurements above are on930e8b4).AI use
🤖 Generated with Claude Code