Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Entries in /proc/meminfo

Tags:

I can make sense of most of the information contained in /proc/meminfo like total memory, buffers, cache etc. Could you tell me what do the less obvious ones like the ones listed below mean?

  • AnonPages
  • Mapped
  • Slab
  • NFS_Unstable
  • Bounce
  • VmallocTotal
  • VmallocUsed
  • VmallocChunk

If anyone is wondering, I am talking about the output of the linux command cat /proc/meminfo

like image 711
AIB Avatar asked Mar 18 '09 14:03

AIB


People also ask

What is in Proc Meminfo?

On Linux you can use the command cat /proc/meminfo to determine how much memory the computer has. This command displays the information stored in the meminfo file located in the /proc directory. The total amount of memory will be displayed as MemTotal, shown in the example in bold.

What is slab in Proc Meminfo?

Slab — The total amount of memory, in kilobytes, used by the kernel to cache data structures for its own use.

What is VMallocTotal?

VMallocTotal: The total amount of memory, in kilobytes, of total allocated virtual address space. VMallocUsed: The total amount of memory, in kilobytes, of used virtual address space.

What is dirty in Proc Meminfo?

Dirty — The total amount of memory, in kilobytes, waiting to be written back to the disk.


1 Answers

The canonical source of this information is /usr/src/linux/Documentation/filesystems/proc.txt. Specifically,

   AnonPages: Non-file backed pages mapped into userspace page tables       Mapped: files which have been mmaped, such as libraries         Slab: in-kernel data structures cache NFS_Unstable: NFS pages sent to the server, but not yet committed to stable         storage       Bounce: Memory used for block device "bounce buffers" VmallocTotal: total size of vmalloc memory area  VmallocUsed: amount of vmalloc area which is used VmallocChunk: largest contigious block of vmalloc area which is free 
like image 160
ephemient Avatar answered Sep 30 '22 05:09

ephemient