etc-config/sysctl.d/12309.conf

22 lines
752 B
Plaintext
Raw Normal View History

2014-06-13 15:45:54 +04:00
# swap usage (default = 60)
vm.swappiness = 5
2019-08-28 13:02:31 +03:00
# (default = 100)
vm.vfs_cache_pressure = 1000
2014-06-13 15:45:54 +04:00
# http://www.linux.org.ru/wiki/en/User:shimon/12309
# reduce memory size allowed to process (default = 0 )
2019-08-28 13:02:31 +03:00
vm.overcommit_memory = 1
2014-06-13 15:45:54 +04:00
# memory allowed to process: total_swap + total_ram * overcommit_ratio / 100 (default = 50 )
2019-08-28 13:02:31 +03:00
#vm.overcommit_ratio = 12
2014-06-13 15:45:54 +04:00
# disk buffer size (default = 0 )
2019-08-28 13:02:31 +03:00
vm.dirty_bytes = 16777216
2014-06-13 15:45:54 +04:00
# disk buffer size (default = 0 )
2019-08-28 13:02:31 +03:00
vm.dirty_background_bytes = 4194304
2014-06-13 15:45:54 +04:00
# For old kernels <2.6.30 (default = 40)
2019-08-28 13:02:31 +03:00
#vm.dirty_ratio = 12
2014-06-13 15:45:54 +04:00
# For old kernels <2.6.30 (default = 10)
#vm.dirty_background_ratio = 3
2019-08-28 13:02:31 +03:00
# https://github.com/zen-kernel/zen-kernel/issues/81#issuecomment-260779930
vm.dirty_expire_centisecs = 800
vm.dirty_writeback_centisecs = 500