🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Jeffrey C. Ollie Thu, 29 Aug 1996 00:00
problem with innfeed 0.9.1
#10539
Author: Jeffrey C. Ollie
Date: Thu, 29 Aug 1996 00:00
51 lines
2649 bytes
-----BEGIN PGP SIGNED MESSAGE-----

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.

Also, the code that is supposed to only log unconfigured peers once is
horribly broken. When innfeed can't grab locks it doesn't configure
the peer (even though it may appear in innfeed.conf). When innfeed
sees a peer that it doesn't know about coming from innd it calls a
function in innlistener.c to log it. That fuction is supposed to keep
track of unconfigured peers so that it only gets logged once. However,
the code to do that is broken (probably because that section of code
is replete with uninitialized variables) and my logs fill up with
error messages.  In one case, innfeed logged an unconfigured peer over
50,000 times before I killed it off.

The system in question is a DEC AlphaServer 1000 running Digital UNIX
3.2d and inn 1.4unoff4 plus innfeed 0.9.1. There are about 30 feeds
(yes, I know that that is too many) of varying size ranging from full
feeds of 19,000+ groups to feeds with just a few groups.  I only fed
innfeed articles smaller than 25K because I saw here that innfeed can
run out of memory if it has to deal with large articles. Articles
larger than 25K are sent separately via innxmit.


[A copy of the headers and the PGP signature follow.]

Date: Thu, 29 Aug 1996 12:51:49 -0500
Newsgroups: news.software.nntp
Organization: INS Info Services, Des Moines, IA, USA
Subject: 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.

iQCVAwUBMiXYupwkOQz8sbZFAQHFLgP/SukGEVGdfykcVJSD7SBxykiLMVJ1h9bX
tOgVGSx1RElZAXRJkhKgSQvFKatIi8lQYT6w76Jtw/cS1v/0quIKSoXAxGd6NONC
7SZ0hbaORixJp1l2wFh/4ARIvwifIJJC3hA/H3r+Y+AeESAxpLZpqkcWvoWKpsu8
51WrfXkMmsE=
=Aa7Q
-----END PGP SIGNATURE-----
-- 
Jeffrey C. Ollie
Iowa Network Services System Administrator


Re: problem with innfeed 0.9.1
#10568
Author: kremžská HOŘČICE
Date: Fri, 30 Aug 1996 00:00
86 lines
5454 bytes
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.

    At other times, when I'm merely pummeling the server, I'll have only a
few unconfigured peers, with the majority of them set up and running. 

    Your lingering innfeed will hang around until it's done sending the
articles after releasing the locks, then it will close the connection.  If
that connection is idle (no articles pending), it should close quickly. 
If you've got a backlog and are in the middle of sending a big article
over a slow connection, the connection will stay around, so you will want
to make sure your downstream sites are able to handle this many
connections from you -- I keep seeing servers throttled for this reason. 
Repeated flushing can build even more connections -- particularly if the
newly-created connections have established and are themselves in the
middle of sending data.  From experience, closely-spaced flushes are less
dangerous in this respect, for here at this site the connections have less
of a chance to establish and negotiate transfer.  Space the flushes by a
few minutes and it spells almost certain death to an unprotected peer that
is dangerously close to its limit already. 


> Also, the code that is supposed to only log unconfigured peers once is
> horribly broken. When innfeed can't grab locks it doesn't configure
> the peer (even though it may appear in innfeed.conf). When innfeed
> sees a peer that it doesn't know about coming from innd it calls a
> function in innlistener.c to log it. That fuction is supposed to keep
> track of unconfigured peers so that it only gets logged once. However,
> the code to do that is broken (probably because that section of code
> is replete with uninitialized variables) and my logs fill up with
> error messages.  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.

    I got bit yesterday by this for a few hours, without noticing it. 
Hey, I have to sleep sometime.  This was when I was really punishing my
server so much that at times it would forget what TCP/IP was, or maybe it
was whimpering from being force-fed an article crossposted to newsgroup
alt.god.grubor.  What I have observed, in the cases where a peer cannot be
configured, is that apparently outbound articles for this peer are not
written anywhere -- in a controlled test, where only one unimportant peer
remained unconfigured for quite some time and articles were sent to other
peers which get the same groups, no host.output, host.input, or anything
I could see was written.  If this observation is really true, then this is
a possible source of lost articles, but usually if I notice this I try to
flush the feed and get the connections established, being the sole
provider for some sites, rather than verify the absence of tape files. 

    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).


    I've tried to explain the file locking as best I can from how James
described it to me, as well as provide my own observations.  I haven't had
time to try to investigate closely what's going on here, but I'm sure any
inaccuracies will be corrected.


Barry Bouwsma  <barryb@tuke.sk>
sick sadistic abUsenet adminstrator


Re: problem with innfeed 0.9.1
#10580
Author: 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


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