meminfo documentation
I'm trying to document all of the fields in /proc/meminfo for future inclusion into Documentation/filesystems/proc.txt
Does anyone has comments to add, or corrections for mine?
----------------------------------------------------------------------
Provides information about distribution and utilization of memory. This varies by architecture and compile options. The following is from a 16GB PIII, which has highmem enabled. You may not have all of these fields.
MemTotal: 16344972 kB MemFree: 13634064 kB Buffers: 3656 kB Cached: 1195708 kB SwapCached: 0 kB Active: 891636 kB Inactive: 1077224 kB HighTotal: 15597528 kB HighFree: 13629632 kB LowTotal: 747444 kB LowFree: 4432 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 968 kB Writeback: 0 kB Mapped: 280372 kB Slab: 684068 kB Committed_AS: 1576424 kB PageTables: 24448 kB ReverseMaps: 1080904 VmallocTotal: 112216 kB VmallocUsed: 428 kB VmallocChunk: 111088 kB
MemTotal: HighTotal + LowTotal MemFree: LowFree + HighFree
Buffers: relatively temporary storage for raw disk blocks
shouldn't get tremendously large (20MB or so)
Cached: in-memory cache for files read from the disk (the page
cache)
SwapCached: things which were "Cached", but have now been
swapped out to disk.
Active:
Inactive:
HighTotal:
HighFree: Highmem areas are for use by userspace programs, or
for the pagecache.
LowTotal:
LowFree: Lowmem is memory which can be used for everything that
highmem can be used for, but it is also availble for the kernel's use. Among many other things, it is where everything from the Slab is allocated. Bad things happen when you're out of lowmem.
SwapTotal: total amount of swap space available SwapFree: Memory which has been evicted from RAM, and is temporarily
on the disk
Dirty: Memory which is waiting to get written back to the disk
Writeback: Memory which is actively being written back to the disk
Mapped: files which have been mmaped, such as libraries
Slab: in-kernel data structures cache
Committed_AS:
PageTables:
ReverseMaps: number of rmap pte chains
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
Signature · 8 lines
Dave Hansen [email protected] -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]">[email protected]</a>
Quoted 1 line · Dave Hansen
ReverseMaps: number of rmap pte chains
It's not about the number of pte_chains. There are 3 ways to think of it:
(1) number of reverse mappings performed.
(2) total number of pte's in pte_chains
(3) total faulted-in memory-backed virtualspace
pte_chain objects may partially utilize slabs, and a given chain of pte_chain objects may be partially utilized within a given chain, as there are 7 pointers or so in an object, and you have to fill a chain with a precise number of pte's to fully utilize the objects.
So, there are two levels at which internal fragmentation can happen. This measures the one _not_ detectable from /proc/slabinfo, which is the internal fragmentation at the pte-filling-object-level.
The number these days is not particularly useful for the measurement of internal fragmentation due to the PG_direct changes, but could be fixed up to measure it again. This stat is slated to be removed soon because it's measurably expensive to collect (which is good; any stat with that kind of performance impact should either die or be config'd).
-- wli
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]">[email protected]</a>