Skip to content

Instantly share code, notes, and snippets.

@fabiorecife
Last active September 5, 2021 15:53
Show Gist options
  • Select an option

  • Save fabiorecife/73f90161059e78ed5625e4e9da356a1e to your computer and use it in GitHub Desktop.

Select an option

Save fabiorecife/73f90161059e78ed5625e4e9da356a1e to your computer and use it in GitHub Desktop.
Enlarging the swap file to 20 GB

Enlarging the swap file to 20 GB

 sudo swapoff -v /swapfile
 sudo rm /swapfile
 sudo fallocate -l 20G /swapfile
 sudo chmod 600 /swapfile
 sudo mkswap /swapfile
 sudo swapon /swapfile

example /etc/fstab

 /swapfile                                 none            swap    sw              0       0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment