Memory: separate Series S coherent window cache from Series X #1101
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1110"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by xroneyaa on 2026-11-24T11:42:36Z.
When a title is switched from Series X (
anaconda) to Series S (lockhart) in the same data folder,<data>\cache\uma_coherent.txtstill holds Series X's larger coherent-heap measurement andnote_coherent_neednever lowers it. On an 8 GB VRAM + 16 GB RAM Windows host this keeps the coherent window pinned at 4095 MiB (increasing non-local GPU memory usage under WDDM) even when the Series S profile only needs ~3407 MiB. Giving Series S its own<data>\cache\uma_coherent_lockhart.txtlets each console profile size its coherent window independently. Part of #333.What is in it
crates/xcl/src/gpu/uma.rs:coherent_file_for(data_dir, series_s): selectsuma_coherent_lockhart.txtwhenconfig().is_series_s()is true and keepsuma_coherent.txtfor Series X.coherent_hint_from(path, free)andrecord_coherent_need(path, bytes): helpers extracted fromcoherent_hint/note_coherent_needusing saturating addition before clamping toMAX_SIZE.series_s_coherent_cache_is_separate_from_series_x: verifies separate cache filenames, independent coherent window sizing (4,804,771,840B ->MAX_SIZEfor Series X vs3,036,545,024B ->3,573,415,936B for Series S), monotonicity within a file, and theNEEDS_FOR_COHERENT_HEAPSlow-commit fallback.Tested
32.0.16.1088, 32-lane waves); CPU: 12th Gen Intel Core i5-12400F; 15.9 GB RAM; Windows 11 Pro Build 22631; Rust1.100.0 (0ef1bc386 2026-11-09); DXC1.8.2502.11..\scripts\test.ps1(cargo test --workspace -- --test-threads=4, debug): 742 passed, 0 failed, 41 ignored (SKIPPEDGPU tests:2 (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware), includinggpu::uma::tests::series_s_coherent_cache_is_separate_from_series_x.cargo test -p xcl series_s_coherent_cache_is_separate_from_series_x: passed 3 consecutive runs (0 failed).cargo build --release -p xcl): succeeded cleanly.4,804,771,840B (4095MiB coherent window;non-localpeaked at4685MB when reused onlockhart), while a freshlockhartrun asked for3,036,545,024B (3407MiB window with XCL's512MB headroom;non-localpeaked at3997MB underXCL_COHERENT_MB=3200).Regression run
main:
PR:
Not tested
AI use
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:17:06Z.
Full-suite run, since this PR has no test report yet. Tested exact head
2c4bcb5(on its base47efa2e).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.series_s_coherent_cache_is_separate_from_series_x.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored, no skips.origin_events_issue_tokens_and_flips_have_statistics("4 origins at 60 Hz took 18 ms"), while other GPU jobs ran on the machine; the rerun above is clean.Not tested
AI use
upstream-sync referenced this pull request2026-11-24 19:06:45 +00:00
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-25T06:59:30Z.
Independent Windows check of exact PR head
2c4bcb5d60907274c274d187f80fbdcacef74c4e.Tested
30.0.13002.13003; Rust 1.99.0 MSVC; DXC/DXIL 1.9.2609.5; debug tests.XCL_REQUIRE_GPU=0,XCL_DIRECT_DXIL=0;cargo test --locked -p xcl --lib -j 2 gpu::uma::tests -- --test-threads=1 --show-output: 8 passed, 0 failed, 0 ignored, 0 SKIPPED. This includesseries_s_coherent_cache_is_separate_from_series_x, which exercises distinct cache paths and coherent-window calculations. These tests did not create a D3D12 device; the GPU identifies the host, not GPU coverage.I did not run the full GPU workspace suite, change the host between Series X and Series S profiles, or run a paired title smoke for this PR. The test validates cache selection and calculations, not a live game's coherent allocation behavior.
AI-assisted checkout, testing, log verification, and report drafting with OpenAI Codex (GPT-6). No game data was used.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T08:21:52Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by safesearch77 on 2026-11-26T16:40:55Z.
Reviewed
2c4bcb5d(#333uma_coherent_lockhart.txtseparation) and compile-verified a rebaseonto
main(8b957bec). One important adaptation formain's 8/16-windowXCL_HEAP_WINDOWS=1support in
crates/xcl/src/gpu/uma.rs:mainreplacedMAX_SIZEincoherent_hint_for(windows)andnote_coherent_needwithlet cap = max_coherent_bytes(windows);(up to 5 or 13 coherent windows). Passingcap: usizeinto
coherent_hint_from(path: &Path, free: usize, cap: usize)(title.saturating_add( RUNTIME_COMMITTED_CAP).min(cap)) instead of clamping toMAX_SIZEpreserves multi-window sizingwhile keeping Series S and Series X caches separate.
(Keep both
runtime_layout_supports_eight_and_sixteen_heap_windowsandseries_s_coherent_cache_is_separate_from_series_xinmod tests, passingMAX_SIZEascapinthe latter.)
Checked by merging
2c4bcb5dontomain(8b957bec) and runningcargo check --workspace --tests(
x86_64-pc-windows-gnu, 0 errors, 0 new warnings); no GPU, Wine or Windows run.AI use: Antigravity (Gemini 4 Carbon High) adapted
2c4bcb5dtomain's multi-window UMA layoutand compile-checked the tree; independently verified by Gemini 4 Hydrogen XHigh.
Pull request closed