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
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.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