Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I account for all of the memory in meminfo?
    primarykey
    data
    text
    <p>I'm trying to understand how <code>meminfo</code> tracks memory. Here's what I'm looking at:</p> <pre><code>MemTotal: 341596 kB MemFree: 147288 kB Buffers: 56 kB Cached: 46752 kB SwapCached: 0 kB Active: 86928 kB Inactive: 41384 kB Active(anon): 81532 kB Inactive(anon): 288 kB Active(file): 5396 kB Inactive(file): 41096 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 81532 kB Mapped: 87648 kB Shmem: 316 kB Slab: 11568 kB SReclaimable: 2580 kB SUnreclaim: 8988 kB KernelStack: 3232 kB PageTables: 5480 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 170796 kB Committed_AS: 2692436 kB VmallocTotal: 327680 kB VmallocUsed: 59244 kB VmallocChunk: 259076 kB </code></pre> <p>Here are my questions:</p> <p>1) How can I account for all 341596kB of memory? Clearly 147288 are free. How can I account for the remaining memory? (short of writing a problem to solve the zero-subset-sum problem, I mean...)</p> <p>2) Total inactive/active file memory is 46492, but <code>Mapped</code> is 87648. But, according to the <a href="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/filesystems/proc.txt;hb=HEAD#l451" rel="nofollow noreferrer">manual</a>, it's</p> <pre><code>Mapped: files which have been mmaped, such as libraries </code></pre> <p>so.. how could there be more pages devoted to mapped files than there are files themselves?</p> <p><strong>Due diligence</strong> I've seen other <a href="https://stackoverflow.com/questions/658411/entries-in-proc-meminfo">posts</a> on SO related to this subject, but none that explains how to account for all the "used" memory here... Also, I've found the <a href="http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Documentation/filesystems/proc.txt;hb=HEAD#l451" rel="nofollow noreferrer">Linux Kernel file</a> explaining <code>/proc/meminfo</code> -- it just doesn't seem to have the complete information I want.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload