su - root
dd if=/dev/zero of=/swapfile1 bs=1M count=1000
mkswap /swapfile1
swapon /swapfile1
vi /etc/fstab/swapfile1 swap swap defaults 0 0
free -m