Article View: news.software.nntp
Article #90618Re: INN performance curve - why so much time dealing with the history file?
From: Jesse Rehmer
Date: Wed, 26 Jul 2023 03:35
Date: Wed, 26 Jul 2023 03:35
37 lines
2978 bytes
2978 bytes
On 7/25/23 10:24 PM, Russ Allbery wrote:
> Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:
>
>> The history file is ~18GB. How would one go about pre-sizing it? That is
>> one topic I don't think I've stumbled across.
>
> (Note that this is unnecessary now; now that you've run news.daily after
> feeding in all the articles, it will have been resized to match its
> current size, so this problem hopefully won't matter any more. If you're
> still seeing ongoing slowness, then I misunderstood.)
>
> Running makedbz manually will let you provide the -s flag, which specifies
> the number of entries to size the history file for. news.daily will use
> the current size as the expected size. When you're going to feed in a ton
> of articles, you want to pass in something much, much larger, roughly the
> number of entries you're expecting to have at the end. The relevant
> instructions in INSTALL are:
>
> | Next, you need to create an empty F<history> database. To do this, type:
> |
> | cd <pathdb in inn.conf>
> | touch history
> | makedbz -i -o
>
> which possibly should mention the -s flag.
>
Got it! This run was a test to see just how long it would take, so the
new box is kind of a scratch spot for further sorting later.
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)?
I'd probably want something like this assuming that's correct?
makedbz -i -o -s 200000000
Technical Details
Message-ID:
<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-mailReferences:
<u9q0c8$28ja$1@nnrp.usenet.blueworldhosting.com> <87351bz91n.fsf@hope.eyrie.org> <u9q2rs$1d3h$1@nnrp.usenet.blueworldhosting.com> <87y1j3xsl4.fsf@hope.eyrie.org>Show Full Headers
Complete Article Headers
Message-ID: <u9q49m$k3t$1@nnrp.usenet.blueworldhosting.com> Subject: Re: INN performance curve - why so much time dealing with the history file? Date: Tue, 25 Jul 2023 22:35:18 -0500 From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com> 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> 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: BlueWorld Hosting Usenet (https://usenet.blueworldhosting.com) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 26 Jul 2023 03:35:18 -0000 (UTC) Injection-Info: nnrp.usenet.blueworldhosting.com; posting-account="k8cWG9+Y/93vxQYza75s9JQFoL8rgVF3P1Yluveoqs0"; logging-data="20605"; mail-complaints-to="usenet@blueworldhosting.com" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:jFyQ+L0Q12Cw8RjezeAM3WoijVA= sha256:HQ1pxMOUEUNqZWL0s1+ebuYyRszwlMR9TjNoevF1Fpk= sha1:Y2fehT53H/Gi/it0Lvki6vPwVU4= sha256:Cs7kLW0+P5M88LyHeF3/aNa2awlN1DlU2UYNx45o8Hw= Content-Language: en-US In-Reply-To: <87y1j3xsl4.fsf@hope.eyrie.org>