🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Alan Sparks Tue, 22 Jul 1997 00:00
REPOST: Q: innd memory usage
#19466
Author: Alan Sparks
Date: Tue, 22 Jul 1997 00:00
18 lines
1097 bytes
I've been trying to run INN 1.5.1 with the apb performance patch,
and I am having huge problems with memory consumption.

After a couple of days running, innd is up to 80+ meg region size,
and readers are dead in the water 'cuz I can't fork nnrpd's.

I've built in the supplied malloc, as recommended in the FAQ.  Is this
semi-normal, that innd grows this much this fast?  

I'm running on SunOS 4.1.4.  Thanks in advance for any advice.
-Alan

-- 
Alan Sparks, IS Engineering Support			asparks@harris.com
Harris Network Support Systems, Camarillo CA 93012	(805) 389-2430

Re: REPOST: Q: innd memory usage
#19508
Author: Richard Michael Todd
Date: Wed, 23 Jul 1997 00:00
37 lines
1854 bytes
Alan Sparks <asparks@harris.com> writes:

> I've been trying to run INN 1.5.1 with the apb performance patch,
> and I am having huge problems with memory consumption.
> 
> After a couple of days running, innd is up to 80+ meg region size,
> and readers are dead in the water 'cuz I can't fork nnrpd's.

Give the following patch a shot.  It seemed to help with inn1.6b1 (which
includes the latest apb performance patch).  

> I've built in the supplied malloc, as recommended in the FAQ.  Is this
> semi-normal, that innd grows this much this fast?  

No.  The problem is that in the 'immediate write' case where the channel 
feed can accept data right now, even if the write succeeds the 'Used' field
of the buffer is never reset to 0, so innd needs to keep making the buffer
bigger and bigger...

--- site.c	1997/07/19 21:23:42	1.6
+++ site.c	1997/07/20 03:46:48
@@ -272,8 +272,11 @@
 		bp->Used += j;
 		i = cp->Out.Left;
 	    }
-	    if (bp->Left <= 0)
+	    if (bp->Left <= 0) {
+		/* reset Used, Left on bp, keep channel buffer size from exploding. */
+		bp->Used = bp->Left = 0;
 		WCHANremove(cp);
+	    }
 	    else
 		WCHANadd(cp);
 	}

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