File descriptors are retired when the file is closed or the process terminates. Opens always choose the lowest-numbered file descriptor available. Available file descriptors are allocated as follows (both parameters have a maximum setting of 65536 in current versions of Solaris 10):
- rlim_fd_cur: Prior to Solaris 10, it was dangerous to set this value higher
than 256 due to limitations with the
stdio
library. If programs require more than 256 file descriptors, they should usesetrlimit
directly. - rlim_fd_max: Prior to Solaris 10, it was dangerous to set this value higher
than 1024 due to limitations with
select.
If programs require more than 1024 file descriptors, they should usesetrlimit
directly.
No comments:
Post a Comment