LukeShortCloud / winesapOS

winesapOS - Game with Linux anywhere, no installation required!
GNU General Public License v3.0
889 stars 30 forks source link

[install] Lower vm.vfs_cache_pressure #946

Open LukeShortCloud opened 1 week ago

LukeShortCloud commented 1 week ago

The sysctl parameter vm.vfs_cache_pressure is used to configure how much RAM should be cached. The default value is 100 but the community recommendation is 50 for slower drives. 0 is not recommended as all memory will be cached, eventually leading to out-of-memory errors.

$ sudo vim /etc/sysctl.conf
vm.vfs_cache_pressure=50

https://web.archive.org/web/20150321012336/https://sites.google.com/site/easylinuxtipsproject/3 https://gist.github.com/Nihhaar/ca550c221f3c87459ab383408a9c3928 https://www.kernel.org/doc/Documentation/sysctl/vm.txt