On Tue, 2008-08-26 at 17:21 -0400, Wietse Venema wrote:
> Ralf Hildebrandt:
> > Simple question: How much RAM does a process actually use?
> > But how to find out? There's copy on write, shared libraries, shared
> > memory, and whatever.
> With Linux, parse /proc/pid/map for each process. This gives you
> the memory mapping.  Writable mappings are non-shared and count
> for each process (this is an over-estimate in case of copy-on-write).
> Read-only mappings count only once.

<http://virtualthreads.blogspot.com/2006/02/understanding-memory-usage-on-linux.html>
 is a good read.

Reply via email to