🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #11901

Re: INN1.4unoff4 remalloc

#11901
From: Frank Durda IV
Date: Thu, 24 Oct 1996 00:00
49 lines
3038 bytes
> >Steven J Corso <steve@netdtw1.netdtw.com> wrote:
> >>innd: ME cant remalloc 1052928 bytes Cannot allocate memory from INND
> >>on a perodic basis.  I have seen this on both BSDI (2.1) and FreeBSD
> >>(2.1.5) servers.

I know everybody is suggesting a malloc bug, but we found this to
be caused NOT by malloc, but by using stdout/channel NNTPLINKs
to sites that were extremely slow and backlogged.  (We changed to the
provided malloc and it made little or no difference.)  Gradually, innd
would grow to over 140M and then die, or at around 140Meg it might start
growing at over 40M per minute, get up to about 400M and then die.  During
that short period, it would not respond to queries.

The outbound queue sizes for some of these slower machines in our
case exceeded 100Meg. Our system was a three processor 275MHz Alpha, so
by definition most of the machines we were feeding were slower.  Plus some
of them have disk space problems and are rejecting feeds because of no
free disk space all the time.

Apparently, innd stores headers and such inside itself when running
in stdout/channel mode and has no choice but to get fatter when nntplink
falls behind.

Look at your daily stats and see how far some of the sites you are
feeding are behind.

By setting a maximum spool size on these slower systems with the S parameter,
the innd-gets-big problem went away instantly.   Before this change,
we reached a configuration about 20 hours was all innd would last before 
dying on its own.  Innd has now run a couple of weeks with the same
network links active with no significant growth in its size.

We could also change to funnel mode to solve the problem, and we are
gradually doing that.

Thanks to Jerry Aguirre for responding to my original post, not
dismissing it as just a another person using a bad malloc problem, and 
getting us looking in this non-malloc direction.

Perhaps this second cause of the remalloc error should be added to
the FAQ.

Frank Durda IV <uhclem@nemesis.lonestar.org>|"The Knights who say "LETNi"
or uhclem%nemesis@rwsystr.nkn.net           | demand...  A SEGMENT REGISTER!!!"
                                            |"A what?"
or ...letni!rwsys!nemesis!uhclem            |"LETNi! LETNi! LETNi!"  - 1983

Technical Details
Message-ID: <326FB9AB.167EB0E7@nemesis.lonestar.org>
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: <53j906$46t@netdtw1.netdtw.com> <53jqkj$73o@augusta.math.psu.edu> <53mfo9$der@earth.alpha.net>

Show Full Headers
Complete Article Headers
Message-ID: <326FB9AB.167EB0E7@nemesis.lonestar.org>
Subject: Re: INN1.4unoff4 remalloc
Date: Thu, 24 Oct 1996 00:00:00 +0000
From: Frank Durda IV <uhclem@airmail.net>
References: <53j906$46t@netdtw1.netdtw.com> <53jqkj$73o@augusta.math.psu.edu> <53mfo9$der@earth.alpha.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: 191801309
Content-type: text/plain; charset=us-ascii
Organization: The Small Orange box in the corner
Mime-version: 1.0
Newsgroups: news.software.nntp
X-mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.1.5-RELEASE i386)