🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #24641

Re: 16GB Spool to small?!

#24641
From: CyberPromo Danmark
Date: Sun, 28 Dec 1997 00:00
79 lines
5247 bytes
On 27 Dec 1997, Russ Allbery wrote:

> > since some peers are sending us news more than a week old), but unless
> > you do some serious work to your history lookups, you'll be suffering.
> > At a minimum, dbz v3.3, but still, you're looking at some 12 million
> > messages you try to remember, and non-negligible history hash and text
> > collisions.
> 
> Hmm.  I'm running /remember/:14 on a stock INN 1.5.1 install with
> REMEMBER_TRASH on and getting a BBN feed, and I'm not seeing any problems.

    Perhaps not.  With multiple incoming feeds, with ~20 million lookups
in 24 hours and conventional DBZ techniques (i.e., not the v6.x dbz from
Clayton O'Neill and Sang-yong Suh used in INN 1.8), we run a bit short of
alleged idle time in peak hours when handling more than 15 articles per
second.  During these holiday days, there has been breathing room and just
over 10 million lookups.

    Are you seeing 700k to 800k articles daily?  If not, you're not
keeping up with your Cyclone feed, assuming it really is * and full.

    Do you have multiple redundant full incoming feeds?  Each suspected
history match (article already received) means a lookup to verify it in
the history text file every time.  If all you get is fresh articles, an
optimized dbz v3 won't hit the text file much.  This can be minimized by
wise usage of some cache or other.  We're using between 6 and 7 days of
customized in-core cache hackery, which is sort of overkill, yet still
fails to catch several dozens of thousands of old recycled articles, all
of which need to be verified in the dbz database and text file.

    Your history text file, assuming you are taking a full 800k articles
daily, will probably be pushing a gigabyte in size.  Ours is more than
800M at the moment, and will be increasing after the holidays, and it also
is somewhat smaller than a conventional history file.  However, as I
recall, you reported your policy on group carriage so that many of the
junk articles you reject but remember are probably being written without a
spool path, which will significantly decrease the size of your history
file by perhaps 100 to 200M or so.

    Does your .pag database file overflow and increase in size during the
day, or does it remain constant sized?  As your history text file gets
larger with more and more entries, you have fewer and fewer bits available
to be used as a hint for the hash of the message ID, meaning more and more
collisions are likely.  Furthermore, with the number of entries remembered
in two weeks (I really meant to say that I'm seeing lots of articles from
the 13th of December being offered from several peers today up above), a
31-bit hash will by nature give a not insignificant amount of collisions.
This makes for table overflows and needless text file accesses.

    I've discovered that Joe Greco's 64-bit dbz indexing patches, as I
applied them, with so large a history file, had far fewer than expected
tag bits stored in the .pag file.  I made a quick and ugly hack to this
which may very well not have a particularly even distribution, but which
stores a full 29 bits of hash.  It might have made a difference.

    Still I was seeing pag table overflows and more than a good number of
hash collisions, until I added one of the techniques used in dbz v3.3 from
Sang-yong Suh, which is to make the .pag table more sparse by increasing
its size.  Because of the inherent number of collisions to be expected
with no more than 32 bits of hash and 12 million entries, there will still
be hash table collisions, but they are far less likely to reach the ten
linear probes beyond which a second hash table will be used.

    At the moment, our history files are on the same striped filesystem as
the spool, which is not optimized for large files at all, and there are
repeated times when our server appears to lock up during disk activity.
I'd like to see the history files (and why not also the large log files)
relocated to separate disks, so that at least I can watch the green lights
to see which disk is getting hit during ufslk2 freezes on our FreeBSD
server and CNFS.  I have this gut feeling that this will improve things as
well.  Then, arrrgh, more peers


B�rry B�uwsm�, Tele Danmark Internet News Cabal Inc.
suffering for the betterment of humanity, or at least the benefit


Technical Details
Message-ID: <Pine.BSF.3.96.971228021457.499D-100000@venus.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: <drew-ya023180002712971317110001@news01.equinox.net><Pine.BSF.3.96.971228002847.499B-100000@venus.int.tele.dk> <m3iusauyae.fsf@windlord.Stanford.EDU>

Show Full Headers
Complete Article Headers
Message-ID: <Pine.BSF.3.96.971228021457.499D-100000@venus.int.tele.dk>
Subject: Re: 16GB Spool to small?!
Date: Sun, 28 Dec 1997 00:00:00 +0000
From: CyberPromo Danmark <remove@int.tele.dk>
References: <drew-ya023180002712971317110001@news01.equinox.net><Pine.BSF.3.96.971228002847.499B-100000@venus.int.tele.dk> <m3iusauyae.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
X-Deja-AN: 310644228
Content-Transfer-Encoding: 8BIT
Mime-Version: 1.0
Reply-To: ag786@yfn.ysu.edu
Content-Type: TEXT/PLAIN; charset=ISO-8859-2
Organization: Yes Virginia, there was a Santa Claus, but I ate him
Newsgroups: news.software.nntp