![]() | 1 | initial version |
If I recall correctly there is also a possibility to set vm.swappiness
level via sysctl
program
To check current value of this option you can use following command:
sysctl -a | grep vm.swappiness
And with this command:
sysctl -w vm.swappiness=0
you can turn it off completely (system will not swap anymore). Setting this option value to 1 will allow swapping to disk only if RAM is exausted. To permanently save that option accross reboots you can define it in file in /etc/sysctl.d/
directory (/etc/sysctl.d/99-sysctl.conf
for example).