Skip to content

Instantly share code, notes, and snippets.

@petericebear
Created April 18, 2016 19:02
Show Gist options
  • Save petericebear/b6ac04e4aedfc5a54a13ef143c369641 to your computer and use it in GitHub Desktop.
Save petericebear/b6ac04e4aedfc5a54a13ef143c369641 to your computer and use it in GitHub Desktop.
Adds a permanent 4gb swapfile
fallocate -l 4G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment