Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 78483 invoked from network); 7 Aug 2005 23:30:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Aug 2005 23:30:31 -0000 Received: (qmail 45477 invoked by uid 500); 7 Aug 2005 23:30:25 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 45188 invoked by uid 500); 7 Aug 2005 23:30:24 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 45174 invoked by uid 99); 7 Aug 2005 23:30:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Aug 2005 16:30:24 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [195.80.154.36] (HELO mail.logilune.com) (195.80.154.36) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Aug 2005 16:30:12 -0700 Received: from [127.0.0.1] (localhost.logilune.com [127.0.0.1]) by mail.logilune.com (Postfix) with ESMTP id 0B3A8D6E73; Mon, 8 Aug 2005 01:30:20 +0200 (CEST) Message-ID: <42F6998C.1080506@stason.org> Date: Sun, 07 Aug 2005 16:30:20 -0700 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050322 X-Accept-Language: en-us, en, he, ru MIME-Version: 1.0 To: Torsten Foertsch CC: modperl@perl.apache.org Subject: Re: [PATCH] Apache2::SizeLimit on Linux References: <200508072037.41464.torsten.foertsch@gmx.net> In-Reply-To: <200508072037.41464.torsten.foertsch@gmx.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com