🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #9389

Re: how to speed up innd

#9389
From: Richard Michael Todd
Date: Tue, 16 Jul 1996 00:00
69 lines
4063 bytes
bill@twwells.com (T. William Wells) writes:

> 
> In article <4se1hs$hjp@necco.harvard.edu>,
> Harry Bochner <bochner@das.harvard.edu> wrote:
> : Very interesting!
> :
> : When INN was new, the big advantage over C News + nntpd, as I understood it, was
> : that it avoided writing batch files to disk. Now we have a report of better
> : performance doing it the old-fashioned way!

Yes, very interesting indeed.  I remember the days when INN1.4 was new and
we switched to it from C News-msgidd-nntpd-and-random-bits-of-baling-wire,
and saw a quite noticable performance jump.  That was back when a full feed
was somewhere around 20 kiloarticles/day or so (the good old days :-).  
Curious to see that something resembling the C News/nntpd approach might
actually perform better with today's traffic levels. 

> Hm. I don't know how the reference msgidd works; however, if it
> does disk lookups, it's not useful here. If it's a pure message ID
> cache, I think I still want something different. One of the few

It was a pure messageID cache. 

> Basically, I'd want to replace innd itself with relaynews and
> leave all the rest alone. That would require some changes to
> relaynews but not too many. Other things would have to be changed,
> too, especially those things that use innd for locking. I'll think

Yeah. At a minumum you'd want to change the INN expire to lock out
relaynews during the entire creation of the new history db,instead of
the existing "reserve/pause" stuff.  (You could hack C News expire to
do delayrm instead, but I suspect hacking INN expire to respect C News
locking is easier.)

> : This should help, but I think you need to go further. The inherited model of one
> : article per file has got to go, I think. Various ideas about this were tossed
> : around recently (and I have my own ;-), but the main thing we're waiting for is

Doesn't every poster to news.software.nntp have his own idea of how to
re-architect the Usenet spool system? :-)

> : some one to find the time to do a proof-of-concept implementation of some sort.

I believe Mark Delany was working on one, though I don't know how far
he's gotten.  I've been working on some ideas of my own for changes to
the news spool format (not as drastic as the kind Delany was working
on), hacking them into innd over the past couple of months.  I'm still
not sure whether they actually improve overall article-processing
performance, though.  They didn't on one system I tried it on, but that one
system has fairly limited hardware resources (most notably, only ~2M of 
disk cache), so may not be representative of how performance is on larger
servers.  I'm gonna try to run tests on another machine the next couple
weeks to see what happens. 

> While I have my own such scheme :-), I suspect that none of them
> will offer a major improvement over the Unix file system. At some
> point you end up reimplementing a file system....

More or less, though with luck the specific file system you implement will
be more suited towards the needs of news than the "standard" filesystem is.
For instance, the filenames for articles in a newsgroup are always numbers,
so in a sense you don' actually need to store the filenames for articles like
you would in a traditional filesystem directory, you just need to store 
a couple of integers (lowest/highest article number) and then an array of
disk offsets/article sizes indexed by article number. 

Technical Details
Message-ID: <vz2enmcvi1q.fsf@wildstar.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <4sc8e0$q8u@twwells.com> <4se1hs$hjp@necco.harvard.edu>

Show Full Headers
Complete Article Headers
Message-ID: <vz2enmcvi1q.fsf@wildstar.net>
Subject: Re: how to speed up innd
Date: Tue, 16 Jul 1996 00:00:00 +0000
From: Richard Michael Todd <rmtodd@wildstar.net>
References: <4sc8e0$q8u@twwells.com> <4se1hs$hjp@necco.harvard.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 168478215
Organization: WildStar Internet Services
Newsgroups: news.software.nntp