🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #23486

Re: 23-bit history patch?

#23486
From: Requests for Further Spamming
Date: Fri, 21 Nov 1997 00:00
71 lines
3907 bytes
On 21 Nov 1997, David Carmean wrote:

    23-bit history patch?  What OS needs that?  He wonders idly...

> Not really, but I'm having a problem with INN-1.5.1 (as included with 
> the latest CNFS snapshot):
> 
> I'm working with snap.971012 on Solaris 2.5.1.  I compiled DBZ (the 
> bundled version) with -DMMAP, but somewhere in the night when history 
> grew larger than 2^23 bytes, it appears, the hishave() times went 
> all to hell, increasing by about ten times.  

    I've run conventional 32-bit DBZ compiled both with and without -DMMAP
and noted the difference on the old Linux machine.  The results were that
the size of the innd process was not significantly different for either
configuration.  Also, history lookups didn't change much either.  The only
thing which changed significantly for me was the history write times,
which were drastically reduced.  With the same size history files, this
was enough to boost me from 70% idle to 80% idle, taking a limited feed.

    However, I did note that as I let my history file grow in size from my
initial goal of keeping it under 67M in size, that the time for each
lookup increased by a factor of about 6 or so (+/-10) when it had doubled
in size to 130M.  I never saw a sudden jump, although of necessity, as the
text file grew in size, the .pag database temporarily grew significantly
larger than planned until the next expire rebuilt it.

    Do you really mean 2^23 bytes?  That's pretty small.  That's 8 Megs.
Even my 486/66 with 16M RAM was flying with a larger history than that.

    By default, a fresh installation of traditional INN creates a .pag
database that should be able to handle a text file of 2^24 bytes, if I
recall.  That's not much for a full feed nowadays, but should be more than
adequate for your 8Meg history file.


> The first hours running were fast as all get-out, with artwrite() times 
> of 5-7 mSec, and hishave() times in the hundreds of microseconds.

    This was for a fresh install, presumably.


> this morning, hishave() times are on the order of four seconds

    How many incoming feeds?  And are you trying to carry a full feed?
I've not had a problem with a limited feed, and the only crippling thing
for me was expire once I reached a certain size of the history files for
minimal amounts of RAM which I hope you do not have.  However, while the
conventional DBZ code doesn't have problems with a limited number of
lookups (few incoming feeds) or limited partial feeds, it just doesn't
scale too well for lotsa incoming feeds and a large history file.  But
even with underpowered hardware, you shouldn't see any problems with CNFS
until you're well over your present history size, say, more than 2^27
bytes.


> Where did I screw up?  Is this a forehead-slapper?

    Do you really mean 2^23 bytes, or 2^29 or something else?  Have I
asked this yet?  Anyway, check the usual suspects: is the .pag database
much larger than it should be, are you saving duplicate message IDs, even
see what difference not adding -DMMAP and recompiling might make.  And
when expire rebuilds the .pag file, see if things suddenly get better.


Barry Bouwsma
Just how big was your history file again?


Technical Details
Message-ID: <Pine.BSF.3.96.971121211659.28456E-100000@coredump.int.tele.dk>
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: <654m8u$g9t@ocean.silcom.com>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.BSF.3.96.971121211659.28456E-100000@coredump.int.tele.dk>
Subject: Re: 23-bit history patch?
Date: Fri, 21 Nov 1997 00:00:00 +0000
From: Requests for Further Spamming <abuse@coredump.int.tele.dk>
References: <654m8u$g9t@ocean.silcom.com>
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: 291405895
Reply-To: ag786@yfn.ysu.edu
Organization: Do Not Bounce Mouse Balls Down Circular Stairways
Newsgroups: news.software.nntp