cores: DARNER_SUBMIT_CORE_ALONE also gives the submitting thread a whole core on a CPU with V-Cache on one die #607
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!607
Loading…
Reference in a new issue
No description provided.
Delete branch "HQasper/Darner:pr/submit-core-split"
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?
Contributor role (optional)
What it changes
DARNER_SUBMIT_CORE_ALONE=1keeps a whole core for the thread that prepares and sends submissions only on processors without a half with a larger L3. On a 9950X3D (V-Cache on one die), with the process not put on that die (DARNER_CACHE_CORESoff, the default), the switch did nothing. There the prison cell's frames take turns at about 17.7 and 25.6 ms; the slow ones come while the title's next frame runs beside the submitting thread.With the switch on such a processor, the last core of the die with the larger cache is kept for the submitting thread alone, and the process runs on all the other cores of both dies. With
DARNER_CACHE_CORESon, and on every other processor, nothing changes. The switch stays off by default; the README row has the measurement.How it was tested
Tested revision: 4ff1782 (the same code as
843eb71, which adds the measurement to the README row and to the commit message).Commands and results: the game A/B below. B's log says which core it kept ("core=14 set=270"); A's log has no such line (main does nothing with the switch on this processor).
Changes a default: no (the switch is off by default).
A/B result: the prison cell bench, 60-210 s after the world's first frame, with
DARNER_SUBMIT_CORE_ALONE=1,DARNER_RANGE_LOCK=1,DARNER_ALIAS_SHARE=1andDARNER_VIEW_THREADS=8in both. A is main atc8258f9, where the switch does nothing on this processor; B is this branch. Two runs each, interleaved with a third build in one series (A, other, B, A, other, B). The first run of each build came right after its shader preload.The longest gaps of all runs fall where the world streams in, about 60-70 s after its first frame. The 160.6 ms one (B's first run) was there too. On our earlier branch the same change gave 10.4-11.0 against 11.7-12.2 ms preparing in five runs with it and four without.
Gates run on 4ff1782:
cargo clippy --workspace --all-targets --locked -- -D warnings: passed.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: passed.cargo test --workspace --locked --no-fail-fast: all passed except one darner-gpu library test,watch::watch_pipe_epoch_tests::ask_once_delta_reask_direct_carves_refreshes_and_updates_page_epochs. It passes alone. A secondcargo test -p darner-gpu --libfailed another one,watch::tests::an_asking_begun_first_is_made_and_more_is_asked_for, which also passes alone. On mainc8258f9under the same load (other builds running),cargo test -p darner-gpu --libfailed 1-2 tests in each of 3 runs, the first of these among them. This change touches onlycores.rsand the README.Gameplay: RTX 5090, Series X profile, 1440p, DLSS Quality, frame generation off, hardware ray tracing.
Shader wave sizes tested: not relevant.
Hardware dependence: only processors with a larger L3 on one die (Ryzen X3D with two dies); others are unchanged. Measured on a 9950X3D only.
Coverage gaps: one PC; two runs per build;
DARNER_CACHE_CORES=1together with the switch not run (unchanged by the code).Checklist
main.docs/asset-policy.md.Checked for overlap
DARNER_CCD_SPLITplaces the title's threads and ours on the two dies of a processor with like dies; it says it is not combined withDARNER_SUBMIT_CORE_ALONE), #322 (open; the prelude worker's priority, also incores.rs).[pr-performance] cores: DARNER_SUBMIT_CORE_ALONE also gives the submitting thread a whole core on a CPU with V-Cache on one dieto cores: DARNER_SUBMIT_CORE_ALONE also gives the submitting thread a whole core on a CPU with V-Cache on one dieTest needed — commit
843eb711; what to check:DARNER_SUBMIT_CORE_ALONE=1keeps a whole core for the thread that prepares and sends submissions only on processors without a half with a larger L3. On a 9950X3D (V-Cache on one die), with the process not put on that die (DARNER_CACHE_CORESoff, the default), the switch did nothing. There the prison cell's frames take turns at about 17.7 and 25.6 ms; the slow ones come while the title's next frame runs beside the submitting thread.With the switch on such a processor, the last core of the die with the larger cache is kept for the submitting thread alone, and the process runs on all the other cores of both dies. With
DARNER_CACHE_CORESon, and on every other processor, nothing changes. The switch stays off by default; the README row has the measurement.Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.
Reply
testingto take this run; it's free again after 24 h with no results.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.