🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #6483

Re: unoff4 really big problem

#6483
From: Joe Greco
Date: Thu, 11 Apr 1996 00:00
80 lines
5160 bytes
In news.software.nntp article <VIXIE.96Apr9142434@wisdom.vix.com>, vixie@vix.com (Paul A Vixie) wrote:
:>INND was written that way because the NNTP protocol is lock-step.
:>I'm not surprised that breaking this can cause problems.  I've never
:>been enamored of the streaming concept.
:
:Nor have I.  That's why the "innfeed" program can open several simultaneous
:streams to the same destination.  This produces most of the same effects as
:streaming, but without any protocol changes.

That's nice (and some of us have been doing substantially similar things for
some time now), but at some point, you're still going to brush up against
the INN monolithic design as a major obstacle.  I've argued this long and
often in the past in various forums.

Basically we are faced with a situation where there is substantial growth in
terms of articles per second.  Just looking at it from that point of view,
the most obvious reaction is to get faster disks.  Since I don't see that
happening too quickly, the next reaction is to get more disks.
Unfortunately, innd cannot parallelize between disks.  This is a major
bottleneck at any large Usenet site (even at some smaller ones), and will 
continue to get worse as the AAPS rate increases.

In my opinion, we need to (minimally) reconsider the architecture of INN
itself, if it is to remain viable in five years.  With CPU becoming
radically cheaper than five years ago, the monolithic process design may
not make sense any longer, as context switches are cheap and I/O is
expensive.  Perhaps a model with a process-per-inbound-connection,
process-per-outbound-connection, process(es)-per-spool-disk, history
process, etc.

I sort of envision a model like this (three links for simplicity):

     --------------------     --------------------     --------------------
     |  nntpd process   |     |  nntpd process   |     |  nntpd process   |
     |  link #0         |     |  link #1         |     |  link #2         |
     |  processes nntp, |     |  processes nntp, |     |  processes nntp, |
     |  does initial    |     |  does initial    |     |  does initial    |
     |  history lookups |     |  history lookups |     |  history lookups |
     |  and rejections  |     |  and rejections  |     |  and rejections  |
     --------------------     --------------------     --------------------
        |   ,--------------------------'                         |
        |   |   ,------------------------------------------------'
       \|/ \|/ \|/
     --------------------                              --------------------
     |  management      |                              |  spool writer    |
     |  process         |             ?                |  process, spool  |
     |  writes history  |                              |  disk #0         |
     |  assigns to      |             ?                --------------------
     |  spool writer    |                              --------------------
     |  process         |                              |  spool writer    |
     |  assigns to      |                              |  process, spool  |
     |  outbound feeds  |                              |  disk #1         |
     --------------------                              --------------------
        |   |   |
       \|/ \|/ \|/

Outbound feeds done as we do today, perhaps with your "innfeed" style of
program so that the mgmt process deals only with the high level stream of
article ID's to transmit.

It is unclear whether the nntpd processes would retain connections to each
spool writer, with the management process only dealing with the message-ID,
or if the management process would actually receive the articles and pass
them to the spool writer.  Additional performance penalties in the latter
case.  The management process would retain final "locking" control over the
history to address race conditions, in any case, and would bear the most
similarity to the current innd.

This sort of architecture would allow each feed much better transaction
response time, and would potentially allow simultaneous writes on
min(number-of-inbound-links, number-of-spool-disks) spool disks, which is
better than the current situation.

... Joe

-------------------------------------------------------------------------------
Joe Greco - Systems Administrator			      jgreco@ns.sol.net
Solaria Public Access UNIX - Milwaukee, WI			   414/546-7968

Technical Details
Message-ID: <4kjvjp$fvp@brasil.moneng.mei.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: <DoxwMz.nK@twwells.com> <Dp8MrI.Hw4@twwells.com> <4k798c$q3p@paperboy.osf.org> <VIXIE.96Apr9142434@wisdom.vix.com>

Show Full Headers
Complete Article Headers
Message-ID: <4kjvjp$fvp@brasil.moneng.mei.com>
Subject: Re: unoff4 really big problem
Date: Thu, 11 Apr 1996 00:00:00 +0000
From: jgreco@brasil.moneng.mei.com (Joe Greco)
References: <DoxwMz.nK@twwells.com> <Dp8MrI.Hw4@twwells.com> <4k798c$q3p@paperboy.osf.org> <VIXIE.96Apr9142434@wisdom.vix.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
X-Deja-AN: 146988656
Distribution: inet
Organization: Marquette Electronics, Inc. - Milwaukee, WI.
Newsgroups: news.software.nntp