Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. $ cat /proc/sys/vm/min_free_kbytes
  2. 67584
  3.  
  4. $ free -h
  5. total used free shared buff/cache available
  6. Mem: 7.7Gi 3.2Gi 615Mi 510Mi 3.9Gi 3.7Gi
  7. Swap: 2.0Gi 707Mi 1.3Gi
  8.  
  9. $ grep -r min_free_kbytes /etc/sysctl* # No manual configuration
  10. $
  11.  
  12. $ uname -r # My kernel version
  13. 5.0.17-200.fc29.x86_64
  14.  
  15. /*
  16. * Initialise min_free_kbytes.
  17. *
  18. * For small machines we want it small (128k min). For large machines
  19. * we want it large (64MB max). But it is not linear, because network
  20. * bandwidth does not increase linearly with machine size. We use
  21. *
  22. * min_free_kbytes = 4 * sqrt(lowmem_kbytes), for better accuracy:
  23. * min_free_kbytes = sqrt(lowmem_kbytes * 16)
  24. *
  25. * which yields
  26. *
  27. * 16MB: 512k
  28. * 32MB: 724k
  29. * 64MB: 1024k
  30. * 128MB: 1448k
  31. * 256MB: 2048k
  32. * 512MB: 2896k
  33. * 1024MB: 4096k
  34. * 2048MB: 5792k
  35. * 4096MB: 8192k
  36. * 8192MB: 11584k
  37. * 16384MB: 16384k
  38. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement