Skip to content

Instantly share code, notes, and snippets.

@whistler
Created November 2, 2017 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whistler/125a085557d97851a546b6d795132736 to your computer and use it in GitHub Desktop.
Save whistler/125a085557d97851a546b6d795132736 to your computer and use it in GitHub Desktop.
Add more swap space on Ubuntu 17
count=12288
sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1M count=1024
sudo mkswap /swapfile
sudo swapon /swapfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment