Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. Subject: provide estimated available memory in /proc/meminfo
  2.  
  3. Many load balancing and workload placing programs check /proc/meminfo
  4. to estimate how much free memory is available. They generally do this
  5. by adding up "free" and "cached", which was fine ten years ago, but
  6. is pretty much guaranteed to be wrong today.
  7.  
  8. It is wrong because Cached includes memory that is not freeable as
  9. page cache, for example shared memory segments, tmpfs, and ramfs,
  10. and it does not include reclaimable slab memory, which can take up
  11. a large fraction of system memory on mostly idle systems with lots
  12. of files.
  13.  
  14. Currently, the amount of memory that is available for a new workload,
  15. without pushing the system into swap, can be estimated from MemFree,
  16. Active(file), Inactive(file), and SReclaimable, as well as the "low"
  17. watermarks from /proc/zoneinfo.
  18.  
  19. MemTotal: 16536344 kB
  20. MemFree: 8615224 kB
  21. Buffers: 241896 kB
  22. Cached: 1341944 kB
  23. SwapCached: 100232 kB
  24. Active: 5320768 kB
  25. Inactive: 2021312 kB
  26. Active(anon): 4298508 kB
  27. Inactive(anon): 1483164 kB
  28. Active(file): 1022260 kB
  29. Inactive(file): 538148 kB
  30. Unevictable: 32 kB
  31. Mlocked: 32 kB
  32. SwapTotal: 9918460 kB
  33. SwapFree: 7730432 kB
  34. Dirty: 56 kB
  35. Writeback: 0 kB
  36. AnonPages: 5720696 kB
  37. Mapped: 103628 kB
  38. Shmem: 23432 kB
  39. Slab: 432516 kB
  40. SReclaimable: 356780 kB
  41. SUnreclaim: 75736 kB
  42. KernelStack: 7320 kB
  43. PageTables: 69764 kB
  44. NFS_Unstable: 0 kB
  45. Bounce: 0 kB
  46. WritebackTmp: 0 kB
  47. CommitLimit: 18186632 kB
  48. Committed_AS: 12325296 kB
  49. VmallocTotal: 34359738367 kB
  50. VmallocUsed: 120924 kB
  51. VmallocChunk: 34351227352 kB
  52. HardwareCorrupted: 0 kB
  53. AnonHugePages: 0 kB
  54. HugePages_Total: 0
  55. HugePages_Free: 0
  56. HugePages_Rsvd: 0
  57. HugePages_Surp: 0
  58. Hugepagesize: 2048 kB
  59. DirectMap4k: 103240 kB
  60. DirectMap2M: 16738304 kB
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement