🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by Steven J Corso Thu, 10 Oct 1996 00:00
INN1.4unoff4 remalloc
#11575
Author: Steven J Corso
Date: Thu, 10 Oct 1996 00:00
16 lines
917 bytes

I continue to get messages like:

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.  

These servers have 64 Meg of memory and are P5 90 or 100s and P6-200s.

Any insight would be appreciated.

Thank you,
Steve

Re: INN1.4unoff4 remalloc
#11563
Author: Dave Barr
Date: Thu, 10 Oct 1996 00:00
15 lines
939 bytes
In article <53j906$46t@netdtw1.netdtw.com>,
Steven J Corso <steve@netdtw1.netdtw.com> wrote:
>
>I continue to get messages like:
>
>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.  

See the INN FAQ, part 5.

--Dave

Re: INN1.4unoff4 remalloc
#11598
Author: Joe Greco
Date: Fri, 11 Oct 1996 00:00
31 lines
1599 bytes
In article <53jqkj$73o@augusta.math.psu.edu>,
Dave Barr <barr@math.psu.edu> wrote:
>In article <53j906$46t@netdtw1.netdtw.com>,
>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.  
>
>See the INN FAQ, part 5.

Dave,

I have seen this on FreeBSD 2.1.0R/2.1.5R systems with an explicit 
unlimit.

I suspect that there may be a problem with malloc but I have never 
bothered to track it down.  In particular, it seemed to like to crash 
innd during news.daily, while trying to remalloc() very large chunks 
of memory (8MB-16MB).

I have gotten around this in the past by linking in -lgnumalloc.

I am currently trying phkmalloc (available in FreeBSD-current) as an
alternative.

Perhaps somebody wants to add this to the FAQ...

... JG

Re: INN1.4unoff4 remalloc
#11609
Author: Andrew A. Vasilyev
Date: Sat, 12 Oct 1996 00:00
12 lines
955 bytes
Joe Greco <jgreco@ns.sol.net> wrote:
> I have gotten around this in the past by linking in -lgnumalloc.

  And did you try to build INN with malloc.c from $inn/lib?

> I am currently trying phkmalloc (available in FreeBSD-current) as an
> alternative.
_______
	ANDY

Re: INN1.4unoff4 remalloc
#11627
Author: Joe Greco
Date: Sun, 13 Oct 1996 00:00
18 lines
1110 bytes
In article <53p1pa$rt5@news.demos.su>,
Andrew A. Vasilyev  <andy@snm.demos.su> wrote:
>Joe Greco <jgreco@ns.sol.net> wrote:
>> I have gotten around this in the past by linking in -lgnumalloc.
>
>  And did you try to build INN with malloc.c from $inn/lib?
>
>> I am currently trying phkmalloc (available in FreeBSD-current) as an
>> alternative.

No.

But phkmalloc appears to be working great.

... JG

Re: INN1.4unoff4 remalloc
#11783
Author: USENET news
Date: Sun, 20 Oct 1996 00:00
47 lines
2934 bytes
In article <53s7uj$fc3@earth.alpha.net>, Joe Greco <jgreco@ns.sol.net> wrote:
>In article <53p1pa$rt5@news.demos.su>,
>Andrew A. Vasilyev  <andy@snm.demos.su> wrote:
>>Joe Greco <jgreco@ns.sol.net> wrote:
>>> I have gotten around this in the past by linking in -lgnumalloc.
>>
>>  And did you try to build INN with malloc.c from $inn/lib?
>>
>>> I am currently trying phkmalloc (available in FreeBSD-current) as an
>>> alternative.
>
>No.
>
>But phkmalloc appears to be working great.

I had the same problem (i.e. remalloc erros), transiently, with INN
1.4unoff4 on Solaris 2.5. No limits were in effect and plenty of both real
and virtual memory unused. The failures were for trivial (few tens of KB)
amounts of memory. They did, however, coincide with a period when system
problems were causing the system to lock up every few hours or days to the
extent it had to be power-cycled, with consequent filesystem wreckage.
Filesystems intact, but a lot of article and batch files which were either
empty or "contained" whatever had been in those disc blocks previously, not
the article they were meant to contain. [The system was too unstable to have
any chance of running jobs to locate and remove damaged articles for the 2-3
weeks it took to pin down the combination of hardware and device driver
problems causing the trouble... I just had to fix up the problems as they
arose.]

My guess then was that something about those files was causing confusion and
e.g. buffer overruns, leading later to the odd remalloc failures. The
problem vanished as abruptly as it appeared. Certainly a number of other
aspects of INN turned out to be "fragile" in the face of article or batch
files containing junk instead of the expected contents. [Yes, I reported
those problems, so they might be fixed e.g. in INN 1.5, though for some of
them there weren't any clues to cause, just the effects.]

So, I have a suspicion there may be a lurking bug in INN which under some
circumstances may cause remalloc problems, apart from the obvious
possibility that the process isn't being allowed more memory due to a system
limit. How widely that may be relevant - if it's even correct - is less
clear!

                                John Line

Re: INN1.4unoff4 remalloc
#11901
Author: 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

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