Re: More questions about 2.6 /proc/meminfo was: (Mem: and Swap:lines in /proc/meminfo)

From: Rik van Riel
Date: Sun Dec 14 2003 - 19:18:58 EST


On Sat, 13 Dec 2003, Mike Fedyk wrote:

> > > Are Dirty: and Writeback: counted in Inactive: or are they seperate?
> >
> > They're unrelated statistics to active/inactive and will
> > overlap with active/inactive.
>
> Do they count anonymous memory, or are they strictly dirty/writeback
> pagecache?

Pagecache only, I think.

> > > Does Mapped: include all files mmap()ed, or only the executable ones?
> >
> > Mapped: includes all mmap()ed pages, regardless of executable
> > status.
>
> Is mmap() always pagecache backed, or can it be backed with anonymous
> memory? IE, can I subtract mapped from pagecache?

Mapped includes all mapped memory, both pagecache and
anonymous.

> I'd love to find a more accurate way to get the amount of memory used for
> apps, short of reading the output of ps and doing calculations on RSS,
> VIRTUAL, and SHARED...

That would be great, it would really help with tuning
the VM further (if that turns out to be needed for
special workloads).

--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/