Repository navigation
Conversation
…ers off CCD0 On dual-CCD V-Cache CPUs (9950X3D, trustno1-coder#1093 / trustno1-coder#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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):
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 forvictory-submit),VICTORY_HELPER_PRIORITY=1previously left the thin list translators (victory-list-*, ~2.86 cores CPU) atABOVE_NORMALpriority — 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 anduploads ahead.keep_list_workerkeepsvictory-list-*inheriting CCD0's CPU sets (avoiding the cross-CCDplan_cardpenalty measured when moving list translators to CCD1) while dropping their priority toBELOW_NORMAL(-1, overridable viaVICTORY_LIST_PRIORITY=-2..=2). When not placed (PLACED == false: single-CCD X3D, Intel hybrid, non-X3D,VICTORY_CACHE_CORES=0), existingVICTORY_HELPER_PRIORITYbehaviour is preserved unchanged.crates/victory-gpu/src/texture/ahead.rs,picked.rs,ahead.rs):uploads ahead,victory-picked, andvictory-aheadcallkeep_off_the_frames_coresso they run on the otherwise ~95% idle frequency CCD (CCD1), matchingvictory-pipelinesanddstorage.crates/victory-gpu/src/cores.rs): addslist_worker_priority_drops_below_normal_only_when_placed_or_overridden.How it was tested
amd3dvcacheSvcrunning); Series X profile, 1440p SDR, DLSS Quality, Frame Generation OFF, RT default (VICTORY_AMBIENT/VICTORY_BVH_MISS).origin/maind4b5d51vs 3×pr/cores-vcache-list-priority28793b8, identical release buildsRUSTFLAGS="-C target-cpu=znver5", 150 s prologue cutscene runs covering light cutscenes100..1500, mid cutscenes1500..3000, and heavy Bink cutscene3000..4000, 0 D3D12 errors,left_in_middle = 0.00,title_waited = 0.00 msin all 6 runs):heaps_endunderrefplan100..1.5k1.5k..3k3k..4kA1 CTRLA2 CTRLA3 CTRLB1 FIXB2 FIXB3 FIXd4b5d51): mean 28.17 ms (35.5 fps), p95 34.90 ms, Prep 27.15 ms,heaps_end0.97 ms,under2.50 ms,texture::aheadlatency 0.7–1.2 ms (28,154–45,931 turned down), 3,828 DLSS frames in 150 s.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_end0.40 ms (-2.4×),under2.23 ms (-10.8%),texture::aheadlatency 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.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 mscross-CCD cache traffic onplan_card; keepingvictory-list-*on CCD0 atBELOW_NORMALavoids the cross-CCD penalty while eliminating helper/title contention.cargo testpassed for the crates it touches: yes (victory-gpu: 551 passed, 0 failed — 514 non-watch + 37watch::testsserial;clippy+--features diagnosticscheck clean with 0 new warnings).Checked for overlap