Torsten Foertsch wrote:
Hi,
the attached patch allows Apache2::SizeLimit to use the new /proc/PID/smaps
instead of /proc/PID/statm. This takes into account copy-on-write pages when
counting shared memory.
Torsten++!
Could you please submit a doc patch for Apache2/SizeLimit.pod
http://svn.apache.org/viewcvs.cgi/perl/modperl/docs/trunk/src/docs/2.0/api/Apache2/SizeLimit.pod?rev=159831&view=log
explaining the fact that shared memory calculation is normally wrong under
linux kernel 2.6 and how to fix that situation? (below)
The patch looks if /proc/PID/smaps exists and if Linux::Smaps is installed. If
not it uses the old /proc/PID/statm. Hence, it is compatible with old
linuxes.
/proc/PID/smaps exists by now in the mm-series of the linux kernel. I hope the
patch will take its way into the vanilla kernel in the not so distant future.
[...]
The first one uses linux 2.6.13-rc4-mm1 (with a little patch that will go into
the next mm-version, see
http://marc.theaimsgroup.com/?l=linux-kernel&m=112335328222533&w=2), the
second with Suses default kernel (2.6.11.4-20a-default).
Do you know when the mm-series will become a part of the mainstream branch?
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com