Host memory pressure: the free RAM lines can be moved #3584

Open
github-bot wants to merge 1 commit from github-bot/gh-3584 into main AGit
Owner

@⁠BaRian29 on GitHub · 2026-11-30 01:23 UTC · original
BaRian29:pr/host-pressure-lines → main · +73 −10 · 1 files · 1 commits · open

Host memory pressure: the free RAM lines can be moved

Branch: BaRian29:pr/host-pressure-lines (one commit on main 41adb551)
Open: https://github.com/trustno1-coder/VIctory-NVIDIA/compare/main...BaRian29:VIctory-NVIDIA:pr/host-pressure-lines

Summary

VICTORY_HOST_PRESSURE_MB and VICTORY_HOST_PRESSURE_CLEAR_MB move the free RAM at which host memory pressure begins and ends. The defaults are unchanged: 3 and 5 GiB.

A 32 GB PC stayed in pressure for a whole Series S run with 50 GB still left to commit, so texture prefetch was held back the whole time. That PC now runs with VICTORY_HOST_PRESSURE_MB=1536 and VICTORY_HOST_PRESSURE_CLEAR_MB=2560. The commit lines are not moved.

The lines are read once (physical_lines, OnceLock). A clear line below the enter line is raised to it, so pressure cannot flap. next_pressure(was, physical, commit, lines) holds the rule and has a test. Also documents the one unsafe block of memory_status.

Testing

  • Clippy (both gates): no new warning against main (same 34 / 35 warnings; main fails -D warnings in victory-shader and victory-loader).
  • cargo test -p victory-gpu --lib -- --test-threads=1: 922 passed, with the new pressure-lines test. The one failure, shader_cache::tests::every_switch_of_the_translator_is_in_the_key, is also on main.
  • Every play session of two days on an i5-14600KF / RTX 4070 Ti SUPER / 32 GB PC ran with the two lines above.
**@⁠BaRian29** on GitHub · 2026-11-30 01:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3584) `BaRian29:pr/host-pressure-lines` → `main` · +73 −10 · 1 files · 1 commits · open # Host memory pressure: the free RAM lines can be moved **Branch:** `BaRian29:pr/host-pressure-lines` (one commit on `main` 41adb551) **Open:** https://github.com/trustno1-coder/VIctory-NVIDIA/compare/main...BaRian29:VIctory-NVIDIA:pr/host-pressure-lines ## Summary `VICTORY_HOST_PRESSURE_MB` and `VICTORY_HOST_PRESSURE_CLEAR_MB` move the free RAM at which host memory pressure begins and ends. The defaults are unchanged: 3 and 5 GiB. A 32 GB PC stayed in pressure for a whole Series S run with 50 GB still left to commit, so texture prefetch was held back the whole time. That PC now runs with `VICTORY_HOST_PRESSURE_MB=1536` and `VICTORY_HOST_PRESSURE_CLEAR_MB=2560`. The commit lines are not moved. The lines are read once (`physical_lines`, `OnceLock`). A clear line below the enter line is raised to it, so pressure cannot flap. `next_pressure(was, physical, commit, lines)` holds the rule and has a test. Also documents the one `unsafe` block of `memory_status`. ## Testing - Clippy (both gates): no new warning against `main` (same 34 / 35 warnings; `main` fails `-D warnings` in `victory-shader` and `victory-loader`). - `cargo test -p victory-gpu --lib -- --test-threads=1`: 922 passed, with the new pressure-lines test. The one failure, `shader_cache::tests::every_switch_of_the_translator_is_in_the_key`, is also on `main`. - Every play session of two days on an i5-14600KF / RTX 4070 Ti SUPER / 32 GB PC ran with the two lines above.
VICTORY_HOST_PRESSURE_MB and VICTORY_HOST_PRESSURE_CLEAR_MB move the free
RAM at which pressure begins and ends (3 and 5 GiB by default, unchanged).
A 32 GB PC stayed in pressure for a whole Series S run with 50 GB left to
commit, so texture prefetch was held back throughout. The commit lines are
not moved. Also documents the one unsafe block of memory_status.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 01:25:59 +00:00
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 origin '+refs/pull/3584/head:github-bot/gh-3584'
git switch 'github-bot/gh-3584'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3584'
git switch 'github-bot/gh-3584'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3584'
git switch 'github-bot/gh-3584'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3584'
git switch 'main'
git merge --squash 'github-bot/gh-3584'
git switch 'main'
git merge --ff-only 'github-bot/gh-3584'
git switch 'main'
git merge 'github-bot/gh-3584'
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!3584
No description provided.