Repository navigation
cores: place dual-CCD V-Cache CPUs on CCD0 and isolate victory-submit on a dedicated core - #1093
Conversation
… on a dedicated core On 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 cache than the other): - Place the process default CPU sets on the larger-cache half (VICTORY_CACHE_CORES=0 disables) and move background pipeline makers, DirectStorage workers, and D3D Background Thread shader compiles to the other half. - Carve one physical V-Cache core (removing both SMT siblings from the process default CPU sets) and pin victory-submit to its primary logical processor at THREAD_PRIORITY_HIGHEST (VICTORY_SUBMIT_CORE=1|0|ccd1, VICTORY_SUBMIT_PRIORITY=-2..2).
|
Follow-up measurements on AMD Ryzen 9 9950X3D + RTX 5090 (1440p SDR, DLSS Quality, Frame Gen OFF) confirming clean mergeability onto latest All runs below use identical 90 s warm-cache intro sequences (
Key takeaways from extended testing:
|
|
The same CPU as yours (9950X3D), with an RTX 5080. Measured on a scripted run, RT off,
A 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. |
|
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:
With 32 processors, the log shows the process on Caveat: the build changed at the same time (an older build based on VIctory-NVIDIA (Written with Claude; numbers are from this PC's logs.) |
|
Following up on my earlier numbers, now on
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. |
On a 9950X3D (the CPU trustno1-coder#1093 was written for) with an RTX 5080, main at 923e38c, RT off, the prologue's cutscenes then a minute on Jason's boat, alternating runs: placed (the default until now) median 27.9 / 28.8 / 24.9 fps, cutscenes 36.2 / 40.2 / 34.9, boat 43.2 / 43.2 / 41.1; not placed median 38.8 / 37.9, cutscenes 53.1 / 54.0, boat 39.3 / 39.0. The steady boat gains about 9 %, the run as a whole loses 28 % of its median. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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)