cores: place dual-CCD V-Cache CPUs on CCD0 and isolate victory-submit on a dedicated core #1093
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1093"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by Bazovsky on 2026-11-28T13:11:56Z.
What is now true
On asymmetric dual-CCD 3D V-Cache processors (e.g. Ryzen 9 9950X3D / 7950X3D, where all cores share one efficiency class and one L3 complex has ≥ 16 logical processors and a larger last-level cache than the other):
VICTORY_CACHE_CORES(on by default;0disables):place_process()sets the process default CPU sets (SetProcessDefaultCpuSets) to the larger-cache CCD (unless the process was started with an explicit affinity mask), and moves background pipeline compilers (victory-pipelines), DirectStorage workers (dstorage), and D3D runtimeD3D Background Threadshader compiles to the other CCD.VICTORY_SUBMIT_CORE(1by default,0disables,ccd1pins to the frequency CCD): carves one physical V-Cache core (both SMT siblings removed from the process default CPU sets viaCoreIndex) and pins the singlevictory-submitthread to its primary logical processor atTHREAD_PRIORITY_HIGHEST(overridable viaVICTORY_SUBMIT_PRIORITY=-2..2).split()returnsNoneand falls back to existingkeep_on_fast_coresbehavior).Relation to open PRs
Unlike #603 and #730 (which pin selected threads to one die on symmetric dual-CCD Ryzens), this targets asymmetric 3D V-Cache parts specifically: keeping both the title's threads and list translators on the 96 MB V-Cache CCD while removing SMT sibling contention from
victory-submitand offloading background compiles / DirectStorage to the other CCD.Measured on
x86-64-v3fat-LTO build, identical 90 s intro sequence (VICTORY_KEYS=10:Enter,13:Enter), steady 3D seconds in DLSS frames 100..1800 (<80 ms).Directly on
main(63b902f) —MEASUREDvictory-submitrefreshes/stepscard_beforeThinCPU-summain(63b902f)7fe27ae)Component A/B (isolating CCD0 V-Cache vs CCD1 clock) —
MEASUREDOn a branch with
VICTORY_CACHE_CORES=1already active:VICTORY_SUBMIT_CORE=0equivalent baseline):28.80 ms(34.7 fps), p9536.95 msVICTORY_SUBMIT_CORE=1, default):25.90 ms(38.6 fps), p9532.10 ms(−10.1% frame time)VICTORY_SUBMIT_CORE=ccd1):33.00 ms(30.3 fps), p9544.05 ms(confirmsvictory-submitis heavily L3/V-Cache bound)victory-listorvictory-landto CCD1 regressed p95 due to cross-CCD coherence traffic, so both stay on the remaining 7 V-Cache cores.CI / Tests
cargo run --locked -p xtask -- policy:294 files okcargo xwin clippy --locked -p victory-gpu --all-targets(default &--all-features): 0 warnings in touched filescargo xwin clippy --locked -p victory-hle --all-targets(default &--all-features): 0 warnings in touched filesvictory-gpu(454 passed, 0 failed, includingcores::tests::the_cores_under_the_larger_cache_are_told_apart),victory-hle(188 passed, 0 failed)Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Bazovsky on 2026-11-28T18:39:40Z.
Follow-up measurements on AMD Ryzen 9 9950X3D + RTX 5090 (1440p SDR, DLSS Quality, Frame Gen OFF) confirming clean mergeability onto latest
main(9300875) and showing how CCD0 V-Cache placement + dedicatedvictory-submitcore compose with subsequent CPU optimizations (#1094 and downstream scratch/refresh work).All runs below use identical 90 s warm-cache intro sequences (
VICTORY_KEYS=10:Enter,13:Enter), steady 3D seconds in DLSS frames100..1800(<80 ms):Submit thrPrep totalref/stepsThin transCPU-summax DLSS(90 s)main(63b902f,CACHE_CORES=0)CACHE_CORES=1only (no dedicated submit core)7fe27ae) directly onmainP1a)P2d)HostList::scratchL0 (Wave E)Key takeaways from extended testing:
Thin transCPU-sum by ~25–31% (163.7 → 113.4–122.6 ms) by eliminating cross-CCD coherence traffic, and carving one physical V-Cache core forvictory-submitremoves SMT sibling contention on top of that (32.15 → 27.00 msdirectly onmain).victory-submitandHostListscratch buffers resident in the 96 MB 3D V-Cache CCD makes downstream CPU optimizations measurably more effective (zero cross-CCD run-to-run jitter).Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Rafa7046 on 2026-11-28T19:22:22Z.
The same CPU as yours (9950X3D), with an RTX 5080. Measured on a scripted run, RT off,
mainate7d8150plus this PR only. The script plays the prologue cutscenes, then stands one minute on Jason's boat. Reference: four sessions of plainmainthe same afternoon.main(4 sessions, mean)VICTORY_SUBMIT_CORE=0VICTORY_SUBMIT_CORE=ccd1A switch that confines only the runtime's threads and leaves the title's free might keep the boat's gain without the cutscenes' loss. I can measure one if you add it.
Also worth knowing when measuring this: with the game window minimized, the AMD V-Cache driver no longer treats the game as the foreground game. Two of my runs were void because of that.
Measurements prepared with an AI assistant (Claude Code); the runs were played on my machine.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by SkylerizMe on 2026-11-28T21:41:18Z.
For other X3D owners: BIOS settings like MSI's "X3D Gaming Mode" or Gigabyte's "X3D Turbo Mode" leave Windows 8 logical processors (second CCD and SMT off). Then this placement does nothing: it needs a part with the larger cache and 16 or more logical processors, and otherwise logs "no larger cache on a part of 16 logical processors or more: the process is not placed". The same happens with msconfig's "Number of processors" set to 16.
9950X3D + RTX 5080 (driver 621.10), Windows 11, Series S 960x540, DLSS Performance, DLSS frame generation 2x, warm cache, about 5 minutes in the opening:
923e38cwith this placementWith 32 processors, the log shows the process on
0xfffcandvictory-submiton its own core.Caveat: the build changed at the same time (an older build based on VIctory-NVIDIA
f4608f0→923e38c+ #1444 and a few local additions), so not all of that gain is this PR. It does mean that leaving Gaming Mode on loses this placement entirely.(Written with Claude; numbers are from this PC's logs.)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Rafa7046 on 2026-11-28T23:10:39Z.
Following up on my earlier numbers, now on
mainafter the merge (923e38c), with the same machine and script:VICTORY_CACHE_CORES=0, 2 sessions: median 38.8 / 37.9, cutscenes 53.1 / 54.0, boat 39.3 / 39.0.On a 9950X3D the default costs about 28% of the median over the run, against +9% on the steady boat. I opened #1662 to make it opt-in. I'm happy to measure a narrower placement if you have one in mind.
Measurements prepared with an AI assistant (Claude Code); the runs were played on my machine.