On Tue 29 Sep 2009, Clinton Gormley wrote:
> > I'm wondering if anyone can advise me on how I could go about
> > trying to understand where this 90 Mbs is comming from? Some of it
> > must be the mod_perl and apache binaries - but how much should they
> > be, and apart from the 6mb in shared memory for my pre-loaded
> > modules, where is it all comming from?
>
> You don't mention what platform you are on, but if it is linux, then
> check out this blog
>
>    http://bmaurer.blogspot.com/2006/03/memory-usage-with-smaps.html
>
> and specifically this script
>
>    http://www.contrib.andrew.cmu.edu/%7Ebmaurer/memory/smem.pl
>
>
> which will give you a much more accurate idea about how much memory
> is shared and where it is being used.

But keep this in mind:

http://search.cpan.org/~opi/Linux-Smaps-0.06/lib/Linux/Smaps.pm#A_special_note_on_copy_on_write_measurements

There is another device that could be helpful. On newer kernels (don't 
remember when) there is a "Referenced" field in /proc/PID/smaps. It 
counts the kilobytes accessed since the last write 
to /proc/PID/clear_refs (or since the start of the program).

Torsten

-- 
Need professional mod_perl support?
Just hire me: torsten.foert...@gmx.net

Reply via email to