Index menü
Ha a géped akkor is swap-el, amikor még gigabájtok vannak szabadon a memóriában, akkor érdemes a swappiness értékét lecsökkenteni.
Ezt vagy a /etc/sysctl.conf-ban, vagy a /etc/sysctl.d mappában egy .conf fájlban kell beállítani.
vm.swappiness = 10
vm.swappiness = 0
Value Strategy vm.swappiness = 0The kernel will swap only to avoid an out of memory condition. See the VM Sysctl documentation. vm.swappiness = 1Kernel version 3.5 and over, as well as kernel version 2.6.32-303 and over: Minimum amount of swapping without disabling it entirely. vm.swappiness = 10This value is sometimes recommended to improve performance when sufficient memory exists in a system. vm.swappiness = 60The default value. vm.swappiness = 100The kernel will swap aggressively.