lkml.org 
[lkml]   [2003]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: More questions about 2.6 /proc/meminfo was: (Mem: and Swap: lines in /proc/meminfo)
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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:59    [W:0.117 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site