run: make the per-session swap limit configurable #620

Open
github-bot wants to merge 5 commits from github-bot/gh-620 into main AGit
Owner

@⁠tommiehansen on GitHub · 2026-12-05 20:08 UTC · original
tommiehansen:fix/configurable-swap-limit-451 → main · +36 −2 · 4 files · 5 commits · open

Addresses the configurable MemorySwapMax request in #451, not the underlying APU GPU-memory pressure.

  • Add SWAP_MAX_MB in MiB to run.conf and CLI overrides, default 2048 (same as the existing 2G). Zero disables swap for the scope.
  • Validate the input before launching, and use the same validated value for the Proton and system Wine scopes.
  • Leave MemoryMax, the GPU guard, and all residency policies unchanged.
  • Document the setting; increasing it does not add RAM or GPU memory and can make the game slower.

Example: ./run.sh play SWAP_MAX_MB=6144.

Verification

CI passed: shell syntax, default/zero/custom/invalid values, both launcher paths, and systemd unit verification. No gameplay or APU fix is claimed.

AI-assisted: yes.

**@⁠tommiehansen** on GitHub · 2026-12-05 20:08 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/620) `tommiehansen:fix/configurable-swap-limit-451` → `main` · +36 −2 · 4 files · 5 commits · open Addresses the configurable MemorySwapMax request in #451, not the underlying APU GPU-memory pressure. - Add SWAP_MAX_MB in MiB to run.conf and CLI overrides, default 2048 (same as the existing 2G). Zero disables swap for the scope. - Validate the input before launching, and use the same validated value for the Proton and system Wine scopes. - Leave MemoryMax, the GPU guard, and all residency policies unchanged. - Document the setting; increasing it does not add RAM or GPU memory and can make the game slower. Example: `./run.sh play SWAP_MAX_MB=6144`. ### Verification [CI](https://github.com/tommiehansen/VIctory-xmem/actions/runs/47563513273) passed: shell syntax, default/zero/custom/invalid values, both launcher paths, and systemd unit verification. No gameplay or APU fix is claimed. AI-assisted: yes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 20:11:56 +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/620/head:github-bot/gh-620'
git switch 'github-bot/gh-620'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-620'
git switch 'github-bot/gh-620'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-620'
git switch 'github-bot/gh-620'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-620'
git switch 'main'
git merge --squash 'github-bot/gh-620'
git switch 'main'
git merge --ff-only 'github-bot/gh-620'
git switch 'main'
git merge 'github-bot/gh-620'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.