[pr-performance] Play: worker-count defaults rise with the CPU instead of capping at 2 to 8 #37

Open
Coder629nx wants to merge 1 commit from Coder629nx/Darner:cpu-parallel into main
First-time contributor
  • Fluxer ID: — already holds the Contributor role on the Darner Fluxer server.

What it changes

Five helper pools the frame waits on — THIN lists, descriptor views and records, landings, merges under the card's writes, buffer copies and compares — defaulted to a quarter, three eighths or a half of the logical processors with caps at 2 to 8, or to fixed counts (4, 6). On a 16-thread CPU that is 4, 6 or 8 workers while the submitting thread waits on them and the card stands idle behind the CPU. The defaults now scale:

  • DARNER_THIN_THREADS: three quarters of the logical processors, 2 to 16 (was half, 2 to 8).
  • DARNER_WIDE_THREADS: three quarters, 2 to 16 (was three eighths, 2 to 8).
  • DARNER_LAND_THREADS: half, 1 to 8 (was a quarter, 1 to 4).
  • DARNER_UNDER_THREADS: half with a floor of 6, 6 to 12 (was fixed 6).
  • DARNER_VIEW_THREADS: a quarter for views (4 to 8), half for records (6 to 12) (was fixed 4 and 6).

A switch set by hand wins in every case, as before. The README rows are updated to the new defaults.

How it was tested

  • Tested revision: the change was developed on codefloe as commit 9eee096 and rebased onto current main here (README conflict with the new DARNER_THIN_* rows resolved by hand; the net diff is unchanged: 4 files, +17/-14).
  • Commands and results: a defaults-only change; the pool sizes are observable in the play log (threads kept ... lines). No bench on real hardware yet.
  • Gameplay: not measured yet.
  • Shader wave sizes tested: not relevant (no shader changes).
  • Coverage gaps: no on-rig measurement; 8-thread CPUs stay at or near the old counts (three quarters of 8 is 6, within the old cap), but the README's warning that too many can crowd an 8-thread CPU still applies and was not re-measured.

Checklist

  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: none found.
- Fluxer ID: — already holds the Contributor role on the Darner Fluxer server. ## What it changes Five helper pools the frame waits on — THIN lists, descriptor views and records, landings, merges under the card's writes, buffer copies and compares — defaulted to a quarter, three eighths or a half of the logical processors with caps at 2 to 8, or to fixed counts (4, 6). On a 16-thread CPU that is 4, 6 or 8 workers while the submitting thread waits on them and the card stands idle behind the CPU. The defaults now scale: - `DARNER_THIN_THREADS`: three quarters of the logical processors, 2 to 16 (was half, 2 to 8). - `DARNER_WIDE_THREADS`: three quarters, 2 to 16 (was three eighths, 2 to 8). - `DARNER_LAND_THREADS`: half, 1 to 8 (was a quarter, 1 to 4). - `DARNER_UNDER_THREADS`: half with a floor of 6, 6 to 12 (was fixed 6). - `DARNER_VIEW_THREADS`: a quarter for views (4 to 8), half for records (6 to 12) (was fixed 4 and 6). A switch set by hand wins in every case, as before. The README rows are updated to the new defaults. ## How it was tested - Tested revision: the change was developed on codefloe as commit 9eee096 and rebased onto current `main` here (README conflict with the new `DARNER_THIN_*` rows resolved by hand; the net diff is unchanged: 4 files, +17/-14). - Commands and results: a defaults-only change; the pool sizes are observable in the play log (`threads kept ...` lines). No bench on real hardware yet. - Gameplay: not measured yet. - Shader wave sizes tested: not relevant (no shader changes). - Coverage gaps: no on-rig measurement; 8-thread CPUs stay at or near the old counts (three quarters of 8 is 6, within the old cap), but the README's warning that too many can crowd an 8-thread CPU still applies and was not re-measured. ## Checklist - [x] This PR contains one change based on `main`. - [x] The diff follows `docs/asset-policy.md`. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: none found.
Five helper pools kept for work the frame waits on (THIN lists, descriptor
views and records, landings, merges under the card's writes, buffer copies
and compares) defaulted to a quarter, three eighths or a half of the logical
processors with caps at 2 to 8, or to fixed counts (4, 6). On a 16-thread
CPU that is 4, 6 or 8 workers while the submitting thread waits on them and
the card stands idle behind the CPU. The defaults now scale: THIN and WIDE
three quarters of the processors (2 to 16), LAND half (1 to 8), UNDER half
with a floor of 6 (6 to 12), VIEWS a quarter (4 to 8) and RECORDS half
(6 to 12). A switch set by hand wins in every case, as before.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'cpu-parallel:Coder629nx-cpu-parallel'
git switch 'Coder629nx-cpu-parallel'

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.

git switch 'main'
git merge --no-ff 'Coder629nx-cpu-parallel'
git switch 'Coder629nx-cpu-parallel'
git rebase 'main'
git switch 'main'
git merge --ff-only 'Coder629nx-cpu-parallel'
git switch 'Coder629nx-cpu-parallel'
git rebase 'main'
git switch 'main'
git merge --no-ff 'Coder629nx-cpu-parallel'
git switch 'main'
git merge --squash 'Coder629nx-cpu-parallel'
git switch 'main'
git merge --ff-only 'Coder629nx-cpu-parallel'
git switch 'main'
git merge 'Coder629nx-cpu-parallel'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!37
No description provided.