On Wed, Oct 20, 1999 at 10:47:02PM -0700, Adi wrote:
> > On Wed, 20 Oct 1999, Remi Fasol wrote:
> Does anyone know why the shared memory would decrease so dramatically? 

Perl code and data both live in the data segment.  As it is used, any time
it writes information into a new chunk of memory, the memory is
copied-on-write, becoming not-shared.  

You may or may not benefit from exiting your Apache child when its shared
memory size shrinks too much.  I think a package of Stas Bekman's
authorship may help you detect that occasion.  It wraps the gtop library in
perl, so you can monitor 'top' info from mod_perl.

Your own tests will give you an indication of whether this saves memory and
should also indicate whether there is any performance advantage one way or
other.

It'd be interesting to hear your story of the results.

Randy

Reply via email to