In ubuntu, vm.swappiness is used to control the priority of the swap space. The value is 0-100. The larger the value, the more active the swap partition is used.
View current value:
cat /proc/sys/vm/swappiness
Temporary modification (invalid after restart):
sysctl vm.swappiness=100
Permanent modification:
vi /etc/sysctl.conf
Add at the end of the file
vm.swappiness=100
Recommended Posts