Repository navigation
Conversation
big_compile_commit_free still asked for min(free physical memory, free commit), the measure 71b8e6e took out of pso_async's worker throttle. Free physical memory is not what a compile can allocate, and under Wine it is the whole machine's: in a retail world load on Linux it sat at 1-2 GB with 45 GB of commit free, every xcl-pso worker waited in big_compile_turn_with for a compute pipeline's 3 GB, and the title waited in resolve_wait for one of them (0 presents for the rest of the run, 3 of 4 runs). It now uses pso_async::avail_commit_bytes, so both throttles read the same thing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
cc @ivall (the AI use: Claude Code (Claude Opus 5.5) wrote this comment. |
Port #2868. Use the pipeline workers' free-commit measure so low free RAM alone does not stall big compiles. Assisted-by: Claude (exact model unknown), Codex (GPT-6 family, exact model unknown)
…xcl-dev#2871 triaged SKIP, probe past xcl-dev#2871)
|
Tested: native Windows, AMD RDNA3. Both exact SHAs: Hardware / build: Radeon RX 7800 XT (16 GB), Adrenalin driver 32.0.31035.1003, Ryzen 8-core, 64 GB RAM, Windows 11 build 26200.9974, Rust 1.100.0 MSVC, release build. Unit tests (CPU only, head): Regression run (retail title, 240 s, same settings and warm shader cache for both, Both runs end the same way: an access violation inside the AMD driver ( Not tested: low free-RAM conditions (where this change is meant to matter); repeated runs (one per side, so the 2 s counts are not a statistical result); NVIDIA; the full test suite. AI use: run and report by Claude Code (Claude Sonnet 5.5). 🤖 Generated with Claude Code |
|
I reproduced the reported Changing only the fixture token from AI use: OpenAI Codex with GPT-6.2 Astra inspected the fixture and ran the comparisons; Codex coordinated and prepared this report. |
|
Closing: ivall ported this into @oni-swr thanks for the RX 7800 XT A/B. Agreed: no regression, and no evidence it helps, since the gate never bound on a 64 GB machine. @andrewDoing thanks. A caveat for whoever follows this on AI use: Claude Code (Claude Opus 5.5) checked the port and wrote this; I read it before posting. |
big_compile_commit_free(real.rs) still waits formin(ullAvailPhys, ullAvailPageFile), the measure71b8e6e0took out ofpso_async's worker throttle. Free physical memory is not what a driver compile can allocate, and under Wine it is the whole machine's free RAM. In a retail world load on Linux it sat at 1–2 GB with ~45 GB of commit free, everyxcl-pso-*worker waited inbig_compile_turn_withfor a compute pipeline's 3 GB, and the title waited inpso_async::resolve_waitfor one of them: 0 presents for the rest of the run. This makes the big-compile gate readpso_async::avail_commit_bytes, like the worker throttle. Found while testingamd-devunder Wine (#846, #175).What is in it
real.rs:big_compile_commit_freeusespso_async::avail_commit_bytes(nowpub(super)); the comparison is a smallbig_compile_roomwith a test (big_compile_room_is_free_commit_not_free_ram).Tested
x86_64-pc-windows-msvc).cargo test -p xcl --lib big_compileunder Wine: 15 passed, 1 failed. The failure isgiant_driver_compiles_have_their_own_laneatassert_eq!(parsed.len(), 2)forparse_rt_skip_hashes(…; bad)(left 3): it is in the ray-tracing skip list parsing, which this change does not touch. The whole suite was not run (on Wine it aborts atlist_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit, see D3D12.X: a placed view's padding does not make a second texture #2764 / D3D12.X: amd-dev readback waits: no stale wake-up, no buffer freed under a queued copy #2842).71b8e6e0(The retail title 1.0.2.1 (RTX 5070): reaches the end of the first-run setup, then deterministic 0xC0000005 write at 0x0 in game_scarlett_master.exe+0x23cf683 #846):#101(4 workers inbig_compile_turn_with, title inresolve_wait, Wine's free RAM 0.9–2.1 GB);Regression run
scripts/smoke.ps1needs Windows, which I do not have. A Windows run ofamd-devand of this head would be welcome.Not tested
AI use
🤖 Generated with Claude Code