perf(cores): avoid pinning shared workers on hybrid CPUs #3416
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!3416
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3416"
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?
@wrq2007 on GitHub · 2026-11-29 22:59 UTC · original
wrq2007:perf/hybrid-helper-affinity-stage1→main· +5 −5 · 1 files · 1 commits · merged 2026-11-30 14:12 UTCSummary
VICTORY_FAST_CORESstage from2to1.VICTORY_FAST_CORES=2or3retains the previous behaviour. Homogeneous CPUs are unchanged because no faster subset exists.Validation
cargo test --release --locked -p victory-gpu cores::tests: 3 passed, 2 ignored.A separate
.03build with the new default and no environment override measured 7.80 FPS, 108.93 ms p50 and 259.65 ms p95.Moving-route follow-up
Short moving-route runs were not stable enough for adoption: default measured 6.53 and 8.39 FPS; stage 1 measured 5.12 FPS in one valid run and OOM-exited before gameplay in the repeat. Draw and texture workloads also differed. This PR therefore remains a draft pending an aligned moving-route comparison.
No run had a device removal. OOM counts varied from 4 to 25 on both settings, so this PR does not claim an OOM improvement.
CI note
The current Clippy job fails on the pre-existing
victory-loader::crash::unwind_copydead-code warning, unrelated to thiscores.rschange. The focused cores tests and staged policy check pass.This is a CPU scheduling optimisation, not a claim of stable 15 FPS.
@KampeLoL on GitHub · 2026-11-29 23:57 UTC · original
Data point from an Intel Arrow Lake hybrid CPU without Hyper-Threading (Core Ultra 9 275HX: 8 P-cores without SMT + 16 E-cores = 24 logical CPUs) + RTX 5090 Laptop (24 GB, driver 621.14.0), Windows 11 build 26300:
On
275HX,available_parallelism()is24, whilefast_of(&cpu_sets())has only 8 entries (fast=8 of=24), not 16 as on HT-enabled P-core chips like the i9-14900K. BecauseVICTORY_FAST_CORESdefaults to2(keep_helper_on_fast_cores),victory-wide(which scales to8threads on a 24-thread CPU) andvictory-land(3 workers by default, or 7 withVICTORY_LAND_THREADS=8) are all pinned onto the same 8 P-core threads alongside the stage-1 threads and the title's own threads, while all 16 E-cores sit outside the fast set.Verbatim
victory_gpu::coreslines from a 5h 24mv2026.11.28.03play log (Series S,VICTORY_LAND_THREADS=8, samecores.rsstage-2 default as currentmain):That is 20 threads (16 even with default
VICTORY_LAND_THREADS) contending for 8 non-SMT P-cores. SupportingVICTORY_FAST_CORES=1as the default sovictory-wide/victory-landcan spill onto the 16 E-cores makes particular sense for Arrow Lake / no-SMT hybrid CPUs.@wrq2007 on GitHub · 2026-11-30 01:04 UTC · original · edited 2026-11-30 04:19 UTC
Thanks for the 275HX log — it matches the failure mode this PR targets:
fast=8 of=24, with stage 2 pinningvictory-wide/victory-landonto the same 8 P-cores while the 16 E-cores stay outside the fast set. The(VICTORY_FAST_CORES=0: not)suffix is static text in that log line, not the active value.Correction:
victory-asideuses the stage-1 path, so it remains pinned under both stage 1 and stage 2. The default change only unpins thevictory-wideandvictory-landhelper threads. Submit, late-wait, heap-sync, relay and aside stay on the fast set; send, late-fills and ask also stay there when enabled. With yourVICTORY_LAND_THREADS=8log, that means 20 pinned threads under stage 2 become 5 under stage 1: 8victory-wideand 7victory-landhelpers move back to the Windows scheduler. ExplicitVICTORY_FAST_CORES=2or3keeps the old behaviour; CPUs without a faster subset are unchanged.The static A/B is repeatable: mean p50 improved from 126.22 ms to 97.05 ms and p95 from 342.24 ms to 252.91 ms across two paired rounds in opposite order. A separate
.03no-env confirmation measured 7.80 FPS / 108.93 ms p50 / 259.65 ms p95. The PR remains Draft because our moving-route follow-up was not decision-grade: one stage-1 run regressed and the repeat hit physical-memory exhaustion before a stable window.Since you have the exact 275HX topology, a paired moving A/B on your machine would be the strongest next data point: same build, save, cache and world-relative route;
VICTORY_FAST_CORES=2vs=1; reversed order; measurement aligned tothe world: the first frame of 500 draws or moreplus a fixed window. Please keepVICTORY_LAND_THREADSidentical between the two settings, and include valid-window and real-present counts, FPS, p50/p95, draws/frame, OOM count and device-removal status. If stage 1 holds on moving as well, we can promote the PR out of Draft.github-bot referenced this pull request2026-11-30 01:14:29 +00:00
@KampeLoL on GitHub · 2026-11-30 17:20 UTC · original
Thanks for the follow-up @wrq2007, and glad to see #3416 (
67fa153f—VICTORY_FAST_CORES=1default) landed inv2026.11.30.02!I just installed clean
v2026.11.30.02on our Core Ultra 9 275HX (fast=8 of=24: 8 non-SMT P-cores + 16 E-cores) + RTX 5090 Laptop 24 GB (Windows 11) rig. If a post-merge moving A/B on 275HX is still useful for your notes or follow-up tuning, let me know — I'd be happy to run the pairedVICTORY_FAST_CORES=2vs=1test in reversed order (identicalVICTORY_LAND_THREADS, aligned tothe world: the first frame of 500 draws or more) and report FPS, p50/p95, draws/frame, real presents, and OOM/device-removal status. Feel free to mention which console profile / FG flags you'd prefer checked.