Article View: news.software.nntp
Article #92774Re: inn scalability improvements
From: Kevin Bowling
Date: Mon, 11 May 2026 00:59
Date: Mon, 11 May 2026 00:59
87 lines
4986 bytes
4986 bytes
On 5/10/26 01:38, Julien ÉLIE wrote: > Hi Kevin, > >> ovsqlite: Add direct reader mode for nnrpd with WAL >> expireover: Add bloom filter for fast history existence checks >> expire: skip per-article SMretrieve via cancel tombstone log >> >> The general theme of all three is to reduce random or sync I/O. In >> the case of expireover and expire, the general problem is somewhat >> similar but the root cause and fix are fairly different. > > Many thanks for these very useful improvements to expiration and > ovsqlite concurrent reading. > expire and expireover run way faster (x1100 for expire and x2800 for > expireover on your system !!) thanks to your optimizations. Some people > have been complaining with their slowness from a long time, and > hopefully you managed to find out how to improve that a lot and > contributed a patch. It will be integrated to the next release. > > >> On my system this is a 1100x improvement, 2 weeks down to 18 minutes. > > Gosh! > > >> On my system this will net a 2800x improvement, 2 days down to sub >> minute. > > Re-gosh! > > >> Both of these suppose integrity of the spool; if you 'rm' articles >> instead of using 'sm -r' you'll need to do a patrol expire to clean up >> your spool; expireover builds from history so it would see the new >> history state the next time it runs. The first time expire runs it >> wont have a tombstone so it will 'upgrade' to a known state cleaning >> any issues.. a gap is only if you decide to manually botch the spool >> after that. > > Worth mentioning. > > >> I'd be curious to hear any feedback or reviews from other inn admins >> that can test the patch set. > > If anyone could test the provided patches, do not hesitate to do so in > order to eventually catch possible nits before the next release (in June). > I'll pause to save some energy to fix any feedback and problems if they arise. And these fix my most notable issues for csiph.com. But I've wondered a bit about what might be next. It seems like some sites use Diablo primarily for transit. And commercial sites might use Tornado or some home grown system (maybe we should do a NNTP Server and Capabilities survey of top1000?). I'm unfamiliar with Diablo but took a brief tour of the code to see what it does. It's (also :)) archaic but would have been advanced in the time it was conceived.. select() and aio, more efficient feeders, dns, readers, clever file formats mostly mmaped. aio is not a great fit for Linux due to glibc. There's nothing in particular that would be a good model or forklift for inn because network programming changed a lot once kqueue and epoll entered a couple years later. nnrpd would be somewhat easy to make more efficient across a few dimensions. The least code churn might be integrating poll() directly in the per process forks and adding some eventing to deal with NNTP pipelining and I/O and DNS. The main benefit would be building up some I/O parallelism, all storage devices benefit from that and you smooth out the latency of hot vs cold I/Os through the page cache (or ARC/L2ARC) and actual storage devices. Data movement could optionally use sendfile and even KTLS sendfile on Linux and FreeBSD. A step further would be to actually multiplex clients. Instead of forking per client, one or more nnrpds multiplex clients across an event loop, usually kqueue/epoll/devpoll but could fall back to poll for wide compatibility. The decision tree would be somewhat influenced by what set of OSes does modern inn still compile on, did any cleanup eject 1990s era unix? Similar opportunities likely present in innd/innfeeder but I am not familiar with this code so far. File formats would be another consideration I am not familiar enough to evaluate right now but the network and disk I/O stuff interests me more.
Technical Details
Message-ID:
<10tr9m7$b63$1@csiph.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!csiph.com!.POSTED.172.83.103.228!not-for-mailReferences:
<10tofqn$edc$1@csiph.com> <10tpg5u$70e0$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!csiph.com!.POSTED.172.83.103.228!not-for-mail From: Kevin Bowling <kevin.bowling@kev009.com> Newsgroups: news.software.nntp Subject: Re: inn scalability improvements Date: Sun, 10 May 2026 17:59:50 -0700 Organization: csiph.com Internet News Service Message-ID: <10tr9m7$b63$1@csiph.com> References: <10tofqn$edc$1@csiph.com> <10tpg5u$70e0$1@news.trigofacile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 11 May 2026 00:59:51 -0000 (UTC) Injection-Info: csiph.com; posting-host="172.83.103.228"; logging-data="11459"; mail-complaints-to="admin@kev009.com" User-Agent: Mozilla Thunderbird Content-Language: en-US In-Reply-To: <10tpg5u$70e0$1@news.trigofacile.com>