Subject: Re: [netatalk-admins] pre-a17 available (my patches to netatalk)
From: Mario Klebsch DG1AM (mkl@buster.rob.cs.tu-bs.de)
Date: Wed Oct 08 1997 - 02:23:00 EDT
Hi!
>Seems to me that CodeWarrior can not be opening more than 256 file
>simultaneously. This error occurs in less than 2 seconds. This "-42" error
>occurs if I use AppleTalk or TCP as the transport protocol.
Does this mean, you have 256 open files on the solaris server, when
this error occurs? Did you try to increase the number of descriptors
per process on the solaris system?
This is one of the topycs on the squid web cache related mailing
lists, that you have to increase the number of descriptors up to
several tousands to let the cache run in a heavily loaded environment.
So, there is a limit of file descriptors per process in solaris, and
it can be changed. perhaps you are hitting this limit.
>I have experimented with setting fd_max and fd_current
^^^^^^ ^^^^^^^^^^
>in /etc/system, but no luck.
>From the Solaris FAQ:
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.
Have yoy tried lsof -p <pid of afpserver> when you are hitting the
limit? This way you can find out, how many open descriptors the
afpserver really does have.
73, Mario
-- Mario Klebsch, DG1AM, M.Klebsch@tu-bs.de +49 531 / 391 - 7457 Institut fuer Robotik und Prozessinformatik der TU Braunschweig Hamburger Strasse 267, 38114 Braunschweig, Germany
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:26:51 EST