Increasing AMP's SWAP (Virtual Memory) Space
In the following step-by-step guide, we'll add an additional 2GB of SWAP space to an AMP.
1) First, create a blank file to hold the SWAP data (note that you can increase the size of the final SWAP file by increasing the 'count' number below)
dd if=/dev/zero of=/extraswap bs=1M count=2048
2) Next, tell the Linux OS to prepare the file for use as SWAP space
3) Then, issue a command to turn-on the new SWAP file
4) Finally, to make the extra SWAP space work after a reboot, poweroff, etc.
echo -e "/extraswap\t\t\t\tnone\t\t\t\t\tswap\tsw\t\t\t\t0 0" >>