run.sh: lower default KEEP_FREE on 16 GiB hosts and warn on low GTT #226
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem!226
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-226"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCKeeping 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