Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sun Solaris 2.6 Open File Descriptors Limit

Status
Not open for further replies.

johnrpega

Vendor
Jul 2, 2001
1
US
I have searched high and low to find the documentation that spells out the open file descriptors limitation for Sun Solaris 2.6 OS without success. Can anyone please direct me to the doc that spells this out in detail. I understand the limit is 1023 but can't find the straight skinny. Also - was this increased in 2.7? Your assistance is greatly appreciated.
 
The system could use "limit" or "ulimit" check man pages on both.
 
Hi,

see:

rlim_fd_max

Description
"Hard" limit on file descriptors that a single process might have open. To override this limit requires superuser privilege.

Data Type
Signed integer

Default
1024

Range
1 to MAXINT

Units
File descriptors

Dynamic?
No

Validation
None

When to Change
When the maximum number of open files for a process is not enough. Note that other limitations in system facilities can mean that a larger number of file descriptors is not as useful as it might be:

A 32-bit program using standard I/O is limited to 256 file descriptors. A
64-bit program using standard I/O can use up to 2 billion descriptors.

select(3C) is by default limited to 1024 descriptors per fd_set. Starting with the Solaris 7 release, 32-bit application code can be recompiled with a larger fd_set size (less than or equal to 65,536). A 64-bit application sees an fd_set size of 65,536, which cannot be changed.

ciao, mbr
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top