🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89457

Re: INN odd behavior during expireover?

#89457
From: Julien ÉLIE
Date: Fri, 24 Jun 2022 19:24
22 lines
2587 bytes
Hi Russ,

> 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've not looked at the complexity but couldn't the expiration of the 
overview of a newsgroup be done in bulks of 100,000 articles for instance?
Lock the group, process the first 100,000 overview lines (and retain 
that n lines have been dropped), release the lock, try to acquire a new 
lock and process the 100,000 next lines from line (100,000 - n), etc.

-- 
Julien ÉLIE

« Le café est un breuvage qui fait dormir quand on n'en prend pas. »
   (Alphonse Allais)
Technical Details
Message-ID: <t95324$kq1k$1@news.trigofacile.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
References: <4353171044.279cb5a2@freebsd-inject1.usenet.blueworldhosting.com> <4575903189.1ff43929@freebsd-inject1.usenet.blueworldhosting.com> <6762127615.be8e4d99@freebsd-inject1.usenet.blueworldhosting.com> <87edzegi5g.fsf@hope.eyrie.org> <9110422123.e5d78522@freebsd-inject1.usenet.blueworldhosting.com> <87a6a2gd38.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Message-ID: <t95324$kq1k$1@news.trigofacile.com>
Subject: Re: INN odd behavior during expireover?
Date: Fri, 24 Jun 2022 21:24:51 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <4353171044.279cb5a2@freebsd-inject1.usenet.blueworldhosting.com> <4575903189.1ff43929@freebsd-inject1.usenet.blueworldhosting.com> <6762127615.be8e4d99@freebsd-inject1.usenet.blueworldhosting.com> <87edzegi5g.fsf@hope.eyrie.org> <9110422123.e5d78522@freebsd-inject1.usenet.blueworldhosting.com> <87a6a2gd38.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
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 24 Jun 2022 19:24:52 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176-143-2-105.abo.bbox.fr:176.143.2.105"; logging-data="682036"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0
Cancel-Lock: sha1:QAoLcef4wnW7K62l+q0jxqTd4Wk= sha256:KvJIDfrTN5QEOLGWtm9yBgKSfJIjt+Mh/32mtRKFFbM= sha1:bM3CD6sPCZXb85J3uaQikLLfAR0= sha256:/dXwtuIBWs6FSeLyfLwHeqLhrWK/ZFdMUxKhk85wAyY=
In-Reply-To: <87a6a2gd38.fsf@hope.eyrie.org>