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
The canonical source of this information is /usr/src/linux/Documentation/filesystems/proc.txt. Specifically,
My understanding is as follows.
And I agree these numbers are hard to understand and showing inconsistent values.
MemTotal
But recent kernel's vmallocused value could be wrong. This is because it counts VM_xxx regions like VM_IOREMAP, VM_MAP,... other than VM_ALLOC area.
VM_IOREMAP region can be mapping memory which can be outside of kernel's memory management, so the formula above can be not precise, or completely wrong.
You can either do:
Active + Inactive
AnonPages
Although I haven't been able to match these numbers. See here and help me if you have any clue.
Total PageCache
Slab
From RedHat