*BSD News Article 54233


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!fizban.solace.mh.se!paladin.american.edu!gatech!howland.reston.ans.net!newsfeed.internetmci.com!quanta.com!rsww
From: rsww@quanta.com (Ross S. W. Walker)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Too many open files in system
Date: 10 Nov 1995 09:12:03 GMT
Organization: Quanta Communications, Inc.
Lines: 35
Message-ID: <47v513$nvd@tempis.quanta.com>
References: <47kuf3$jpr@titan.ci.ua.pt>
NNTP-Posting-Host: quanta.quanta.com
X-Newsreader: TIN [version 1.2 PL2]

Fernando Cozinheiro (cooker@ci.ua.pt) wrote:
: We have installed our FTP server in one of our FreeBSD  systems.  All is
: running fine, but last night the system started to present the following
: error  message:  "Too many open files in  system".  We  suppose  that to
: solve the problem we need to recompile  the kernel,  using  different IO
: parameters...  But we can't locate the file to change them...


: Could anyone help us, please?
: Thanks in advance.

I think the option in your kernel config file, which if doesn't exist
should be created and located in /usr/src/sys/i386/conf, is:

options "MAX_OPEN=n"

Where n is the number of open files a process can have. The lint
program suggests 128 for a loaded news server. The more files per
process the more reserved buffers so don't get too carried away, or
you'd better order some more memory if you get a lot of ftps. If you
don't have a kernel config just copy the GENERIC and then add the option
and cut out the options/drivers you don't need to reduce kernel
bulkage.

Cheers,

Ross Walker

--
------------------------------------------------------------------------------
|  /\/   | Ross S. W. Walker (rsww@quanta.com)
|  \/\   |
| |   |\ | finger rsww@quanta.com for PGP key    _____________________________
| |___|/ |                                      |  Quanta Communications, Inc.
------------------------------------------------------------------------------