# dd if=/dev/zero of=/var/swpfile bs=1M count=<SIZE_MB> # mkswap /var/swpfile
# swapon /var/swpfile
# vim /etc/fstab
以下を追記
/var/swpfile swap swap defaults 0 0
# swapoff /var/swpfile