You normally don’t want your servers using swap space because of the performance hit that occurs but for some operations you just can’t get around it. I’ve covered how to create a swap file before but what the swap you’ve created isn’t large enough?
This process turns out to be easy but it’s hard to locate all the information on the Internet. Because you’re disabling the swap on a server you should make sure you have enough available RAM so your processes won’t crash due to a lack of RAM. I ran this process at a time with low load so there weren’t any problems.
As always when there’s a potential for damage, I take no responsibility for any loss of data/problems you may have.
Disable the Swap
This process can take a long time as your data is brought back into RAM. I started to freak out the first time.