Tag Archives: swapfile

Create and mount SWAP file

 

[8GB]

[1GB]

 

Set swappiness

A swappiness setting of zero means that the disk will be avoided unless absolutely necessary (you run out of memory), while a swappiness setting of 100 means that programs will be swapped to disk almost instantly.

 

Set via command line

Or simply modify /etc/sysctl.conf adding this line: