Change Swap Size Turn off all running swap processes:  swapoff -a Resize swap  fallocate -l 1G /swapfile  (change 1G to the gigabyte size you want it to be) CHMOD swap:  chmod 600 /swapfile Make file usable as swap  mkswap /swapfile Active the swap file  swapon /swapfile To verify your swap size run the following command and you will see the swap size:  free -m