Skip Menu |

This queue is for tickets about the mod_perl CPAN distribution.

Report information
The Basics
Id: 18230
Status: resolved
Worked: 5 min
Priority: 0/
Queue: mod_perl

People
Owner: pgollucci [...] p6m7g8.com
Requestors: martin [...] hybyte.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.29
Fixed in: (no value)



Subject: Apache::SizeLimit (shared mem pages) broken for bsd systems
ApacheSizeLimit on bsd systems uses BSD::Resource to get the memory and shared-pages size. Show quoted text
> sub bsd_size_check { > return (&BSD::Resource::getrusage())[2,3]; > }
this are (see BSD::Resource perldoc) Show quoted text
> 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
From man getrusage on my FreeBSD 6.0 system ru_ixrss an ``integral'' value indicating the amount of memory used by the text segment that was also shared among other pro- cesses. This value is expressed in units of kilobytes * ticks-of-execution. Ticks are statistics clock ticks. The statistics clock has a frequency of sysconf(_SC_CLK_TCK)