*BSD News Article 80803


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!nsw1.news.telstra.net!sa.news.telstra.net!vic.news.telstra.net!news.mira.net.au!inquo!nntp.uio.no!nntp.zit.th-darmstadt.de!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Too many open files
Date: 14 Oct 1996 22:11:24 GMT
Organization: Private BSD site, Dresden
Lines: 20
Message-ID: <53udqc$85v@uriah.heep.sax.de>
References: <53l5v1$ifn@news.eunet.si>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

lisko@sparc.eunet.si (Valentin Lisjak) wrote:

> I guess there's possiblity to change max_no of opened file descriptors
> but I couldn't find it in manuals, usenet, FAQs, ...

The `limit' (csh) or `ulimit' (sh) commands are your friend.

The default value of 64 is OPEN_MAX in <sys/syslimits.h>.  It's
properly #ifdef'ed, so you should be able to override it by

	options		"OPEN_MAX=256"

and recompiling the entire kernel from scratch.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)