cores: lower victory-list priority on V-Cache CCD and move ahead workers off CCD0 #1857

Manually merged
github merged 1 commit from github-bot/gh-1857 into main 2026-11-29 08:21:17 +00:00 AGit
Owner

@⁠Bazovsky on GitHub · 2026-11-29 00:48 UTC · original
Bazovsky:pr/cores-vcache-list-priority → main · +61 −7 · 5 files · 1 commits · merged 2026-11-29 08:16 UTC

Fixes #

What it changes

Follow-up to #1093 (and addressing CCD0 contention raised in #1662) on dual-CCD 3D V-Cache CPUs (e.g. Ryzen 9 9950X3D):

  • Relieve CCD0 priority contention from victory-list-* (crates/victory-gpu/src/cores.rs, list/thin.rs): when the process is placed on one V-Cache CCD (PLACED == true, 7 shared cores after carving a dedicated core for victory-submit), VICTORY_HELPER_PRIORITY=1 previously left the thin list translators (victory-list-*, ~2.86 cores CPU) at ABOVE_NORMAL priority — competing equal-priority with submit-blocking helpers (victory-heap-sync, victory-wide, victory-under, victory-records, victory-views) and preempting normal-priority title/cutscene threads and uploads ahead. keep_list_worker keeps victory-list-* inheriting CCD0's CPU sets (avoiding the cross-CCD plan_card penalty measured when moving list translators to CCD1) while dropping their priority to BELOW_NORMAL (-1, overridable via VICTORY_LIST_PRIORITY=-2..=2). When not placed (PLACED == false: single-CCD X3D, Intel hybrid, non-X3D, VICTORY_CACHE_CORES=0), existing VICTORY_HELPER_PRIORITY behaviour is preserved unchanged.
  • Move async prefetch/background workers off CCD0 (crates/victory-gpu/src/texture/ahead.rs, picked.rs, ahead.rs): uploads ahead, victory-picked, and victory-ahead call keep_off_the_frames_cores so they run on the otherwise ~95% idle frequency CCD (CCD1), matching victory-pipelines and dstorage.
  • Unit test (crates/victory-gpu/src/cores.rs): adds list_worker_priority_drops_below_normal_only_when_placed_or_overridden.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): NVIDIA RTX 5090 32 GB (driver 610.88), AMD Ryzen 9 9950X3D (16C/32T, dual-CCD with 96 MB 3D V-Cache), 62 GB RAM, Windows 11 (Balanced, amd3dvcacheSvc running); Series X profile, 1440p SDR, DLSS Quality, Frame Generation OFF, RT default (VICTORY_AMBIENT/VICTORY_BVH_MISS).
  • Strict interleaved ABABAB (3× origin/main d4b5d51 vs 3× pr/cores-vcache-list-priority 28793b8, identical release builds RUSTFLAGS="-C target-cpu=znver5", 150 s prologue cutscene runs covering light cutscenes 100..1500, mid cutscenes 1500..3000, and heavy Bink cutscene 3000..4000, 0 D3D12 errors, left_in_middle = 0.00, title_waited = 0.00 ms in all 6 runs):
Run Median ms (FPS) p95 ms DLSS frames (150 s) Prep ms heaps_end under ref plan 100..1.5k 1.5k..3k 3k..4k
A1 CTRL 28.90 (34.6) 35.90 3,705 27.85 1.00 2.50 8.10 2.45 40.0 33.1 32.3
A2 CTRL 27.40 (36.5) 34.60 3,924 26.70 0.90 2.50 7.40 2.60 41.3 37.2 32.4
A3 CTRL 28.20 (35.5) 34.20 3,855 26.90 1.00 2.50 7.60 2.50 38.8 35.8 31.9
CTRL mean 28.17 (35.5) 34.90 3,828 27.15 0.97 2.50 7.70 2.52 40.1 35.4 32.2
B1 FIX 26.10 (38.3) 33.00 4,047 24.70 0.40 2.20 7.10 2.40 40.5 39.6 33.9
B2 FIX 26.20 (38.2) 33.85 3,975 25.00 0.40 2.20 7.30 2.20 41.9 38.5 32.7
B3 FIX 27.10 (36.9) 33.90 3,955 25.90 0.40 2.30 7.40 2.30 41.8 37.5 33.4
FIX mean 26.47 (37.8) 33.58 3,992 25.20 0.40 2.23 7.27 2.30 41.4 38.5 33.3
  • Before (d4b5d51): mean 28.17 ms (35.5 fps), p95 34.90 ms, Prep 27.15 ms, heaps_end 0.97 ms, under 2.50 ms, texture::ahead latency 0.7–1.2 ms (28,154–45,931 turned down), 3,828 DLSS frames in 150 s.
  • After (28793b8): mean 26.47 ms (37.8 fps, +2.3 fps / +6.5%), p95 33.58 ms (-1.32 ms), Prep 25.20 ms (-1.95 ms), heaps_end 0.40 ms (-2.4×), under 2.23 ms (-10.8%), texture::ahead latency 0.2–0.3 ms (11,074–11,977 turned down, -70%), 3,992 DLSS frames (+164) — zero overlap between CTRL and FIX across all metrics.
  • Note: moving victory-list-* itself off CCD0 onto CCD1 was also tested (150 s), and while it improved the heaviest Bink window (27.7 → 31.2 fps), it added +0.5–0.9 ms cross-CCD cache traffic on plan_card; keeping victory-list-* on CCD0 at BELOW_NORMAL avoids the cross-CCD penalty while eliminating helper/title contention.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): N/A (no shader changes).
  • cargo test passed for the crates it touches: yes (victory-gpu: 551 passed, 0 failed — 514 non-watch + 37 watch::tests serial; clippy + --features diagnostics check clean with 0 new warnings).

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #1093, #1662 (addresses CCD0 contention on dual-CCD V-Cache CPUs without disabling V-Cache placement; preserves existing non-placed behaviour if #1662 makes placement opt-in).
**@⁠Bazovsky** on GitHub · 2026-11-29 00:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1857) `Bazovsky:pr/cores-vcache-list-priority` → `main` · +61 −7 · 5 files · 1 commits · merged 2026-11-29 08:16 UTC Fixes # ## What it changes Follow-up to #1093 (and addressing CCD0 contention raised in #1662) on dual-CCD 3D V-Cache CPUs (e.g. Ryzen 9 9950X3D): - **Relieve CCD0 priority contention from `victory-list-*` (`crates/victory-gpu/src/cores.rs`, `list/thin.rs`)**: when the process is placed on one V-Cache CCD (`PLACED == true`, 7 shared cores after carving a dedicated core for `victory-submit`), `VICTORY_HELPER_PRIORITY=1` previously left the thin list translators (`victory-list-*`, ~2.86 cores CPU) at `ABOVE_NORMAL` priority — competing equal-priority with submit-blocking helpers (`victory-heap-sync`, `victory-wide`, `victory-under`, `victory-records`, `victory-views`) and preempting normal-priority title/cutscene threads and `uploads ahead`. `keep_list_worker` keeps `victory-list-*` inheriting CCD0's CPU sets (avoiding the cross-CCD `plan_card` penalty measured when moving list translators to CCD1) while dropping their priority to `BELOW_NORMAL` (`-1`, overridable via `VICTORY_LIST_PRIORITY=-2..=2`). When **not** placed (`PLACED == false`: single-CCD X3D, Intel hybrid, non-X3D, `VICTORY_CACHE_CORES=0`), existing `VICTORY_HELPER_PRIORITY` behaviour is preserved unchanged. - **Move async prefetch/background workers off CCD0 (`crates/victory-gpu/src/texture/ahead.rs`, `picked.rs`, `ahead.rs`)**: `uploads ahead`, `victory-picked`, and `victory-ahead` call `keep_off_the_frames_cores` so they run on the otherwise ~95% idle frequency CCD (CCD1), matching `victory-pipelines` and `dstorage`. - **Unit test (`crates/victory-gpu/src/cores.rs`)**: adds `list_worker_priority_drops_below_normal_only_when_placed_or_overridden`. ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): NVIDIA RTX 5090 32 GB (driver 610.88), AMD Ryzen 9 9950X3D (16C/32T, dual-CCD with 96 MB 3D V-Cache), 62 GB RAM, Windows 11 (Balanced, `amd3dvcacheSvc` running); Series X profile, 1440p SDR, DLSS Quality, Frame Generation OFF, RT default (`VICTORY_AMBIENT`/`VICTORY_BVH_MISS`). - **Strict interleaved ABABAB** (3× `origin/main` `d4b5d51` vs 3× `pr/cores-vcache-list-priority` `28793b8`, identical release builds `RUSTFLAGS="-C target-cpu=znver5"`, 150 s prologue cutscene runs covering light cutscenes `100..1500`, mid cutscenes `1500..3000`, and heavy Bink cutscene `3000..4000`, 0 D3D12 errors, `left_in_middle = 0.00`, `title_waited = 0.00 ms` in all 6 runs): | Run | Median ms (FPS) | p95 ms | DLSS frames (150 s) | Prep ms | `heaps_end` | `under` | `ref` | `plan` | `100..1.5k` | `1.5k..3k` | `3k..4k` | |---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| | `A1 CTRL` | 28.90 (34.6) | 35.90 | 3,705 | 27.85 | 1.00 | 2.50 | 8.10 | 2.45 | 40.0 | 33.1 | 32.3 | | `A2 CTRL` | 27.40 (36.5) | 34.60 | 3,924 | 26.70 | 0.90 | 2.50 | 7.40 | 2.60 | 41.3 | 37.2 | 32.4 | | `A3 CTRL` | 28.20 (35.5) | 34.20 | 3,855 | 26.90 | 1.00 | 2.50 | 7.60 | 2.50 | 38.8 | 35.8 | 31.9 | | **CTRL mean** | **28.17 (35.5)** | **34.90** | **3,828** | **27.15** | **0.97** | **2.50** | **7.70** | **2.52** | **40.1** | **35.4** | **32.2** | | `B1 FIX` | 26.10 (38.3) | 33.00 | 4,047 | 24.70 | 0.40 | 2.20 | 7.10 | 2.40 | 40.5 | 39.6 | 33.9 | | `B2 FIX` | 26.20 (38.2) | 33.85 | 3,975 | 25.00 | 0.40 | 2.20 | 7.30 | 2.20 | 41.9 | 38.5 | 32.7 | | `B3 FIX` | 27.10 (36.9) | 33.90 | 3,955 | 25.90 | 0.40 | 2.30 | 7.40 | 2.30 | 41.8 | 37.5 | 33.4 | | **FIX mean** | **26.47 (37.8)** | **33.58** | **3,992** | **25.20** | **0.40** | **2.23** | **7.27** | **2.30** | **41.4** | **38.5** | **33.3** | - Before (`d4b5d51`): mean **28.17 ms (35.5 fps)**, p95 **34.90 ms**, Prep **27.15 ms**, `heaps_end` **0.97 ms**, `under` **2.50 ms**, `texture::ahead` latency **0.7–1.2 ms** (**28,154–45,931** turned down), **3,828** DLSS frames in 150 s. - After (`28793b8`): mean **26.47 ms (37.8 fps, +2.3 fps / +6.5%)**, p95 **33.58 ms (-1.32 ms)**, Prep **25.20 ms (-1.95 ms)**, `heaps_end` **0.40 ms (-2.4×)**, `under` **2.23 ms (-10.8%)**, `texture::ahead` latency **0.2–0.3 ms** (**11,074–11,977** turned down, -70%), **3,992** DLSS frames (+164) — zero overlap between CTRL and FIX across all metrics. - Note: moving `victory-list-*` itself off CCD0 onto CCD1 was also tested (`150 s`), and while it improved the heaviest Bink window (`27.7 → 31.2 fps`), it added `+0.5–0.9 ms` cross-CCD cache traffic on `plan_card`; keeping `victory-list-*` on CCD0 at `BELOW_NORMAL` avoids the cross-CCD penalty while eliminating helper/title contention. - For shader changes, the wave sizes tested (32 and/or 64 lanes): N/A (no shader changes). - `cargo test` passed for the crates it touches: yes (`victory-gpu`: 551 passed, 0 failed — 514 non-watch + 37 `watch::tests` serial; `clippy` + `--features diagnostics` check clean with 0 new warnings). ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #1093, #1662 (addresses CCD0 contention on dual-CCD V-Cache CPUs without disabling V-Cache placement; preserves existing non-placed behaviour if #1662 makes placement opt-in).
On dual-CCD V-Cache CPUs (9950X3D, #1093 / #1662), confining the process to
the 7 shared cores of CCD0 leaves the 8 list translators (victory-list-*,
~2.86 cores CPU) running at ABOVE_NORMAL via VICTORY_HELPER_PRIORITY=1 beside
the submit-blocking helpers (victory-heap-sync, victory-wide, victory-under,
victory-records, victory-views) and ahead of normal-priority title/cutscene
threads and uploads ahead workers.

On a placed V-Cache CCD:
- keep_list_worker keeps victory-list-* inheriting CCD0's CPU sets (avoiding
  cross-CCD HostList traffic on plan_card) while dropping their priority to
  BELOW_NORMAL (overridable via VICTORY_LIST_PRIORITY=-2..=2). When not
  placed (non-X3D, single-CCD, Intel hybrid, VICTORY_CACHE_CORES=0), the
  existing VICTORY_HELPER_PRIORITY behaviour is preserved unchanged.
- uploads ahead, victory-picked, and victory-ahead call
  keep_off_the_frames_cores so they use the idle frequency CCD (CCD1).

Strict interleaved ABABAB (3x main d4b5d51 vs 3x this commit, 150 s each,
Ryzen 9 9950X3D + RTX 5090, 1440p DLSS Quality, FG OFF):
- Median: 28.17 -> 26.47 ms (35.5 -> 37.8 fps, +2.3 fps / +6.5%, zero overlap)
- p95: 34.90 -> 33.58 ms (-1.32 ms, zero overlap)
- Prep: 27.15 -> 25.20 ms; heaps_end: 0.97 -> 0.40 ms (-2.4x, zero overlap);
  under: 2.50 -> 2.23 ms; refreshes: 7.70 -> 7.27 ms; plan_card: 2.52 -> 2.30 ms
- texture::ahead: latency 0.7-1.2 -> 0.2-0.3 ms, turned down 28k-46k -> 11k-12k
- DLSS frames (150 s): 3,828 -> 3,992 (+164, zero overlap)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 00:50:55 +00:00
github manually merged commit 0dc61431a6 into main 2026-11-29 08:21:17 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1857
No description provided.