Repository navigation
UMA: cap the coherent window at RAM/8 below 24 GB of RAM - #3068
Conversation
The coherent window is pinned in system RAM. On a 16 GB machine its 4 GiB default leaves the title paging; an eighth of RAM (at least 1 GiB) keeps it usable. XCL_COHERENT_MB still overrides it, and XCL_COHERENT_AUTO_CAP=0 turns the cap off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Help wanted: test reports from machines with less than 24 GB of RAM, on any GPU. The change only acts below 24 GB of RAM. With 24 GB or more it is a no-op, which is also worth confirming.
AI-assisted (Claude Code with Claude Opus 5.5). |
|
Wine A/B across the RAM line: the RAM/8 cap does not change either We run xcl's CPU-side suite under Wine on two machines that sit on opposite sides of your 24 GB threshold:
Tested Baseline
Solo runs of the two uma tests, 3 each, same trees:
What this adds The cap is live on the 16 GB lane (2 GiB window by your own table) and neither red moves at all: same asserts, same values, same failure counts in-suite and in solos. So on Wine these two reds are not coherent-window-sizing reds - the cap helps real titles page less, but the test failures survive it. If you expected one of the Wine reports in #2977 to be fixed by this PR, it will not be, on either RAM side. Separate observation while baselining (not caused by this PR): on the 96 GB rig, Not tested Native Windows. Real title runs / paging behavior under the cap. AI use Hermes agent (local Qwen-class) ran the tests and drafted this; I checked it before posting. |
|
I found a test-isolation issue on exact head Using one freshly built exact-head test binary in separate processes, I ran
Only the initial process environment differed. Passing the enabled/disabled choice into the calculation (with a separate opt-out assertion) would make the test deterministic without mutating shared process environment. This is a test failure under a supported setting; I did not observe a production memory failure or run a title. AI use: OpenAI Codex with GPT-6.2 Astra ran the checks; Codex reviewed and prepared this report. |
What is in it
The coherent window is pinned in system RAM (Windows counts it as the process's shared GPU memory). On 16 GB machines its default 4 GiB leaves the title paging.
coherent_hint_fornow caps it at an eighth of physical RAM (at least 1 GiB) when the machine has less than 24 GB. With 24 GB or more nothing changes.XCL_COHERENT_MBstill wins over the cap.XCL_COHERENT_AUTO_CAP=0turns the cap off.Tested
RX 6750 XT 12 GB, 16 GB RAM, Windows 11 26200, driver 32.0.21045.29003. The retail title ran on Series X (
anaconda) with a warm cache andXCL_PREPARE=0, 8 minutes per side, with A pressed automatically. GPU memory comes from Windows' per-process counters.The average shared memory stays about the same because VRAM over-commit spills into shared memory. The gain is free RAM: the title stops pushing the machine to 0 MB available.
On
amd-dev, the same cap skips about 2 % of two-pass ExecuteIndirect draws whose arguments fall outside the smaller window (bind.rs, reported in #2996). Onmainthat path does not exist, and 0 draws were skipped.Regression run
Same title,
XCL_PREPARE=0, separate empty caches.mainran with its ownscripts/smoke.ps1.main 6089122:
This PR:
Frames are 86 % of main's, and peak commit is 103 %. Both runs hold 60 presents per 2 s at the end, so the frame gap comes from startup timing.
Full suite (
cargo test --workspace --no-fail-fast -- --test-threads=4):The one failure is
gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1, and it fails on both sides. The first PR suite run also failed the 3e2etests becausexcl_testtitle.exehad not been built in that target dir. Aftercargo build --workspace,e2epasses 4/4.Not tested
AI use
Code, measurements and text were made with Claude Code (Claude Opus 5.5). I reviewed the change and ran every test on the hardware above.
🤖 Generated with Claude Code