πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #91027

Re: Migrating tradindexed overview to ovsqlite

#91027
From: Jesse Rehmer
Date: Sat, 28 Oct 2023 21:53
62 lines
3698 bytes
On Oct 28, 2023 at 3:38:56β€―PM CDT, "Julien Γ‰LIE"
<iulius@nom-de-mon-site.com.invalid> wrote:

> Hi Jesse,
> 
>> If you aren't rebuilding the history file, you'll have a better experience.
>> Spent some time watching system calls and filesystem activity, and the
>> majority of what makehistory is spending time on in my case is dbz related
>> stuff.
> 
> Just to be sure, did you run makehistory with the -s flag to provide the
> estimated number of articles?
> 
> It reminds me the issue we recently discussed in this newsgroup about
> makedbz.  I then reworded INSTALL this way:
> 
> """
> Next, you need to create an empty history database.  To do this, type:
> 
>      cd <pathdb in inn.conf>
>      touch history
>      makedbz -i -o
> 
> makedbz will then create a database optimized for handling about
> 6,000,000 articles (or 500,000 if the slower tagged hash format is
> used).  If you expect to inject more articles than that, use the "-s"
> flag to specify the number of entries to size the initial history file
> for.  To pre-size it for 100,000,000 articles, type:
> 
>      makedbz -i -o -s 100000000
> 
> This initial size does not limit the number of articles the news server
> will accept.  It will just get slower when that size is exceeded, until
> the next run of news.daily which will appropriately resize it.
> """
> 
> 
> I'm wondering whether you're not running into that issue with
> makehistory.  I should also update its manual page to emphasize the use
> of the "-s" flag :)

Hi Julien,

I've had mixed results sizing the history file with makedbz or using the -s
flag with makehistory. It seems no matter if appropriately sized or not, once
the history file is around 10GB in size performance suffers dramatically.

In the previous case, where we were talking about sizing the history file
prior to injecting large numbers of articles to a new server, I had a similar
experience. Performance started off better *initially* when sized, but after
some time in the process it falls off. In that scenario I can start off
injecting 10,000+ articles per second at the beginning, but it falls to around
2,000 per second once the history file reaches about 10GB or so.

I see basically the same thing with makehistory. The first run I used the -s
flag and noticed about a third of the way, according to the previous history
file's size, the I/O rate drops off. I can see this in my monitoring software,
the metrics of I/O trend downward over the entire process.

On round two of makehistory rebuild I did not use the -s flag, I still see the
same downward trend in performance, but I saw more I/O happening in the
beginning than the first run before it slowed down.
Technical Details
Message-ID: <uhjvs1$3god2$1@dont-email.me>
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: <8m8r7nmoop.fsf@raybanana.net> <uhigvk$2pund$1@dont-email.me> <uhihvm$2q4fn$1@dont-email.me> <uhjatr$2ula4$1@dont-email.me> <uhjrh0$156ko$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <uhjvs1$3god2$1@dont-email.me>
Subject: Re: Migrating tradindexed overview to ovsqlite
Date: Sat, 28 Oct 2023 21:53:05 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <8m8r7nmoop.fsf@raybanana.net> <uhigvk$2pund$1@dont-email.me> <uhihvm$2q4fn$1@dont-email.me> <uhjatr$2ula4$1@dont-email.me> <uhjrh0$156ko$1@news.trigofacile.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: A noiseless patient Spider
Lines: 62
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 28 Oct 2023 21:53:05 -0000 (UTC)
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:34wYuPWhnwKfGHeTcx0+dm0RAW0=
X-Usenapp: v1.27.2/d - Full License