(Xen) How can I create more SWAP space?
Pre-defined SWAP not enough for you? Below shows an example of adding additional 1GB SWAP to your Linux VPS! dd if=/dev/zero of=/home/swapfile.1gb bs=1M count=1000 mkswap /home/swapfile.1gb swapon /home/swapfile.1gb
You may want to add the following to your /etc/fstab as well, so extra SWAP is automatically activated between reboots. /home/swapfile.1gb none swap sw 0 0 (If you shutdown the VPS and boot/reboot from HyperVM, /etc/fstab may be overwritten and above entry may be gone.) |