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

Open
BaRian29 wants to merge 1 commit from upstream-pr/3584 into main
BaRian29 commented 2026-11-30 01:23:51 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by BaRian29 on 2026-11-30T01:23:51Z.


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.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5557318298 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3584). Originally posted by [BaRian29](https://github.com/BaRian29) on 2026-11-30T01:23:51Z. --- # 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.
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/3584:upstream-pr/3584'
git switch 'upstream-pr/3584'

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/3584'
git switch 'upstream-pr/3584'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3584'
git switch 'upstream-pr/3584'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3584'
git switch 'main'
git merge --squash 'upstream-pr/3584'
git switch 'main'
git merge --ff-only 'upstream-pr/3584'
git switch 'main'
git merge 'upstream-pr/3584'
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!3584
No description provided.