perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Foertsch <torsten.foert...@gmx.net>
Subject Re: [PATCH] Apache2::SizeLimit on Linux
Date Fri, 19 Aug 2005 16:29:35 GMT
On Monday 08 August 2005 01:30, Stas Bekman wrote:
> 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)

see attachment

It corrects some podchecker errors and warnings as well.

> > 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?

MM (Andrew Morton) says: "Yes, I expect we'll merge it up.". Since he is the 
maintainer of the 2.6 vanilla linux I think it can be expected rather sooner 
than later.

Torsten

Mime
View raw message