🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90617

Re: INN performance curve - why so much time dealing with the history file?

#90617
From: Russ Allbery
Date: Wed, 26 Jul 2023 03:41
30 lines
2265 bytes
Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:

> I'll restore from snapshot and manually create the history file, if I'm
> reading the manpage correctly, the value used for the '-s' flag is the
> number of articles expected (each line being an article)?

Yes, that's correct.  The actual history index size will then be larger
than that to try to make it so that the number of entries is about 2/3rds
the size of the index.

(If I remember correctly, the dbz algorithm uses linear probing for hash
collisions, so you really want a sparse hash.  If the linear probe goes
for too long, it goes to a separate overflow table, and once that happens,
the performance really tanks *and* the history file size bloats.  It's
just a bad time all around, sort of like a system going to swap.  I'm
betting your history file went to multiple overflow tables because it
started massively undersized.)

> I'd probably want something like this assuming that's correct?

>    makedbz -i -o -s 200000000

Looks good to me, assuming that's the number of articles you're dealing
with.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87tttrxrtv.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <u9q0c8$28ja$1@nnrp.usenet.blueworldhosting.com> <87351bz91n.fsf@hope.eyrie.org> <u9q2rs$1d3h$1@nnrp.usenet.blueworldhosting.com> <87y1j3xsl4.fsf@hope.eyrie.org> <u9q49m$k3t$1@nnrp.usenet.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Message-ID: <87tttrxrtv.fsf@hope.eyrie.org>
Subject: Re: INN performance curve - why so much time dealing with the history file?
Date: Tue, 25 Jul 2023 20:41:16 -0700
From: Russ Allbery <eagle@eyrie.org>
References: <u9q0c8$28ja$1@nnrp.usenet.blueworldhosting.com> <87351bz91n.fsf@hope.eyrie.org> <u9q2rs$1d3h$1@nnrp.usenet.blueworldhosting.com> <87y1j3xsl4.fsf@hope.eyrie.org> <u9q49m$k3t$1@nnrp.usenet.blueworldhosting.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org; logging-data="30902"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:4UQLNNORQIdzCHuHyfNsoh7i4jY=