🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #20553

Re: Too many open files - throttling

#20553
From: Jerry Aguirre
Date: Fri, 15 Aug 1997 00:00
58 lines
3072 bytes
In article <5rst0f$mnv$1@synthemesc.insync.net>,  <aos@insync.net> wrote:
>Obi-Wan <bvh@inetnebr.com> wrote:
>> Server throttled Too many open files writing article file -- throttling
>
>You likely need to expand the maximum number of file descriptors (which I
>believe defaults to 64).

Granted that this is good advise for a large site but on a typical site
the problem is more likely to represent other misconfigurations.

If they want to "look before shooting" then they could take a few
minutes to run:

	ctlinnd name ''

and count up the various uses of file descriptors.  Likely two things
are happening.  One is that you have so many incomming feeds, and they
are running so many incomming parallel connections, that they use up
a lot of file descriptors.  Regardless of how many file descriptors you
are configured for may want to limit incomming connections using something
like:

	ctlinnd param i 32

and then modify your rc.news script to start innd with the option "-i 32"
to make the change permanent.  (There are 3 different ways to change
parameters like this one, compile, command line, and ctlinnd.)  Or do
you really think a mis-configuration on other sites should be able to
kill your server?

The second common usage of file descriptors is for outgoing feeds.  The
default nntpsend/innxmit uses one file descriptor for each feed.  If you
split a feed to increase thruput then you use additional file
descriptors.

INN has several mechanisms to minimize file descriptor usage.  There are
"exploders" that you can run so that one innd file descriptor gets split
by the exploder process into several files.  You could work this down
so only a single file descriptor gets used.

You can run nntplink in either funnel or logfile mode.  This means only
one (or zero) file descriptors total regardless of the number of
outgoing feeds.

Or you can run innfeed and use only a single file descriptor and a
single outgoing process.

Why not just increase the file descriptors?  The above uses of innd's
file descriptors have other side effects.  By triming down their usage
they will likely get performance benifits beyond what simply "cranking
up the knob" will achieve.

If the cause turns out to be that you really do have, and desire, a
large number of incomming feeds then certainly the answer is to increase
the number of available file descriptors.

Technical Details
Message-ID: <5t0fsl$apv$1@pluto.whowhere.com>
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
References: <5rss1h$na2$1@owl.inetnebr.com> <5rst0f$mnv$1@synthemesc.insync.net>

Show Full Headers
Complete Article Headers
Message-ID: <5t0fsl$apv$1@pluto.whowhere.com>
Subject: Re: Too many open files - throttling
Date: Fri, 15 Aug 1997 00:00:00 +0000
From: jerry@rigel.whowhere.com (Jerry Aguirre)
References: <5rss1h$na2$1@owl.inetnebr.com> <5rst0f$mnv$1@synthemesc.insync.net>
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: 264260384
Summary: Causes and fixes of "too many open files"
Organization: WhoWhere?; Mt. View, CA USA
Newsgroups: news.software.nntp