Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.unix.wizards Subject: Re: Out of descriptors, out of luck? Message-ID: <7292@auspex.auspex.com> Date: 21 Apr 91 00:24:08 GMT References: <195@bria.UUCP> <63777@bbn.BBN.COM> Organization: Auspex Systems, Santa Clara Lines: 20 >Many modern Unix systems support the setrlimit(). If the man page for >setrlimit() says that it supports RLIMIT_NOFILE, then you can up the >limit for the number of open files. Sun O/S >=4.0 and HP-UX >=8.0 are >examples of two operating systems which support this facility. HP-UX >= 8.0 may be a UNIX flavor that supports RLIMIT_NOFILE, but SunOS >= 4.0 and < 4.1 is *NOT* an example of such a system - that showed up in 4.1, not in 4.0. System V Release 4 is another example of a UNIX flavor that supports RLIMIT_NOFILE. It shouldn't be too surprising that SunOS 4.1 and S5R4 do that the same way; however, the fact that an organization not in the S5R4 camp followed in Sun's and AT&T's footsteps, rather than inventing something different but not better, is somewhat refreshing - perhaps there's hope for the UNIX community yet. :-) Note that you will probably only be able to raise the soft limit for RLIMIT_NOFILE (which, at least in SunOS 4.1 and S5R4, specifies how many new file descriptors you can get) to the hard limit; you may not be able to affect the hard limit at all.