Summary: UNIX error 24 (Too many open files)

From: Fabrice Guerini (carlyle!fabrice@uu.psi.com)
Date: Wed Aug 12 1992 - 03:37:26 CDT


I wrote:
>
> I am faced with the dreaded problem of too many open file descriptors.
> The error message mentioned in the Subject: line is output by a user
> package (namely INGRES) as follows:
>
> > open() failed with UNIX error 24 (Too many open files)
> > ::[2646, 005A6040]: Mon Jul 27 11:19:19 1992 E_DM9004_BAD_FILE_OPEN
> > Disk file open error on database:lomadb4, table:iidevices
> > pathname:/sd1/ingres/ingres/data/default/lomadb4 filename:aaaaaaai.t00
>
> The question is: how can I increase the number of file descriptors beyond
> the limit of 64 ?

As many of you pointed it out, the hard limit on file descriptors under
SunOS 4.1.2 (yes, I know, I forgot to mention which revision of the O.S.
I was running) is not 64, but 256. It is also possible to increase it to
1024 if needed, by getting SunDBE as an unbundled product.

This was best summarized by Glenn Satchell in the following response:

----- Begin Included Message -----

From: uupsi!fourx.Aus.Sun.COM!kalli!glenn (Glenn Satchell)
Date: Wed, 29 Jul 1992 08:06:12 EST

The simple method is to use a csh wrapper script around the ingres startup, eg

#!/bin/csh
limit descriptors 256
ingres startup goes here...
...

This will give you 256 descriptors. The default of 64 applies to the
bourne shell also, but there is no way to increase it in.

Other alternatives to think about are getting DBE which can increase
the number of descriptors up to 1024, but the application has to know
how to access these. Most of the databases work much better with DBE
installed.

Hope this helps,

regards,

Glenn Satchell
Unix Professional Services (Sydney Australia)
kalli!glenn@fourx.aus.sun.com

----- End Included Message -----

Guy Harris also mentioned that SunOS 5.0 allows 1024 descriptors right off
the bat.

Many thanks to:

Stan Barber tmc.edu!sob
Hal Stern sunne.East.Sun.COM!stern
Guy Harris auspex.com!guy
Doug Neuhauser perry.berkeley.edu!doug
Eckhard Rueggeberg ts.go.dlr.de!Eckhard.Rueggeberg
Martin Kraegeloh PRI-MU.Prime.COM!krm
Martin Kelly eeiua.ericsson.se!eeimkey
Kevin Sheehan fourx.Aus.Sun.COM!kalli!kevin
Jeff Nieusma stortek.com!Jeff_Nieusma
Susan Thielen irus.rri.uwo.ca!thielen
Dieter Muller merlin.RootGroup.COM!dworkin
Mike Raffety sbcoc.com!miker
Kam Tim Chan tcs.com!tim
Dean Grover vulcan1.hac.com!grover
Michael Sullivan uunet.UU.NET!trdlnk!mike
Glenn Satchell fourx.Aus.Sun.COM!kalli!glenn
Kevin W. Hammond kwhpc.caseng.com!hammond
Bengt Stahlknapp eras177.ericsson.se!erabst
David Gunn snowbird.Central.Sun.COM!ldavis!woden!gunn

--
Fabrice



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:47 CDT