perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kjetil Kjernsmo <>
Subject Re: Loading at startup to use shared memory
Date Wed, 08 Nov 2006 15:26:19 GMT
On Tuesday 07 November 2006 17:17, Torsten Foertsch wrote:
> You can directly look at /proc/<PID>/smaps or use Linux::Smaps. I
> don't know what GTop does but I know how /proc/<PID>/smaps work.
> Also, don't do it too often. Reading from /proc/<PID>/smaps is really
> expensive particularly for large process sizes.

Wow. Yeah, that's really interesting! So, I started to dive into what 
this means... I have a lot to learn here... Thanks, I'll be 

> Maybe I forgot to say in the docs, /proc/<PID>/smaps cannot determine
> if a page is shared or private if it is out of core (paged out).
> Hence to make your measurement accurate you must lock the parent
> apache in core or turn off swapping completely.

Heh, that's no problem, because our sysadmin insists that swapping 
sucks, so there is no swap on those boxes...


Kjetil Kjernsmo
Information Systems Developer
Opera Software ASA

View raw message