🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #10580

Re: problem with innfeed 0.9.1

#10580
From: Jeffrey C. Ollie
Date: Fri, 30 Aug 1996 00:00
88 lines
4812 bytes
-----BEGIN PGP SIGNED MESSAGE-----

On Fri, 30 Aug 1996 21:43:13 +0200, krem�sk� HO��ICE <r00t@Radio.CZ> wrote:
>On Thu, 29 Aug 1996, Jeffrey C. Ollie wrote:
>
>> I decided to give innfeed 0.9.1 a try on our system. Things work well
>> until innd flushes the feed and tries to start a new copy of
>> innfeed. The old feed takes so long to quit and release its locks
>> (sometimes up to 5 minutes) that the new feed can't grab them.
>
>    Not quite.  The old feed will release its locks quickly, but then
>return to sending the backlogged data for minutes after (from here, I
>routinely see much more than 5 minutes).  Unfortunately, the new innfeed
>which is spawned is not always able to lock the feeds at times, like when
>the server is being pounded into the ground and the original innfeed can't
>get around to releasing the locks fast enough due to high system activity,
>while a third innfeed, spawned pretty much immediately, is able to lock
>the feeds.  When I'm not pounding the server, I don't see this problem no
>matter how much I flush and abuse it.

Yes, this sounds like a clearer discription of the problem - when I
notice that innfeed has gotten into this state there are no lock
files. Perhaps a band aid would be a shell script that slept for a few
seconds to give the original innfeed time to release it's locks before
exec'ing the real innfeed. I'll give that a try... yes, that seems to
help quite a bit. I'll have to keep an eye on that over the weekend.

>> Also, the code that is supposed to only log unconfigured peers once is
>> horribly broken.
>> [...]
>> In one case, innfeed logged an unconfigured peer over
>> 50,000 times before I killed it off.
>
>    If you note an unconfigured peer, ctlinnd flush innfeed! should -- if
>your server is relatively peaceful -- establish all the connections again,
>without the danger inherent in killing a running innfeed.

Yeah, but according to the comments in the code, innfeed is only
supposed to log an unconfigured peer once rather than log it every
time that innd sends an article destined for that peer (and for a full
feed that happens a LOT). But the code is broken - probably because
there are some variables that are not initialized. My recall of the C
standard is fuzzy but I seem to recall that the value of uninitialized
variables is implementation dependent. If that is the case it looks
like innfeed is being developed on a system that initializes vaiables
with zeros. It looks like the code would work if that is the
case. However, I'll bet that Digital UNIX's C compiler is initializing
those variable with whatever random garbage is in memory at start up
time.

>    Ease up on your server a bit, if you can.  While it won't solve these
>problems, it should minimize their occurrences.  I would expect that in a
>case such as you have observed, innfeed should eventually grab the lock
>(which will probably be free the second or third try), but until that
>time, spool the articles in a tape file of some sort (host.output,
>host.input, or just host, depending on what exists and what has been
>locked).

Next week I'm installing a second SCSI card in my server and adding
another 4G drive - that should help my system's performace
tremendously.


[A copy of the headers and the PGP signature follow.]

Date: Fri, 30 Aug 1996 16:36:22 -0500
Newsgroups: news.software.nntp
Organization: INS Info Services, Des Moines, IA, USA
References: <slrn452bm61.nen.jeffo@worf.netins.net> <Pine.SGI.3.95.960830205431.28979B-100000@voskovec.radio.cz>
Subject: Re: problem with innfeed 0.9.1

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: AnySign 1.2 - A Python tool for PGP signing e-mail and news.

iQCVAwUBMide3ZwkOQz8sbZFAQHBKQP/Z3AjWF60GfHv/errA16RE0Fq1MGJbVZY
WdFKoTje6CoCl++Cq5vZSOxaWaKq9s8ea3hVTaxTtdJRAGXcf5L+V8/N8ye+Xeo0
j+saRwRvJQCPT2w4CshA69lz56AeiKNY6PvOG0ITPAFiO+89vfnk83akUUxAx+Ba
ZWeubZCX95s=
=Xnbo
-----END PGP SIGNATURE-----
-- 
Jeffrey C. Ollie
Iowa Network Services System Administrator


Technical Details
Message-ID: <slrn452enn3.1c0.jeffo@worf.netins.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
References: <slrn452bm61.nen.jeffo@worf.netins.net> <Pine.SGI.3.95.960830205431.28979B-100000@voskovec.radio.cz>

Show Full Headers
Complete Article Headers
Message-ID: <slrn452enn3.1c0.jeffo@worf.netins.net>
Subject: Re: problem with innfeed 0.9.1
Date: Fri, 30 Aug 1996 00:00:00 +0000
From: jeffo@worf.netins.net (Jeffrey C. Ollie)
References: <slrn452bm61.nen.jeffo@worf.netins.net> <Pine.SGI.3.95.960830205431.28979B-100000@voskovec.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-mail
X-Deja-AN: 177499356
Distribution: inet
Content-type: text/plain; charset=iso-8859-1
Organization: INS Info Services, Des Moines, IA, USA
Mime-version: 1.0
Newsgroups: news.software.nntp