Article View: news.software.nntp
Article #10840Re: INN 1.4unoff4 trouble with too many files open
From: kremžská HOŘČICE
Date: Fri, 13 Sep 1996 00:00
Date: Fri, 13 Sep 1996 00:00
72 lines
3671 bytes
3671 bytes
On Thu, 12 Sep 1996, Michael Beckmann wrote:
> Server throttled Too many open files writing article file -- throttling
>
> This is apparently not an OS limitation, because I have compiled my
> kernel with MAXUSERS set to 256 and raised the maximum number of open
> files to 20000 with sysctl...
This might not help you too much, but maybe it will help others in the
same situation.
Your innd news.notice log will tell you how many open file descriptors
INN thinks it can have -- above this, it will self-throttle -- at each
startup of innd. Look for a line at startup time like
Sep 13 02:10:07 4H: innd: ME descriptors 200
I haven't followed this through all the header files here, such as
limits.h, but it happens to match nicely the line
stdio.h:#define _IORW 0200 /* opened for reading and writing */
The number of files that INN has open at any given time can be found
by the command
ctlinnd name ''
There will be some fixed files open, plus a file for each outgoing
batch you're writing, and a file for each incoming connection at the time
you give the command.
Your news.daily summary will list these files, as well as tell you the
number of connections you are limited to as the i parameter:
Parameters c 14 i 60 (16) l 1000000 o 187 t 300 normal specified
^^^^
I have started innd with the -i 60 parameter, but I could easily
increase it to much more without having the server throttle. When the
number of connections from outside reaches the value of the i parameter,
any further connections will be rejected instead of throttling the server.
Note that the ``o'' parameter above is also described in the man page
for innd:
To limit the number of files that will be kept open for
outgoing file feeds, use the ``-o'' flag. The default is
the number of available descriptors minus some reserved
for internal use.
Because most of my outgoing feeds are via innfeed, with a few other
local channel feeds, it appears that I could not limit the number of
incoming connections to 190 safely, while 180 should be safe.
You can see what effect your changes have on the number of descriptors
INN thinks it has available. If you run into throttling problems, you can
also see at what point you should limit connections. If you have a lot of
outgoing feeds you are writing batch files for, if you can replace all the
files with a single process, you will free that many descriptors for more
incoming connections.
This is the way I understand it, although you should not assume that I
know what I'm talking about ever. Corrections would be welcomed. While
it doesn't exactly answer your question, maybe there will be useful
information here, for someone at least.
Barry Bouwsma
<barryb@tuke.sk>
wandering vagrant news admin in Czech Republic
Technical Details
Message-ID:
<Pine.SGI.3.95.960913100959.4050D-100000@cimrman.radio.cz>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:
<32383AB8.24FA@nacamar.de>Show Full Headers
Complete Article Headers
Message-ID: <Pine.SGI.3.95.960913100959.4050D-100000@cimrman.radio.cz> Subject: Re: INN 1.4unoff4 trouble with too many files open Date: Fri, 13 Sep 1996 00:00:00 +0000 From: kremžská HOŘČICE <core@Radio.CZ> References: <32383AB8.24FA@nacamar.de> 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: 180336183 Content-type: TEXT/PLAIN; charset=US-ASCII Organization: Radio Praha -- Cesky Rozhlas 7 Mime-version: 1.0 Reply-to: Barry.Bouwsma@tuke.sk Newsgroups: news.software.nntp Nntp-posting-user: core