🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Obi-Wan Fri, 01 Aug 1997 00:00
Too many open files - throttling
#20089
Author: Obi-Wan
Date: Fri, 01 Aug 1997 00:00
25 lines
1373 bytes
I'm getting the following error on our Solaris 2.5 / INN 1.5.1 box:

owl# ctlinnd mode
Server throttled Too many open files writing article file -- throttling
Allowing remote connections
Parameters c 14 i 0 (0) l 1000000 o 51 t 300 H 2 T 60 X 0 normal specified
Not reserved
Readers separate enabled

This first happened soon after the machine spontaneously crashed
and had to be rebooted with an fsck.  My version of the INN FAQ (which
is a month or two old) contains no mention of this error.  What does
it mean, and why does it keep showing up?

Email replies are prefered, but not required.

				-- Obi-Wan

--
Ben "Obi-Wan" Hollingsworth                         email:  bvh@inetnebr.com
Vice President and System Administrator             voice:  (402)434-8680
  Internet Nebraska -- Nebraska's on-ramp to the information superhighway

Re: Too many open files - throttling
#20046
Author: Juan Carlos Castro
Date: Fri, 01 Aug 1997 00:00
34 lines
2082 bytes
On 1 Aug 1997, Obi-Wan wrote:

> I'm getting the following error on our Solaris 2.5 / INN 1.5.1 box:
> 
> owl# ctlinnd mode
> Server throttled Too many open files writing article file -- throttling
> Allowing remote connections
> Parameters c 14 i 0 (0) l 1000000 o 51 t 300 H 2 T 60 X 0 normal specified
> Not reserved
> Readers separate enabled
> 
> This first happened soon after the machine spontaneously crashed
> and had to be rebooted with an fsck.  My version of the INN FAQ (which
> is a month or two old) contains no mention of this error.  What does
> it mean, and why does it keep showing up?
> 
It means you are running out of file descriptors.  A file descriptor
is used for every incoming connection and every outgoing channel and 
file feed in your newsfeeds file.  

A quick fix for this is to put "ulimit -n 1024" at the beginning
of your rc.news file.  This will increase the number of file descriptors.

To make sure that it took effect, check the valiue afther the "o" in
a ctlinnd mode command.  It should be 1011 rather than 51.

----
J. Carlos Castro (JCC31) -  Consulting for your Internet Needs
work --president@netcrusader.net--> http://www.netcrusader.net
http://www.jcas.com <-------------j@jcas.com------------- play


Re: Too many open files - throttling
#20064
Author: aos
Date: Fri, 01 Aug 1997 00:00
18 lines
1160 bytes
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).

Add the following line to your /etc/system, then reboot:
set rlim_fd_cur=0x3ff

That'll raise your maximum file descriptors to 1023.

-- 
Andrew Smith -- Sysadmin, Insync Internet Services   | "Whatever you do, take
PGP: 2A 50 AE 6D 51 53 18 77 F7 6C E9 2E E9 E1 59 2C | care of your shoes."
     (finger -l aos@insync.net for full key)         |       - Tom Marhsall

Re: Too many open files - throttling
#20553
Author: 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.

Re: Too many open files - throttling
#20727
Author: Julio Sanchez
Date: Wed, 20 Aug 1997 00:00
39 lines
2300 bytes
jerry@rigel.whowhere.com (Jerry Aguirre) writes:

> 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

When doing this it is sometimes convenient to except a few feeds from
the restriction (local posts, local mail-to-news gateways, even some
feeds considered "special", etc.).  This is, of course, controlled
with the help of hosts.nntp.nolimit (q.v.).  Unfortunately, a subtle
bug has inhabited INN for a long time in this area and it does not
work.  I seem to remember that a kludge that fixes this is included in
the 1.6 betas.

In the specific case commented, since we are worried about INN
throttling, we would have to set param i slightly lower than the
absolute maximum so that there is some breathing room left for those
special feeds.  When our worries come from memory use, for instance,
or fighting bozos that have jumped to innfeed opening 8 and 10
parallel connections without understanding the meaning of the
different parameters in it, param i is probably much lower than the
absolute max connection limit, so it is not a problem.

It is clear that the mechanism in INN is not flexible enough to
express some complex scenarios, but, if you have just a few incoming
feeds, you can get a long way with it.  At least, I used to.

Julio

-- 
Julio Sanchez, SGI Soluciones Globales Internet
Tel: (91) 804 28 37 Fax: (91) 804 14 05  WWW: http://www.esegi.es
jsanchez@esegi.es jsanchez@gmv.es
 PGP Key fingerprint =  E5 29 93 6F 41 4E 00 E2  90 11 A1 8C 72 D0 DE 71 

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads