Swap File (Linux)


There is a way to use a file as swap space in Linux. This can be used if large swap space is needed temporarily. To enable this, follow the instructions on this page:

CentOS 5 document: Creating a Swap File

To disable (1st line) and remove (2nd line) the swapfile:

swapoff /path/to/swapfile
rm /path/to/swapfile