🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89452

Re: INN odd behavior during expireover?

#89452
From: Russ Allbery
Date: Fri, 24 Jun 2022 18:59
40 lines
3103 bytes
Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:
> "Russ Allbery" in <87a6a2gd38.fsf@hope.eyrie.org> wrote:

>> Do you by chance have a really large group that would take a long time
>> to expire?  It's been a while since I wrote the locking strategy for
>> tradindexed, but expiring a group locks it for write and receiving an
>> article in the same group will also attempt to lock it for write, and
>> innd is single-threaded.  So if you receive an article for a group
>> while that group is being expired, innd will wait for the lock until
>> the expiration of that group finishes.  If that group is extremely
>> large, this could well take ten minutes.

> I injected articles from 2003-present for almost all of the Big8 groups,
> so many groups have hundreds of thousands of articles.

I'm not sure hundreds of thousands would be enough to take that long.
Maybe?  It's been a long time since I've benchmarked this stuff, and never
with modern hardware.  It feels more likely to me if you have a single
group with tens of millions of articles in it.

> I will admit, it has been 10+ years since I've used INN with a spool
> containing this many articles, but long ago helped another admin move to
> a new server. That box was receiving a full feed, I don't recall the
> number of articles in the spool, but it was several terabytes (my size
> is ~150GB for comparison). When we ran expireover on that spool the
> average run time was 6-8 hours and do not recall experiencing any issues
> like I am seeing. My expireover run on a fraction of the amount of data
> and on faster hardware was ~14 hours. Is that expected?

Were you using tradindexed before I rewrote it to make it safer, maybe?

You could try ovsqlite, which will have much finer-grained locking rather
than the all-or-nothing approach that tradindexed uses (and kind of has to
use due to its structure).

-- 
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: <875ykphoqm.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf2.newsdeef.eu!not-for-mail
References: <4353171044.279cb5a2@freebsd-inject1.usenet.blueworldhosting.com> <87edzegi5g.fsf@hope.eyrie.org> <9110422123.e5d78522@freebsd-inject1.usenet.blueworldhosting.com> <87a6a2gd38.fsf@hope.eyrie.org> <9433024807.7c4bdc6e@freebsd-inject1.usenet.blueworldhosting.com>

Show Full Headers
Complete Article Headers
Message-ID: <875ykphoqm.fsf@hope.eyrie.org>
Subject: Re: INN odd behavior during expireover?
Date: Fri, 24 Jun 2022 11:59:13 -0700
From: Russ Allbery <eagle@eyrie.org>
References: <4353171044.279cb5a2@freebsd-inject1.usenet.blueworldhosting.com> <87edzegi5g.fsf@hope.eyrie.org> <9110422123.e5d78522@freebsd-inject1.usenet.blueworldhosting.com> <87a6a2gd38.fsf@hope.eyrie.org> <9433024807.7c4bdc6e@freebsd-inject1.usenet.blueworldhosting.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!apf2.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="11841"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:d81hQ8OydJ+H7Yc8OkwcZT/j1Pk=