Thread View: news.software.nntp
3 messages
3 total messages
Started by Michael Beckmann
Thu, 12 Sep 1996 00:00
INN 1.4unoff4 trouble with too many files open
Author: Michael Beckmann
Date: Thu, 12 Sep 1996 00:00
Date: Thu, 12 Sep 1996 00:00
40 lines
1840 bytes
1840 bytes
Hello, I need some help with INN 1.4unoff4 . I have installed it on a FreeBSD 2.2 machine (960801-SNAP). I receive a streaming feed from one site, and after a while it throttles with the message: 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... I was told it might have something to do with getrlimit. I found that in the file config/config.data . I changed two of the options related to this. I tried ## How to get number of available descriptors? ## Pick GETDTAB, GETRLIMIT, SYSCONF, ULIMIT, or CONSTANT. #### =()<FDCOUNT_STYLE @<FDCOUNT_STYLE>@>()= FDCOUNT_STYLE GETRLIMIT ## If greater than -1, then use [gs]etrlimit to set that many descriptors. ## If -1, then no [gs]etrlimit calls are done. #### =()<NOFILE_LIMIT @<NOFILE_LIMIT>@>()= NOFILE_LIMIT 1 I also tried FDCOUNT_STYLE SYSCONF and FDCOUNT_STYLE GETDTAB but it didn't help. It still throttles. Has anyone seen this problem before ? Any ideas ? Michael Beckmann
Re: INN 1.4unoff4 trouble with too many files open
Author: 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
Re: INN 1.4unoff4 trouble with too many files open
Author: Michael Beckmann
Date: Mon, 16 Sep 1996 00:00
Date: Mon, 16 Sep 1996 00:00
23 lines
1357 bytes
1357 bytes
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 problem was solved. It was not a kernel or OS problem, it was a resource limitation in the /bin/sh that executes the rc.news script. The shell was set to a limit of 64 open files (ridiculous). I added some ulimit statements in the beginning of rc.news, and now the problem is gone. The limit of maximum processes also needed to be increased. This helped: ulimit -n 1000 ulimit -u 1000 Michael
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