ops/etc/sysctl.d/vm.conf

17 lines
442 B
Plaintext

# do less swap but not disable it
vm.swappiness = 1
# https://major.io/2008/12/03/reducing-inode-and-dentry-caches-to-keep-oom-killer-at-bay/
vm.vfs_cache_pressure = 10000
#vm.vfs_cache_pressure = 100
##
# Adjust vfs cache
# https://lonesysadmin.net/2013/12/22/better-linux-disk-caching-performance-vm-dirty_ratio/
# Decriase dirty cache to faster flush on disk
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10
#
vm.overcommit_memory = 1