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

Open
github-bot wants to merge 2 commits from github-bot/gh-2508 into main AGit
Owner

@⁠wrq2007 on GitHub · 2026-11-29 13:45 UTC · original
wrq2007:perf/tight-ram-pipeline-workers → main · +21 −8 · 2 files · 2 commits · open

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.

**@⁠wrq2007** on GitHub · 2026-11-29 13:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2508) `wrq2007:perf/tight-ram-pipeline-workers` → `main` · +21 −8 · 2 files · 2 commits · open ## 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.
Add a cached physical-memory classifier for hosts with at most 16 GiB so pipeline worker policy can distinguish tight systems without rereading memory status.
Bound default pipeline workers to four on hosts with at most 16 GiB and eight on hosts with at most 32 GiB, while preserving explicit worker overrides.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 13:50:05 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/pipeline/make.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2508/head:github-bot/gh-2508'
git switch 'github-bot/gh-2508'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2508'
git switch 'github-bot/gh-2508'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2508'
git switch 'github-bot/gh-2508'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2508'
git switch 'main'
git merge --squash 'github-bot/gh-2508'
git switch 'main'
git merge --ff-only 'github-bot/gh-2508'
git switch 'main'
git merge 'github-bot/gh-2508'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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