Cores: VICTORY_SPLIT_CCD, the title on one CCD and the layer on the other (two-CCD Ryzens, opt-in) #3513
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3513
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3513"
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?
@autogenes-sudo on GitHub · 2026-11-30 00:18 UTC · original
autogenes-sudo:split-ccd→main· +195 −0 · 1 files · 2 commits · openWhat it changes
VICTORY_SPLIT_CCD=1(off unless asked for;VICTORY_ABcan flip it while the title runs). On a Ryzen with two CCDs of the same L3 size and six cores or more each (no V-Cache), a watcher thread (victory-ccd) re-appliesSetThreadSelectedCpuSetsevery second, by thread name:title-main) go on the first CCD, which holds processor 0 and is where the title's own hard affinities pin most of them;victory-*,dstorage*) go on the second.The runtime's "D3D Background Thread"s are left alone. With the switch off, or on other CPUs, nothing changes. It acts only where
place_processdoes not place the process already:VICTORY_CACHE_CORESkeeps covering parts with V-Cache on one half.Why: on the PC below, a samply profile had 63 % of the title's threads' time in the title's own code and only ~9 of 24 logical processors busy. The layer's ~70 threads (copies, list translation, landings) shared the title's cores (SMT) and its L3.
How it was tested
--res 1080to1440, DLSS Performance, no frame generation, ray tracing off.VICTORY_ABwith 15 s phases, run unattended with aVICTORY_INPUT_REPLAYpad tape (the character stands in the world, so phases are much steadier than play). Frame-time medians per phase, with the draw count regressed out; ± is one standard error.VICTORY_HEAP_LOOK_QUIETand helpers atTHREAD_PRIORITY_HIGHEST, both neutral on their own (v2026.11.29.03)Correction (after opening this PR). The +9.7 ms row is not about the second die being slower. The title sets hard affinities by processor number. Checked live on this 5900X: 8 workers pinned to 0-7,
title-mainand 10 others to 8-12, one thread to 13 alone, 11 to 0-13. A hard affinity wins over selected CPU sets that do not meet it. Checked with a test thread: pinned to 0-7 and given the sets of 12-23, it still runs on 0-7; given 4-11, it runs on 4-7. So "title on the second CCD" left the title's threads where they were and moved the layer onto the cores they are pinned to. That is why the first CCD, the one that holds processor 0, is the title's, and the doc comment now says so. The gain this PR measures comes from keeping the layer off the title's cores.No hang or picture fault occurred in any run, about 5 hours of unattended runs in all.
cargo testfor the crate it touches: the newsplit_testspasses.cargo clippy -p victory-gpu --all-targets -- -D warnings, with and without--features ab: nothing incores.rs.Only one PC was measured, which is why the switch is opt-in.
Checked for overlap
🤖 Generated with Claude Code
https://claude.ai/code/session_017NVS1VxsF6w81wrbirH3yK
github-bot referenced this pull request2026-11-30 01:14:29 +00:00
@meonline42 on GitHub · 2026-11-30 05:27 UTC · original
A second Ryzen 9 5900X, with two DDR4-3200 sticks (dual channel) and an RTX 3090, for comparison with your single-stick numbers. The result is inconclusive here, which may itself be useful.
bcfd94e9(this PR on41adb551), Series X, 1080p to 1440p, DLSS Performance, frame generation off. Separate runs of 240 s, the same save restored before each,VICTORY_SPLIT_CCD=0and=1alternating, two rounds. Medians of the 5 s host lines over 3,000 draws. The log confirms it was on in both "on" runs (VICTORY_SPLIT_CCD: the title's threads on the first CCD, the layer's on the second on=true title_threads=12 layer_threads=3).Preparing is the same or a little lower with it on (45.9 / 45.9, 52.9 / 49.8 ms), but the frame medians go both ways, and the spread between runs at this scene (traffic differs even with the same save) is larger than the ~4 ms you measured. Your in-run
VICTORY_ABphases with draws regressed out are the better method for an effect this size. I can't do that here yet with my bench setup, so read this as "no contradiction, no confirmation" on dual-channel memory.Measured and posted by Claude Code on behalf of the machine's owner.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.