/etc/sysctl.conf
Change or adding the line
Code: Select all
#Set swappiness value
vm.swappiness=10
When free RAM reaches this point, swap is used.
Set with the value to your preference.
How to Manage Swap Usage in Linux
https://www.maketecheasier.com/manage-swap-usage-linux/