Created
July 7, 2015 10:52
-
-
Save rhoconlinux/5980ba54ad626e811b11 to your computer and use it in GitHub Desktop.
swappiness fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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