Advertisement
Bkmz

Untitled

Sep 22nd, 2011
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1. meminfo:
  2.  
  3. Provides information about distribution and utilization of memory. This
  4. varies by architecture and compile options. The following is from a
  5. 16GB PIII, which has highmem enabled. You may not have all of these fields.
  6.  
  7. > cat /proc/meminfo
  8.  
  9.  
  10. MemTotal: 16344972 kB
  11. MemFree: 13634064 kB
  12. Buffers: 3656 kB
  13. Cached: 1195708 kB
  14. SwapCached: 0 kB
  15. Active: 891636 kB
  16. Inactive: 1077224 kB
  17. HighTotal: 15597528 kB
  18. HighFree: 13629632 kB
  19. LowTotal: 747444 kB
  20. LowFree: 4432 kB
  21. SwapTotal: 0 kB
  22. SwapFree: 0 kB
  23. Dirty: 968 kB
  24. Writeback: 0 kB
  25. AnonPages: 861800 kB
  26. Mapped: 280372 kB
  27. Slab: 284364 kB
  28. SReclaimable: 159856 kB
  29. SUnreclaim: 124508 kB
  30. PageTables: 24448 kB
  31. NFS_Unstable: 0 kB
  32. Bounce: 0 kB
  33. WritebackTmp: 0 kB
  34. CommitLimit: 7669796 kB
  35. Committed_AS: 100056 kB
  36. VmallocTotal: 112216 kB
  37. VmallocUsed: 428 kB
  38. VmallocChunk: 111088 kB
  39.  
  40. MemTotal: Total usable ram (i.e. physical ram minus a few reserved
  41. bits and the kernel binary code)
  42. MemFree: The sum of LowFree+HighFree
  43. Buffers: Relatively temporary storage for raw disk blocks
  44. shouldn't get tremendously large (20MB or so)
  45. Cached: in-memory cache for files read from the disk (the
  46. pagecache). Doesn't include SwapCached
  47. SwapCached: Memory that once was swapped out, is swapped back in but
  48. still also is in the swapfile (if memory is needed it
  49. doesn't need to be swapped out AGAIN because it is already
  50. in the swapfile. This saves I/O)
  51. Active: Memory that has been used more recently and usually not
  52. reclaimed unless absolutely necessary.
  53. Inactive: Memory which has been less recently used. It is more
  54. eligible to be reclaimed for other purposes
  55. HighTotal:
  56. HighFree: Highmem is all memory above ~860MB of physical memory
  57. Highmem areas are for use by userspace programs, or
  58. for the pagecache. The kernel must use tricks to access
  59. this memory, making it slower to access than lowmem.
  60. LowTotal:
  61. LowFree: Lowmem is memory which can be used for everything that
  62. highmem can be used for, but it is also available for the
  63. kernel's use for its own data structures. Among many
  64. other things, it is where everything from the Slab is
  65. allocated. Bad things happen when you're out of lowmem.
  66. SwapTotal: total amount of swap space available
  67. SwapFree: Memory which has been evicted from RAM, and is temporarily
  68. on the disk
  69. Dirty: Memory which is waiting to get written back to the disk
  70. Writeback: Memory which is actively being written back to the disk
  71. AnonPages: Non-file backed pages mapped into userspace page tables
  72. Mapped: files which have been mmaped, such as libraries
  73. Slab: in-kernel data structures cache
  74. SReclaimable: Part of Slab, that might be reclaimed, such as caches
  75. SUnreclaim: Part of Slab, that cannot be reclaimed on memory pressure
  76. PageTables: amount of memory dedicated to the lowest level of page
  77. tables.
  78. NFS_Unstable: NFS pages sent to the server, but not yet committed to stable
  79. storage
  80. Bounce: Memory used for block device "bounce buffers"
  81. WritebackTmp: Memory used by FUSE for temporary writeback buffers
  82. CommitLimit: Based on the overcommit ratio ('vm.overcommit_ratio'),
  83. this is the total amount of memory currently available to
  84. be allocated on the system. This limit is only adhered to
  85. if strict overcommit accounting is enabled (mode 2 in
  86. 'vm.overcommit_memory').
  87. The CommitLimit is calculated with the following formula:
  88. CommitLimit = ('vm.overcommit_ratio' * Physical RAM) + Swap
  89. For example, on a system with 1G of physical RAM and 7G
  90. of swap with a `vm.overcommit_ratio` of 30 it would
  91. yield a CommitLimit of 7.3G.
  92. For more details, see the memory overcommit documentation
  93. in vm/overcommit-accounting.
  94. Committed_AS: The amount of memory presently allocated on the system.
  95. The committed memory is a sum of all of the memory which
  96. has been allocated by processes, even if it has not been
  97. "used" by them as of yet. A process which malloc()'s 1G
  98. of memory, but only touches 300M of it will only show up
  99. as using 300M of memory even if it has the address space
  100. allocated for the entire 1G. This 1G is memory which has
  101. been "committed" to by the VM and can be used at any time
  102. by the allocating application. With strict overcommit
  103. enabled on the system (mode 2 in 'vm.overcommit_memory'),
  104. allocations which would exceed the CommitLimit (detailed
  105. above) will not be permitted. This is useful if one needs
  106. to guarantee that processes will not fail due to lack of
  107. memory once that memory has been successfully allocated.
  108. VmallocTotal: total size of vmalloc memory area
  109. VmallocUsed: amount of vmalloc area which is used
  110. VmallocChunk: largest contiguous block of vmalloc area which is free
  111.  
  112. ..............................................................................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement