You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Torsten Foertsch <to...@gmx.net> on 2005/09/05 20:05:32 UTC

[PATCH] Apache2::SizeLimit + Linux::Smaps

Hi,

this patch introduces $Apache2::SizeLimit::USE_SMAPS which is 1 by default. 
If /proc/PID/smaps are not available Apache::SizeLimit resets it to 0 itself. 
It can be reset by the user if he prefers using /proc/PID/statm before the 
first size check.

If $USE_SMAPS is 1 /proc/PID/smaps are used. Otherwise the old /proc/PID/statm 
is used.

Torsten

Re: [PATCH] Apache2::SizeLimit + Linux::Smaps

Posted by Torsten Foertsch <to...@gmx.net>.
On Wednesday 07 September 2005 04:25, Philip M. Gollucci wrote:
> Torsten Foertsch wrote:
> > Hi,
> >
> > this patch introduces $Apache2::SizeLimit::USE_SMAPS which is 1 by
> > default. If /proc/PID/smaps are not available Apache::SizeLimit resets it
> > to 0 itself. It can be reset by the user if he prefers using
> > /proc/PID/statm before the first size check.
> >
> > If $USE_SMAPS is 1 /proc/PID/smaps are used. Otherwise the old
> > /proc/PID/statm is used.
>
> Committed with some style tweaks.  Thanks!

The smaps stuff is included linux 2.6.14-rc1. This is not the hottest news 
because 2.6.14-rc1 is out for a few days now but I thought it's worth 
mentioning.

That means it goes to the next vanilla kernel.

Torsten

Re: [PATCH] Apache2::SizeLimit + Linux::Smaps

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Torsten Foertsch wrote:
> Hi,
> 
> this patch introduces $Apache2::SizeLimit::USE_SMAPS which is 1 by default. 
> If /proc/PID/smaps are not available Apache::SizeLimit resets it to 0 itself. 
> It can be reset by the user if he prefers using /proc/PID/statm before the 
> first size check.
> 
> If $USE_SMAPS is 1 /proc/PID/smaps are used. Otherwise the old /proc/PID/statm 
> is used.
Committed with some style tweaks.  Thanks!


-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com

Re: [PATCH] Apache2::SizeLimit + Linux::Smaps

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Torsten Foertsch wrote:
> Hi,
> 
> this patch introduces $Apache2::SizeLimit::USE_SMAPS which is 1 by default. 
> If /proc/PID/smaps are not available Apache::SizeLimit resets it to 0 itself. 
> It can be reset by the user if he prefers using /proc/PID/statm before the 
> first size check.
> 
> If $USE_SMAPS is 1 /proc/PID/smaps are used. Otherwise the old /proc/PID/statm 
> is used.
+1

Any objections ?

---
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com