open file limits/ perl (was: fork/exec vs system)
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > open file limits/ perl (was: fork/exec vs system)




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    open file limits/ PERL (was: fork/exec vs system)  
Rainer Weikusat


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-26-07 12:20 PM

jt@toerring.de (Jens Thoms Toerring) writes:
> Connie <yeconnie@gmail.com> wrote: 
>
> How do you determine the upper limit in C and Perl?  There are soft
> and hard (per-process) limits and system-wide versus per-process
> limits - are you sure you're asking for the same thing in C and Perl?
> 1024 looks like it could be the value for the per-process limit while
> 10371 might be the system-wide limit.

It's weirder than that: On the system where I tried (Debian Stable/
Linux 2.6.20-rc3), the first script below prints 1024 after having
done a getrlimit-call and the second 131072, apparently pulling
the number out of some hat.

---------------
use POSIX;

printf "%s\n", POSIX::sysconf(POSIX::_SC_OPEN_MAX);
---------------

---------------
use POSIX qw(sysconf);

printf "%s\n", POSIX::sysconf(POSIX::_SC_OPEN_MAX);
---------------





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:14 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register