You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Stas Bekman <st...@stason.org> on 2004/01/08 22:59:05 UTC

Re: [Fwd: mod_perl-1.99_11 on HP-UX 11.22]

TJ?

On Nov 18 2003 Stas Bekman wrote:
> Stas Bekman wrote:
> 
>> forwarding this to where this message belongs
>>
>> -------- Original Message --------
>> Subject: mod_perl-1.99_11 on HP-UX 11.22
>> Date: Tue, 18 Nov 2003 15:16:49 -0800 (PST)
>> From: TJ Saunders <tj...@ActiveState.com>
>> To: stas@stason.org
>>
>>
>> Hello, Stas.  I'm building mod_perl-1.99_11 using Apache 2.0.48 and perl
>> 5.8.2 on HP-UX 11.22 using HP's C compiler -- everything built just fine.
>> However, when I went to run the mod_perl test suite, quite a few of the
>> tests failed.  The error in the t/logs/error_log was the "Can't locate 
>> foo
>> in @INC (...)" message, which unfortunately is not verbose enough to
>> pinpoint the culprit.
>>
>> Using tusc, I eventually tracked it down to open() returning EMFILE for
>> some of the test suite's require()s.  Turns out the default number of
>> per-process open files in the shell was quite low: 60.  Setting 
>> 'ulimit -n
>> 1024' made the tests pass successfully.
>>
>> If possible, could this checking/setting of this resource limit be 
>> done by
>> TestRun.pm, similarly to what is done for the core size limit, so that it
>> doesn't bite other developers?
> 
> 
> Thanks for tracing this problem, TJ. I guess we could do what you 
> propose (as we already use ulimit to allow core files), though I'm not 
> entirely sure that it's safe to hardcode it as 1024. What if the 
> system's hard limit is set to a lower number? What if someone else's 
> test suite will need to open more than 1024 files? (since Apache-Test is 
> used by many other projects)
> 
> Therefore I think we should set it to one of the following: hard,  
> soft,  or unlimited. Probably "hard" is the best choice. I'm not sure 
> how cross-platform this is, but that's what my bash manpage on linux 
> suggests.  Though it doesn't see to work for -n.
> 
> Of course one could check /proc/sys/fs/file-nr but again I don't think 
> this is cross-platform.
> 
> Further suggestions are very welcome.

__________________________________________________________________
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


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