Article View: news.software.nntp
Article #90615Re: INN performance curve - why so much time dealing with the history file?
From: Russ Allbery
Date: Wed, 26 Jul 2023 02:44
Date: Wed, 26 Jul 2023 02:44
32 lines
2453 bytes
2453 bytes
Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:
> Now that I've got faster hardware and have had a chance to feed over 184
> million articles to a new server, I notice a steep decline in
> performance from the beginning of the process to the end. When looking
> at the news.daily output it appears the majority of the time is spent
> dealing with the history file. I would expect article/overview writing
> or perl filtering to take more time, but perhaps there is more to
> dealing with the history file than I understand.
It sounds like you didn't run news.daily while you were feeding in the
articles. My guess is that the history file index size was too small, so
you got tons of page overflows, which slows everything down considerably.
The history file is dynamically resized as part of the news.daily process,
although that process is not really designed for the case of feeding in
tons of new articles.
Pre-sizing the history file to be much larger at the start might have
helped if I'm right about the possible cause.
There is almost certainly a better algorithm to use for the history
database than what INN currently does, which is more than 30 years old.
(Just throwing everything into a modern SQL database might be a
substantial improvement, although the history file has very specific
characteristics, so at least in theory an algorithm chosen precisely for
its type of data would be fastest.)
--
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:
<87351bz91n.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-mailReferences:
<u9q0c8$28ja$1@nnrp.usenet.blueworldhosting.com>Show Full Headers
Complete Article Headers
Message-ID: <87351bz91n.fsf@hope.eyrie.org> Subject: Re: INN performance curve - why so much time dealing with the history file? Date: Tue, 25 Jul 2023 19:44:04 -0700 From: Russ Allbery <eagle@eyrie.org> References: <u9q0c8$28ja$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:pnUDFBmmHmdLqn6F5keB4yWEdZE=