🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #40454

Re: INN maxed? Time to add a Diablo router?

#40454
From: Joe Greco
Date: Mon, 04 Oct 1999 00:00
60 lines
3790 bytes
In news.software.nntp article <brad-0410991314520001@brad.techos.skynet.be>, brad@shub-internet.org (Brad Knowles) wrote:
:In article <ylvh8olmsi.fsf@windlord.stanford.edu>, Russ Allbery
:<rra@stanford.edu> wrote:
:
:> Feature of INN.  Joe Greco wrote it, in fact, IIRC.  It's much easier to
:> do stuff like that if you're a monolithic daemon, though.
:
:    I'm thinking that I might see what it would take to turn Diablo into a
:single select-based daemon, so that I could then enable an INN-like filter
:interface.

You need a lobotomy.

:    I think that would bring me a long ways towards making Diablo as fast
:as INN, and once I got there than I could look into what it would take to
:make the program multi-threaded, so that hopefully I could start knocking
:on the doors of NNTPRelay.

You need a lobotomy, followed by a jello-head-fill and a few hours in the
fridge.

:    However, I should probably also look into what it would take to make
:it run chrooted as a non-priviledged user.  Last thing you want with these
:monolithic daemons is to have them be a security hole....

You're insane.

Brad, Diablo currently _has_ what INN lacks:  a model that allows
concurrency on the inbound side.  INN is fatally flawed in that it is a
select-based demon (daemon too, but I mean _demon_).  When it is writing
to disk - your network I/O stops.  When a Diablo inbound feed process is
writing to disk, other processes cheerfully continue communicating with
peers, rejecting history entries, or retrieving articles.  Diablo is most
of what you'd want to see in a news reception engine.

Now, if you want to talk latency reduction, it might be possible to do
some architectural re-engineering of Diablo, along the lines of things that
I have posted here previously.  You are looking to optimize or eliminate
various bottlenecks, of which Diablo has far fewer than INN.  You'd want to
pull the filter processing out of the main process.  This almost certainly
would involve a dedicated child subprocess and some rather interesting IPC,
but could be done.  This'd allow each child to independently pass off
articles to the filter.  Doing the same thing to the outbound feed process
would also help, and would trivialize the master Diablo process into mostly
accepting new connections.

However, Diablo's real shortcoming is its outbound feed system, which is
where INN has some strength (sigh!)  innfeed has some of the same pitfalls,
being select-oriented, but at least you can have several of them running,
to gain concurrency.

Ultimately, you want to write a monolithic news system that is either
threaded at the kernel level (more ideal) or uses async disk I/O (less
ideal but OK for non-SMP).  One of the Sedores mailed me some new news
server code that implements this, but I've yet to find the time to putz
with it :-( :-( :-(

... JG

Technical Details
Message-ID: <37f8c10e$0$7751@news.execpc.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-mail
References: <foo-0210991412200001@192.168.2.3> <brad-0310991300490001@dialup995.brussels2.skynet.be> <ylvh8olmsi.fsf@windlord.stanford.edu> <brad-0410991314520001@brad.techos.skynet.be>

Show Full Headers
Complete Article Headers
Message-ID: <37f8c10e$0$7751@news.execpc.com>
Subject: Re: INN maxed? Time to add a Diablo router?
Date: Mon, 04 Oct 1999 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <foo-0210991412200001@192.168.2.3> <brad-0310991300490001@dialup995.brussels2.skynet.be> <ylvh8olmsi.fsf@windlord.stanford.edu> <brad-0410991314520001@brad.techos.skynet.be>
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: 532668235
Sender: jgreco@earth.execpc.com
X-Trace: S=T[4Gb?NPQI5[332>a9Y[bfNiaEHUgJWRYcgIRLSUE]94FW21i@1SVcUYR=2jZKP[21Vkhja922Vl=jlCRBl;3S4dTgmFn@ShW
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp
X-Complaints-To: abuse@execpc.com