Skip to content

Instantly share code, notes, and snippets.

@rhoconlinux
Created July 7, 2015 10:52
Show Gist options
  • Select an option

  • Save rhoconlinux/5980ba54ad626e811b11 to your computer and use it in GitHub Desktop.

Select an option

Save rhoconlinux/5980ba54ad626e811b11 to your computer and use it in GitHub Desktop.
swappiness fix
echo '# Decrease swap usage to a more reasonable level' | sudo tee --append /etc/sysctl.conf > /dev/null
echo 'vm.swappiness=5' | sudo tee --append /etc/sysctl.conf > /dev/null
echo '# Improve cache management' | sudo tee --append /etc/sysctl.conf > /dev/null
echo 'vm.vfs_cache_pressure=40' | sudo tee --append /etc/sysctl.conf > /dev/null
cat /etc/sysctl.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment