[mp2] Memory not being shared

[prev] [thread] [next] [Date index for 2005/02/11]

From: Kurt Hansen
Subject: [mp2] Memory not being shared
Date: 15:57 on 11 Feb 2005
Hello,

I'm having problems getting modules loaded at Apache start to be shared 
across the children. Here's the output I get from Apache::VMonitor (I've 
editted down to just 2 children):

    Size  Share VSize   RSS   M Elapsed LastReq Srvd
     ----- ----- -----  ---- --  ------ ------ ----
12: 89.5M  4.2M 89.5M 70.9M _  0.000s  0.000s    0
 8: 89.5M  4.2M 89.5M 70.9M _  0.000s  0.000s    0

Total:     1501392K (1432M) size, 1435471K (1369M) approx real size 
(-shared)

Both the totals and the individual numbers imply very little memory is 
being shared. As I understand the output from VMonitor, only 4.2M out of 
89.5M are being shared. (Yes, Apache is awfully big, that's my next step 
in optimization.)

I'm loading the vast majority of my modules in a startup.pl file, so I 
don't understand why they aren't being shared. Obviously, I am missing 
something. Any pointers on where I should look next would be very 
helpful. Here is the information about my system:

Fedora Core 2
perl 5.8.5 (threaded)
Apache 2.0.52 (pre-fork -- config params below)
mp2 2.0.0-RC4 (DSO -- config params below)
apreq2 (2/10/05 version)

Relevant parts of httpd.conf (CWApache::Apache2Handler is use'd in 
startup.pl):

 LoadModule perl_module modules/mod_perl.so
 LoadModule apreq_module       modules/mod_apreq.so
 ...
 PerlRequire /usr/local/apache2/mp/conf/startup.pl
 ...
 <Location / >
       SetHandler perl-script
       PerlResponseHandler  CWApache::Apache2Handler
 </Location>

Config params for apache and mod_perl:

 ./configure --prefix=/usr/local/apache2/mp --with-mpm=prefork 
--disable-cgi --disable-userdir --enable-auth-dbm --enable-speling

 perl Makefile.PL MP_APXS=/usr/local/apache2/mp/bin/apxs MP_INST_APACHE2=1

Thank you for any guidance!

Take care,

Kurt Hansen
khansen@xxxxxxxxxx.xxx

(message missing)

[mp2] Memory not being shared
Kurt Hansen 15:57 on 11 Feb 2005

Re: [mp2] Memory not being shared
Stas Bekman 17:14 on 11 Feb 2005

Re: [mp2] Memory not being shared
Kurt Hansen 17:54 on 11 Feb 2005

Re: [mp2] Memory not being shared
Perrin Harkins 20:32 on 11 Feb 2005

Re: [mp2] Memory not being shared
Kurt Hansen 21:23 on 11 Feb 2005

Re: [mp2] Memory not being shared
Perrin Harkins 21:36 on 11 Feb 2005

Re: [mp2] Memory not being shared
Kurt Hansen 22:34 on 11 Feb 2005

Re: [mp2] Memory not being shared
Stas Bekman 04:04 on 12 Feb 2005

Re: [mp2] Memory not being shared
Richard F. Rebel 14:31 on 12 Feb 2005

Re: [mp2] Memory not being shared
Richard F. Rebel 14:22 on 12 Feb 2005

Re: [mp2] Memory not being shared
Kurt Hansen 17:58 on 12 Feb 2005

Generated at 17:31 on 15 Feb 2005 by mariachi v0.52