Skip to content

Instantly share code, notes, and snippets.

@loretoparisi
Created November 26, 2019 15:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save loretoparisi/fb51b62f87c053b24c0007176a1b438d to your computer and use it in GitHub Desktop.
Ubuntu increase swap space
sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1G count=16
sudo mkswap /swapfile
sudo swapon /swapfile
grep SwapTotal /proc/meminfo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment