Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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
You can’t perform that action at this time.