perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Prime <>
Subject Re: [mp2] Apache2::SizeLimit should be using $s->rss, not $s->size for Linux::Smaps
Date Tue, 02 Feb 2010 22:17:22 GMT
The version of Apache::SizeLimit in subversion is quite different from 
the currently released version.  Attached is this patch, but reworked to 
apply to the version in SVN.

If there are no objections, I will commit this, it seems like a pretty 
straight forward change.


Max Kanat-Alexander wrote:
> 	All of my processes kept exiting with a report that they had a 300M
> unshared size, which was clearly untrue, even from looking at top. After
> some investigation, I discovered that Apache2::SizeLimit was calling
> $s->size on the Linux::Smaps object, when instead it should be returning
> $s->rss as the process size.
> 	Attached is a one-line patch to fix the issue.
> 	Also, if you're interested in proof that this is right, I've attached a
> short .cgi file that you can load under mod_perl, with Linux::Smaps
> installed, to see process sizes and the return values of all of the
> Smaps accessors.
> 	-Max

View raw message