run.sh: lower default KEEP_FREE on 16 GiB hosts and warn on low GTT #226

Manually merged
github merged 1 commit from github-bot/gh-226 into main 2026-12-02 19:57:21 +00:00 AGit
Owner

@⁠deyvideguilherme on GitHub · 2026-12-02 19:13 UTC · original
deyvideguilherme:fix/run-16gb-ram → main · +13 −2 · 1 files · 1 commits · merged 2026-12-02 19:54 UTC

Keeping 8 GiB free by default leaves a 2-3 GiB MemoryMax on 16 GiB RAM machines, causing immediate heavy swapping in play and failing shaders/warm when under 10 GiB is available. Default KEEP_FREE to 2048 MiB when MemTotal is 18 GiB or less unless KEEP_FREE is set explicitly; 32 GiB+ hosts keep 8192 MiB unchanged.

Also warn during play when the AMD GPU's GTT total is below 10 GiB (Linux defaults to 50% of RAM, ~7953 MiB on 16 GiB hosts), which hits 0x887A0005 submission memory exhaustion without amdgpu.gttsize.

Runtime-tested on CachyOS Linux (Ryzen 7 5700X, RX 9060 XT 16 GB, 16 GB RAM): MemoryMax with KEEP_FREE unset goes from 2939 MiB to 9428 MiB.

Co-Authored-By: Antigravity Neon

**@⁠deyvideguilherme** on GitHub · 2026-12-02 19:13 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/226) `deyvideguilherme:fix/run-16gb-ram` → `main` · +13 −2 · 1 files · 1 commits · merged 2026-12-02 19:54 UTC Keeping 8 GiB free by default leaves a 2-3 GiB MemoryMax on 16 GiB RAM machines, causing immediate heavy swapping in play and failing shaders/warm when under 10 GiB is available. Default KEEP_FREE to 2048 MiB when MemTotal is 18 GiB or less unless KEEP_FREE is set explicitly; 32 GiB+ hosts keep 8192 MiB unchanged. Also warn during play when the AMD GPU's GTT total is below 10 GiB (Linux defaults to 50% of RAM, ~7953 MiB on 16 GiB hosts), which hits 0x887A0005 submission memory exhaustion without amdgpu.gttsize. Runtime-tested on CachyOS Linux (Ryzen 7 5700X, RX 9060 XT 16 GB, 16 GB RAM): MemoryMax with KEEP_FREE unset goes from 2939 MiB to 9428 MiB. Co-Authored-By: Antigravity Neon
Keeping 8 GiB free by default leaves a 2-3 GiB MemoryMax on 16 GiB RAM machines, causing immediate heavy swapping in play and failing shaders/warm when under 10 GiB is available. Default KEEP_FREE to 2048 MiB when MemTotal is 18 GiB or less unless KEEP_FREE is set explicitly; 32 GiB+ hosts keep 8192 MiB unchanged.

Also warn during play when the AMD GPU's GTT total is below 10 GiB (Linux defaults to 50% of RAM, ~7953 MiB on 16 GiB hosts), which hits 0x887A0005 submission memory exhaustion without amdgpu.gttsize.

Runtime-tested on CachyOS Linux (Ryzen 7 5700X, RX 9060 XT 16 GB, 16 GB RAM): MemoryMax with KEEP_FREE unset goes from 2939 MiB to 9428 MiB.

Co-Authored-By: Antigravity <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 19:28:18 +00:00
github manually merged commit a5130776d4 into main 2026-12-02 19:57:21 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.