🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #22886

Re: Getting actived to actually work

#22886
From: Another Victim of the Usenet Maf...
Date: Mon, 03 Nov 1997 00:00
89 lines
5265 bytes
On 3 Nov 1997, Andrew wrote:

> Perry.Rovers@IAE.nl wrote:
> > I'm running the same on FreeBSD. Performance is just great (thanks again
> > Andrew). The only problem that still seems to crop up sometimes is the
> > 'growing and dying innd' problem. The patches Clayton O'Neill and Forrest
> > Cavallier put out for bufferproblems and memoryusage are in there but
> > sometimes innd grows to about 128Mb and then segfaults without any message
> > in the logs. The system has 256Mb and the command I use to start inn
> 
> Actually I've seen the same behaviour.  I'm thinking there's a memory leak
> somewhere in one the caches.  I'm not good enough at C to find it though.
> Some gurus wanna have a look?  :)
> 
> Actually I think I remember mention of a known memory leak in one of those
> caches now that I think about it.  Or am I making this up?

Yes.

Actually, I've just discovered a memory leek which has been enough to
bring down my server each weekend soon after I leave, if the kernel
doesn't decide to give innd a whack.  I hate four-day weekends...
It's probably not related to what you see, though.

As I've noted before, on my s00per-turbo-charged 486/66, I've seen that
the channel version of inpaths has often not been able to keep up with the
incoming news that the IDE drives have no problem with.  This started to
be a problem when I began carrying as much of a Big 8 feed plus selected
regionals as pushed me above handling some 100 000 articles daily.

(Note that the code I'm running is still based on 1.5.1, and it includes
the patch from Jerry Aguirre without which my channel feeds would be
severely lagging, plus a patch to that patch, without which my innd would
continue to bloat relentlessly.  I've seen mention by Forrest Cavalier of
some other problem, but I haven't been able to pay much attention to it so
far.  Give me time, or give me...)

After my innd was down for a weekend, it was in the process of catching up
when I noticed the size it was taking up was enough to make me slightly
uncomfortable.  Normally I'll see a size of 10 or 20M, while it had
increased steadily to well over 40M.  Ick.  I also know that when the
articles are coming in at a rate like this, my inpaths channel will block
several hundred times daily.

What I've done is to give inpaths a chance to catch up on the data
buffered by innd by pausing innd and letting inpaths peak on top for a
while, then restart things.  So I did this for a couple hours.  After the
chaninpaths process disappeared from top, I noted that while the size of
innd had fluctuated somewhat, it remained significantly larger than I
wanted it to be.

So I decided to clear things out by flushing each channel process, one at
a time.  I normally run three, two being innfeed (one almost never blocks,
the other has been noted to block once a week or so, even though it
handles fewer peers), and the third being chaninpaths.

After flushing each of the innfeed processes, there was no change in the
size of the innd process.  No dropping was left in out.going either.  So
there doesn't seem to be a problem with processes that don't block.

However, as soon as I gave the fatal flush to chaninpaths, which in the
past has resulted in multi-megabyte droppings in out.going, the size if
the innd process fell from its >30M size while paused to a much more
pleasing 8M or so, becoming a quarter of the size before.  And to my great
glee, nothing was left in out.going, inpaths finished with its needed
housekeeping and updated the logfile.

So, it appears that the memory leek I've been seeing is somehow that the
memory used for buffering a blocked channel feed (perhaps other buffered
file feeds too, f'rinstance when one runs out of disk space?) doesn't get
freed, even when the channel is permitted to drain completely.

Of course, it could well be that this is a known problem.  In any case,
I'm going to regret this as my peers drop me like a hot brick, but having
an innd that doesn't get killed trying to grow in size is more important
than a few measly Freenix points.  At least, I can still weasel my way to
the top through a collection of Dirty Secrets, while a dead INN is not a
pleasant sight to behold each morning before sunrise.

Ah well, time to dig through the last month's inn-workers archive and see
if there's any mention about this type of problem...


Barry Bouwsma
my kingdom for a spot in the top 100, arrrgh


Technical Details
Message-ID: <Pine.LNX.3.96.971103150542.3947A-100000@marley.vszbr.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
References: <D5AA0F7812B6B512.22F636DF23960163.1F255AFD185A1016@library-proxy.airnews.net> <63ikha$fet$1@news1.exit109.com> <63j16b$92$3@news.IAEhv.nl> <63jhk2$a76$1@synthemesc.insync.net>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.LNX.3.96.971103150542.3947A-100000@marley.vszbr.cz>
Subject: Re: Getting actived to actually work
Date: Mon, 03 Nov 1997 00:00:00 +0000
From: Another Victim of the Usenet Mafia <barry@vszbr.cz>
References: <D5AA0F7812B6B512.22F636DF23960163.1F255AFD185A1016@library-proxy.airnews.net> <63ikha$fet$1@news1.exit109.com> <63j16b$92$3@news.IAEhv.nl> <63jhk2$a76$1@synthemesc.insync.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
X-Deja-AN: 286771084
Organization: Born under a Bad SIMM
Reply-To: ag786@yfn.ysu.edu
Newsgroups: news.software.nntp