Skip to content

Instantly share code, notes, and snippets.

@fvdm
Created January 27, 2016 07:51
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 fvdm/287a6b2165eabf41dd81 to your computer and use it in GitHub Desktop.
Save fvdm/287a6b2165eabf41dd81 to your computer and use it in GitHub Desktop.
# swap when less than N % mem is available
vm.swappiness = 10
# cache inodes (50 = don't shrink inode cache)
vm.vfs_cache_pressure = 50
# % memory available for all processes -- some suggest 50
vm.overcommit_ratio = 100
# 0 = fuzzy available memory guessing : bad
# 1 = high performance, high risk : bad
# 2 = don't use more memory than swap + overcommit_ratio % : good
vm.overcommit_memory = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment