Re: [netatalk-admins] Re: Problems with "Too many files open" [on Solaris 2.5.1]


Subject: Re: [netatalk-admins] Re: Problems with "Too many files open" [on Solaris 2.5.1]
From: Hanno Foest (h.foest@hbk-bs.de)
Date: Wed Dec 03 1997 - 14:12:22 EST


Hi.

> > up the system-wide max number of open files and see if you still have
> > problems. you need to do it system-wide because each afpd session runs
> > as a particular user.
>
> Can anyone tell me exactly how to do this under Solaris 2.5.1? Is
> there some Solaris header file I need to tweak?

>From the Solaris 2 FAQ, http://www.wins.uva.nl/pub/solaris/solaris2.html:

Solaris 2.x supports a virtually unlimited number of open
filedescriptors [...].

3.43) How can I increase the number of file descriptors per process?

In 2.3 in earlier this requires poking the kernel. In Solaris 2.4+, this
can be accomplished by adding the following lines to /etc/system:

        * set hard limit on file descriptors
        set rlim_fd_max = 4096
        * set soft limit on file descriptors
        set rlim_fd_cur = 1024

Raising the soft limit past 256 may confuse certain applications,
especially BCP applications. Raising the limit past 1024 may confuse
applications that use select().

Programs using stdio or even library calls that use stdio may break when
they have more than 256 files open as that is the stdio limit. Programs
using many filedescriptors should try and reserve a number of low
numbered file descriptors for use by stdio.

HTH.

Hanno



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:28:20 EST