On Mar 16, 2005, at 6:04 PM, abh wrote:
>
>> 2. I have poked around in the Posix standard for the maximum valid
>> value for a file descriptor, without success. The Posix client
>> library assumes that 65K is the maximum value a file descriptor can
>> take on. Is this limit from the Posix standard, or is it based on
>> "nobody will ever use that many files descriptors"?
> As afar as I know, the actual value is arbitrary and was never cast in
> stone. My choosing 64k as the high watermark seemed reasonable since
> no one ever sets the system hard limit to be any greater than that. I
> suppose I could use the hard limit to determine the turn-over. On the
> other hand, are you saying that my file are causing grief for some
> other applications?
No. I was considering the theoretical possibility and wondering if
there was a safe way to ensure it can't happen without substantial
overhead.
--
Gregory J. Sharp email: [log in to unmask]
Wilson Synchrotron Laboratory url:
http://www.lepp.cornell.edu/~gregor
Dryden Rd ph: +1 607 255 4882
Ithaca, NY 14853 fax: +1 607 255 8062
|