Skip to content

Instantly share code, notes, and snippets.

@mixxen
Created February 16, 2016 09:32
Show Gist options
  • Select an option

  • Save mixxen/b64fa66d378366114ae4 to your computer and use it in GitHub Desktop.

Select an option

Save mixxen/b64fa66d378366114ae4 to your computer and use it in GitHub Desktop.
swapoff /swapfile
free -mh
rm -rf /swapfile
fallocate -l 16G /swapfile
chmod 600 /swapfile
ls -lh /swapfile
mkswap /swapfile
swapon -s
sysctl vm.swappiness=50
free -mh
# vi /etc/sysctl.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment