Rackspace no longer offers swap partitions. Their reasoning is pretty flimsy since you can still create a swap file on your machine and swapon that mofo. Here are two articles from rackspace.com.
Rackspace’s reasoning: http://www.rackspace.com/knowledge_center/article/swap-space-on-cloud-servers
How to create and turn on swap space using a swap file instead of a swap partition…
To add 1GB of swap to your server, for example, follow these steps:
- Create the file to be used for swap.
fallocate -l 1G /mnt/1GB.swap
If fallocate fails or is not installed, run the following command.
sudo dd if=/dev/zero of=/mnt/1GB.swap bs=1024 count=1048576
- Format the file for swap.
- Add the file to the system as a swap file.
- Add this line to the end of /etc/fstab to make the change permanent.
/mnt/1GB.swap none swap sw 0 0
- To change the swappiness value edit /etc/sysctl.conf and add the following line.
Start with a value of 10 and increase if needed. A typical default value for swappiness is 60. The higher the number (up to 100), the more often swap is utilized.
How much swappiness affects performance depends on how your memory is being used, so experiment to find an optimal value. At 0 the swap file will only be used when the system runs completely out of memory. Higher values let the system swap idle processes out to allow the system to free memory for disk caching, potentially improving overall system performance.
- Check that the swap file was created.
- Reboot the server to ensure that the changes go into effect.