Article View: news.software.nntp
Article #46744Re: too many open files in system
From: Russ Allbery
Date: Wed, 31 May 2000 00:00
Date: Wed, 31 May 2000 00:00
57 lines
3383 bytes
3383 bytes
Peter Fastr๏ฟฝ <982623pf@hogent.be> writes:
> Big problem with our newsserver...It's a while he's working fine, but
> suddenly he says the following (/var/log/messages):
> rejected Too many open files in system writing article file --
> throttling
> Can anyone help us out please...
<http://www.eyrie.org/~eagle/faqs/inn.html#3.4>:
Subject: 3.4. INN is running out of file descriptors
Also from INSTALL in the latest development version:
INN likes to use a lot of file descriptors, particularly if you have a
lot of peers. Depending on what your system defaults are, you may
need to make sure the default limit is increased for INN (particularly
innd and innfeed). This is vital on Solaris, which defaults (at least
as of 2.6) to an absurdly low limit of 64 file descriptors per
process.
One way to increase the number of file descriptors is to set
rlimitnofile in inn.conf to a higher value. This will cause
startinnfeed and inndstart, the setuid root wrapper scripts that start
innfeed and innd respectively, to increase the file descriptor limits
before they run the regular INN programs. Note, however, that you
won't be able to increase the limits above the hard limits set by your
operating system; on some systems, that hard limit is 256 file
descriptors (Linux, for example). On others, like Solaris, it's 1024.
Increasing the limit beyond that value may require serious system
configuration work (on Linux, patching and recompiling the kernel; on
Solaris 2.6 or earlier, the limit cannot be increased beyond 1024
without breaking select() and thereby breaking all of INN).
256 file descriptors will probably be enough for all but the largest
site. There is no harm in setting the limits higher than you actually
need (provided they're set to something lower than or equal to your
system hard limit). 256 is therefore a reasonable value to try.
If you're installing INN on a Solaris system, particularly if you're
installing it on a dedicated news server machine, it may be easier to
just increase the default file descriptor limit across the board for
all processes. You can do that by putting the line:
set rlim_fd_cur = 256
in /etc/system and rebooting. You can increase it all the way to 1024
(and may need to if you have a particularly large site), but that can
cause RPC and some stdio applications to break. It therefore probably
isn't a good idea on a machine that isn't dedicated to INN.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<yl66rvyoti.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<39324805.6E73094A@hogent.be>Show Full Headers
Complete Article Headers
Message-ID: <yl66rvyoti.fsf@windlord.stanford.edu> Subject: Re: too many open files in system Date: Wed, 31 May 2000 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <39324805.6E73094A@hogent.be> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 629403472 Content-Transfer-Encoding: 8bit Organization: The Eyrie Content-Type: text/plain; charset=iso-8859-1 User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne) Mime-Version: 1.0 Newsgroups: news.software.nntp