Article View: news.software.nntp
Article #9343Re: how to speed up innd
From: T. William Wells
Date: Mon, 15 Jul 1996 00:00
Date: Mon, 15 Jul 1996 00:00
68 lines
3899 bytes
3899 bytes
In article <4se1hs$hjp@necco.harvard.edu>, Harry Bochner <bochner@das.harvard.edu> wrote: : In article <4sc8e0$q8u@twwells.com>, bill@twwells.com (T. William Wells) writes: : |> Not until I totally disconnected article receipt from article : |> filing did matters improve. On my system, there's now this stupid : |> nntp daemon sitting on the nntp port (it doesn't even do : |> streaming) which creates rnews batches in a 70M spool area. A : |> single rnews process feeds that into innd. (I don't even do an : |> msgidd equivalent!) : : 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! There's a big "sigh!" lurking within all this -- my original setup used C news rather than INN, as it's what I had been using previously. (I've been running C news installations since C news began!) I didn't switch for performance reasons; I switched because the nnrpd I was using didn't do overview. From hindsight, i should have just stuck with what I had and installed INN's nnrpd. : I have 2 quick variations to suggest: : : 1) msgidd would be a good thing. Easiest way to get it might be to use the : reference nntpd implementation; seems to me that it shouldn't need much : modification to run in your scheme. 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 things that streaming absolutely has over the regular protocol is a return code that says "not right this instant, maybe in a few". I'd want to take advantage of this to improve reliability while being able to prevent simultaneous sending of an article. : 2) I'd be interested in seeing the results of using C News! After all, it's not : clear what efficiency advantage INN has in your modified set up. Since the : data-structures are mostly compatible, it shouldn't too hard to switch between : C News and INN. (I'd like to graft delayrm and fastrm into C News expire, tho.) 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 about it but I don't know if I'll have the time to play with this. : The major point, though, is: : |> The first : |> is that the Unix file system, used naively, is a major bottleneck. : |> I hope to recode things to use smaller directories, by : |> filing articles using a nnnnnnn/nnn scheme rather than just : |> shoving all articles into one directory. : : 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 : some one to find the time to do a proof-of-concept implementation of some sort. 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....
Technical Details
Message-ID:
<4sel1d$33m@twwells.com>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-mailReferences:
<4sc8e0$q8u@twwells.com> <4se1hs$hjp@necco.harvard.edu>Show Full Headers
Complete Article Headers
Message-ID: <4sel1d$33m@twwells.com> Subject: Re: how to speed up innd Date: Mon, 15 Jul 1996 00:00:00 +0000 From: bill@twwells.com (T. William Wells) 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: 169404294 Organization: None, Mt. Laurel, NJ Newsgroups: news.software.nntp