🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38221

Re: inn 2.2: a)Expiry 66 hrs, b)Can't malloc.

#38221
From: Russ Allbery
Date: Wed, 23 Jun 1999 00:00
50 lines
2809 bytes
News News <news@cpca14.uea.ac.uk> writes:

> I moved our news service to a new machine about 2 weeks ago, and since
> then, expire has taken longer each time it is run - 66 hours for the
> last successful run. Now it no longer runs, but gives:

>   expire begin Tue Jun 15 11:42:44 BST 1999: (-v1)
>       Can't malloc 65697408 bytes, Not enough space
>   expire end Tue Jun 15 11:42:55 BST 1999
>           all done Tue Jun 15 11:42:56 BST 1999

> This malloc value is slowly increasing, seemingly as the history file
> grows. It (history) is now about 460mb.

expire will malloc space equal to the size of the hash files, IIRC.  It's
currently trying to malloc more than the physical memory of your machine.

> The new service is inn 2.2, on a Compaq DPWS 500au running Digital Unix
> v4.0E, with 64 mb of memory. Layout was *initially*:

*Ouch*.  Can't you steal memory from somewhere else?  Even if you can get
INN to run in that much memory, expire is going to *crawl* because it's
going to be melting down your swap partitions.

If you're not already running with tagged hash, you can try that, but 64MB
is really not very much memory for a news server.  Particularly INN, which
makes lots of speed vs. memory tradeoffs in favor of speed.  I wouldn't
run a news server on less than 256MB of memory, and I'd prefer 512MB.

> We take only a subset of the news hierarchies, ie the big8 and about
> 1000 others. The remember value is 14 days, and expiries are 1 to 9
> days, so that the history file is usually under 150mb, and the spool
> less than 4gb. There are 2 incoming news feeds, and we don't feed anyone
> else.

If your peers are relatively prompt, try running innd with -c 7 (or change
artcutoff to 7 in inn.conf) and reducing your /remember/ value to 7.  It
sounds like that may as much as cut your history file size in half.

Given that it sounds like expire has been failing and you now have an
excessively large history file, I'd rebuild it from scratch with
makehistory after changing the above settings, to get it down to a
reasonable size.  Then see if it can manage.

But definitely find more memory *somewhere*.

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Technical Details
Message-ID: <ylvhcfaz7s.fsf@windlord.stanford.edu>
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: <7k5g2k$vpi$1@cpca14.uea.ac.uk>

Show Full Headers
Complete Article Headers
Message-ID: <ylvhcfaz7s.fsf@windlord.stanford.edu>
Subject: Re: inn 2.2: a)Expiry 66 hrs, b)Can't malloc.
Date: Wed, 23 Jun 1999 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <7k5g2k$vpi$1@cpca14.uea.ac.uk>
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: 492913394
Organization: The Eyrie
Newsgroups: news.software.nntp