[vox-tech] command to monitor memory usage

Brian Lavender brian at brie.com
Mon Aug 24 09:54:40 PDT 2009


On Sun, Aug 23, 2009 at 01:19:39PM -0500, Ken Bloom wrote:
> On Sun, 2009-08-23 at 10:27 -0700, Bill Kendrick wrote:
> > On Sun, Aug 23, 2009 at 10:35:18AM -0500, Ken Bloom wrote:
> > > AFAIK, because Linux has lots of great ways of sharing physical memory
> > > pages between processes, and only loading the parts of libraries that it
> > > needs, nothing can tell you how much physical memory space is occupied
> > > by a given program.
> > 
> > Heh, so there are numerous different ways of not getting the precise answer.
> > Awesome. ;)
> 
> Well, with copy on write pages which live in RAM but are shared by
> multiple processes, and unused library code occupies neither swap space
> nor physical RAM, is there such a thing as a precise answer?

What tools are there to track system calls to malloc and friends to
see how many pages you have on the heap?


-- 
Brian Lavender
http://www.brie.com/brian/


More information about the vox-tech mailing list