perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject [Fwd: [rt.cpan.org #18230] Apache::SizeLimit (shared mem pages) broken for bsd systems]
Date Sat, 18 Mar 2006 19:24:00 GMT


-------- Original Message --------
Subject: [rt.cpan.org #18230] Apache::SizeLimit (shared mem pages) broken
for bsd systems
Date: Sat, 18 Mar 2006 10:46:46 -0500 (EST)
From: Guest via RT <bug-mod_perl@rt.cpan.org>
Reply-To: bug-mod_perl@rt.cpan.org
To: undisclosed-recipients:;
References: <RT-Ticket-18230@rt.cpan.org>


Sat Mar 18 10:46:44 2006: Request 18230 was acted upon.
Transaction: Ticket created by guest
       Queue: mod_perl
     Subject: Apache::SizeLimit (shared mem pages) broken for bsd systems
       Owner: Nobody
  Requestors: martin@hybyte.com
      Status: new
 Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=18230 >


ApacheSizeLimit on bsd systems uses BSD::Resource to get the memory and
shared-pages size.
> sub bsd_size_check {
>    return (&BSD::Resource::getrusage())[2,3];
> }

this are (see BSD::Resource perldoc)
> 2      maxrss          maximum shared memory or current resident set
> 3      ixrss           integral shared memory

maxrss is in KB, but ixrss is not

ApacheSizelimit incurrectly assumes ixrss to be in KB

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message