# dd if=/dev/zero of=/var/swpfile bs=1M count=<SIZE> # mkswap /var/swpfile
# swapon /var/swpfile
# vim /etc/fstab
/var/swpfile swap swap defaults 0 0
# swapoff /var/swpfile