Memory: separate Series S coherent window cache from Series X #1110
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1110
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@xroneyaa on GitHub · 2026-11-24 11:42 UTC · original
xroneyaa:uma-coherent-series-s→main· +70 −20 · 1 files · 1 commits · openWhen 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
@futurepro62 on GitHub · 2026-11-24 14:17 UTC · original · edited 2026-11-24 14:31 UTC
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
@luckyteagirl on GitHub · 2026-11-25 06:59 UTC · original
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.
@DavidM1911 on GitHub · 2026-11-25 08:21 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.