🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #25034

INN internal fixed limit on incoming connections?

#25034
From: Charlie Reboot
Date: Thu, 08 Jan 1998 00:00
64 lines
4089 bytes
Platform in question is FreeBSD, has been tuned for an ungodly number of
possible open files, so this should not be a problem.  Software is CNFS
INN based on 1.5.1 with one or two local hacks which don't seem to be the
cause of what I see, now that I've looked in the logs.

Yesterday, after countless hours sans sleep, I started seeing a problem
where inn would simply get unresponsive to incoming connections and
ctlinnd commands.  This would happen after anywhere from a few minutes to
a few hours uptime.  However, innd was still processing those connections
which had already been established, although CPU usage was significantly
higher.

Today I watched to see if there was a point where innd would just stop
answering.  I first noted that I got up to 222 incoming connections, then
next time I checked, things were hung.  After a restart, several times I
watched as the number of connections increased yet ctlinnd returned within
typically 0.030s until 223 incoming connections were reached.  Then, soon
after, innd just stopped answering.

A view into the logs at one of these times reveals the following:

Jan  8 01:06:36 news-feed innd: marley.vszbr.cz connected 251 streaming allowed
Jan  8 01:06:36 news-feed innd: hopewell.mccc.edu connected 252 streaming allowed
Jan  8 01:06:36 news-feed innd: nntp05.primenet.com connected 253 streaming allowed
Jan  8 01:06:36 news-feed innd: news1.sprintisp.com connected 254 streaming allowed
Jan  8 01:06:36 news-feed innd: newsfeed.eerie.fr connected 255 streaming allowed
Jan  8 01:06:36 news-feed innd: marley.vszbr.cz connected 256 streaming allowed
Jan  8 01:06:38 news-feed innd: news1.sprintisp.com:254 closed seconds 2 accepted 0 refused 0 rejected 0
[This is probably because I set -i down from 0 to 223 max connections]
Jan  8 01:06:38 news-feed innd: newsfeed.eerie.fr:255 closed seconds 2 accepted 0 refused 0 rejected 0
Jan  8 01:06:38 news-feed innd: free:0 0 free but was in RRMASK
Jan  8 01:06:38 news-feed innd: sc1.scconsult.com:59 cant write Broken pipe

It appears that as soon as the 256th incoming connection (after you
include the internal descriptors plus additional feeds) is reached, in
spite of the fact than innd should be quite capable of handling far more
(and it needs to, dammit), some number cycles around to 0 or something and
I see that RRMASK error, and something goes on internally plus innd stops
responding to ctlinnd or new connections.

I'm lazy and don't want to look at the code yet.  However, this rather
puts a crimp into my plans of adding hundreds of new peers, each opening a
large number of parallel non-streaming connections to keep rejected
duplicate articles down to almost zero.

Anyone familiar with the internals of innd want to tell me what to tweak
here to fix this intolerable situation?  If not, I'll just re-invent your
wheel...

(This only really seems to be a problem now during peak luser hours, when
the lines are saturated and apparent response times are awful and it takes
lots of parallel connections to get anything done.  For now, I've set a
limit on incoming connections to 222, which is barely protection in case
connections are made as innd is blocked doing something else, and this
number of connections is regularly reached.)


Thanks,
Barry Bouwsma, Tele Danmark Internet
a limit of 65536 descriptors seems much more reasonable, hmmph


Technical Details
Message-ID: <Pine.BSF.3.96.980108023016.21255A-100000@coredump.int.tele.dk>
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

Show Full Headers
Complete Article Headers
Message-ID: <Pine.BSF.3.96.980108023016.21255A-100000@coredump.int.tele.dk>
Subject: INN internal fixed limit on incoming connections?
Date: Thu, 08 Jan 1998 00:00:00 +0000
From: Charlie Reboot <f00fc7c8@int.tele.dk>
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: 313803024
Mime-Version: 1.0
Reply-To: ag786@yfn.ysu.edu
Content-Type: TEXT/PLAIN; charset=US-ASCII
Organization: seeking hundreds more peers, apply within
Newsgroups: news.software.nntp