perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Re: [PATCH] Apache2::SizeLimit on Linux
Date Sun, 07 Aug 2005 23:30:20 GMT
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.


Could you please submit a doc patch for Apache2/SizeLimit.pod
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 
>, the 
> second with Suses default kernel (

Do you know when the mm-series will become a part of the mainstream branch?

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

View raw message