You are not logged in.
Pages: 1
hi,
what is the best swappiness value I can set to play? I have 8GB of physical RAM but when I have to play some games (for example on the Switch emulator) I have to add an 8GB swapfile (on SSD) otherwise they don't work.
it is currently set to 15, but I noticed that sometimes when the physical ram runs out the game has some slowdown
Last edited by quellen (2024-01-07 13:15:37)
sorry for my bad english
Offline
The swappiness value does not matter too much. If you cannot buy more RAM, you should increase the size of the Swap file/partition.
Try to boot with "zswap.max_pool_percent=40" parameter and 16GB Swap partition. That should help.
Excuse my poor English.
Offline
swappiness only controls whether you're dropping file caches or swap out anonymous pages (on-the-fly RAM that cannot be re-read from anywhere else)
lowering the swappiness would only help if you had plenty of inactive file caches in RAM, not if you're running OOM
If you're short on RAM, kill fat processes you don't need (browsers, swap your fat DE for a lean WM, …) or get more RAM - zswap will only help w/ compressable memory, not sure how much of that comprises your game.
Offline
Pages: 1