SpiralLinux / SpiralLinux-project

SpiralLinux project
https://spirallinux.github.io/
131 stars 5 forks source link

Suggestion: Set swappiness=200 and Zram to 200%. #338

Closed geckolinux closed 7 months ago

geckolinux commented 8 months ago

Discussed in https://github.com/orgs/SpiralLinux/discussions/337

Originally posted by **Ricardox1** October 22, 2023 I'm using SpiralLinux on a computer with 2Gb ram and a fairly slow old sata drive and a Pentium E5700. I have noticed that the new swappiness default is 10, which produces terrible performance on systems with little memory. I don't know who the "genius" was that determined that this should be the default and not 60 as it was before, but my experience with this has been disastrous. I got a noticeable improvement by increasing this swappins setting to 200. The reason for the improvement is very simple. The swap is compressed and leaves more space for the cache, which significantly improves performance. On the other hand, Zram set to 95% is insufficient, and can lead to out of memory on certain occasions on very low memory systems like mine. There is no reason to increase this value a little, at least to 150%, but I set it to 200%
geckolinux commented 7 months ago

Reverted to Debian defaults for vm.swappiness and let the user make their own adjustments.

geckolinux commented 7 months ago

https://github.com/SpiralLinux/SpiralLinux-project/releases/tag/12.231120