Skip to content

Instantly share code, notes, and snippets.

@UltimateByte
Created April 24, 2018 19:00
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 UltimateByte/87daae0741f87ce654afee8b76c303fd to your computer and use it in GitHub Desktop.
Save UltimateByte/87daae0741f87ce654afee8b76c303fd to your computer and use it in GitHub Desktop.
Manage Linux swap
# Swap strengh (between 0-100) > Lowest value == less swap
sysctl vm.swappiness=X
# Permanently store this value
/etc/sysctl.conf
# Disable Swap
swapoff -a
# Enable Swap
swapon -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment