perf(pipeline): cap workers on tight-RAM hosts #2508

Open
wrq2007 wants to merge 2 commits from upstream-pr/2508 into main
wrq2007 commented 2026-11-29 13:45:31 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wrq2007 on 2026-11-29T13:45:31Z.


Summary

  • Add a cached classifier for hosts with at most 16 GiB of physical RAM.
  • Bound default pipeline workers to four on tight hosts and eight on hosts with at most 32 GiB.
  • Preserve explicit VICTORY_PIPELINE_WORKERS overrides.
  • Keep the ray-tracing builder and all rendering paths unchanged.

This is a static hard upper bound. It complements #1173's dynamic commit-pressure throttling rather than replacing it.

Test plan

  • cargo check --locked -p victory-gpu
  • cargo test --locked -p victory-gpu --lib -- --test-threads=1 (the known global-state card-steps test was also rerun individually)
  • cargo clippy --locked -p victory-gpu --all-targets
  • cargo xtask policy --staged

No game assets, screenshots, logs, executables, or local paths are included.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5551315195 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2508). Originally posted by [wrq2007](https://github.com/wrq2007) on 2026-11-29T13:45:31Z. --- ## Summary - Add a cached classifier for hosts with at most 16 GiB of physical RAM. - Bound default pipeline workers to four on tight hosts and eight on hosts with at most 32 GiB. - Preserve explicit `VICTORY_PIPELINE_WORKERS` overrides. - Keep the ray-tracing builder and all rendering paths unchanged. This is a static hard upper bound. It complements #1173's dynamic commit-pressure throttling rather than replacing it. ## Test plan - [x] `cargo check --locked -p victory-gpu` - [x] `cargo test --locked -p victory-gpu --lib -- --test-threads=1` (the known global-state card-steps test was also rerun individually) - [x] `cargo clippy --locked -p victory-gpu --all-targets` - [x] `cargo xtask policy --staged` No game assets, screenshots, logs, executables, or local paths are included.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2508:upstream-pr/2508'
git switch 'upstream-pr/2508'

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 'upstream-pr/2508'
git switch 'upstream-pr/2508'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2508'
git switch 'upstream-pr/2508'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2508'
git switch 'main'
git merge --squash 'upstream-pr/2508'
git switch 'main'
git merge --ff-only 'upstream-pr/2508'
git switch 'main'
git merge 'upstream-pr/2508'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
trustno1-coder/VIctory-NVIDIA!2508
No description provided.