Skip to content

Instantly share code, notes, and snippets.

@camilajenny
Created November 11, 2017 10:36
Show Gist options
  • Save camilajenny/239dbf4cdc8d014b589032415a7e86d6 to your computer and use it in GitHub Desktop.
Save camilajenny/239dbf4cdc8d014b589032415a7e86d6 to your computer and use it in GitHub Desktop.
swapiness on Linux
  • Change Swappiness Value
  1. Run terminal
  2. Enter following line to see current swappiness value cat /proc/sys/vm/swappiness (default value in Ubuntu for swappiness is 60)
  3. Open file /etc/sysctl.conf in a text editor, I did vim /etc/sysctl.conf
  4. Enter the following parameter

Decrease swappiness value

vm.swappiness=10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment