RAM cache is mostly controlled by these:   sysctl vm.dirty_ratio - default is 20% free RAM sysctl vm.dirty_background_ratio - default is 10% free RAM   You can experiment and set them higher but note that performance will likely suffer when more data needs to be committed.   See here for an explanation what theses values change: https://lonesysadmin.net/2013/12/22/better-linux-disk-caching-performance-vm-dirty_ratio/