On Thu, Mar 29, 2012 at 10:24:27AM -0430, Andres Perera wrote: | > Instead, you'll crank your file limits to... let me guess, unlimited? | > | > And when you hit the system-wide limit, then what happens? | > | > Then it is our systems problem, isn't it. | > | | i am not sure if you're a suggesting that each program do getrlimit | and acquire resources based on that, because it's a pita
Gee whiz, writing programs is hard! Let's go shopping! | what they could do is offer a reliable estimate (e.g. 5 open files per | tab required) Or just try to open a file, *CHECK THE RETURNED ERROR CODE* and (if any) *DEAL WITH IT* Note that on a busy system, the ulimit is not the only thing holding you back. You may actually run into the maximum number of files the system can have open at any given time (sure, that's also tweakable). Just doing getrlimit isn't going to be sufficient... Paul 'WEiRD' de Weerd -- >++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+ +++++++++++>-]<.>++[<------------>-]<+.--------------.[-] http://www.weirdnet.nl/