🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
15 messages
15 total messages Started by T. William Wells Wed, 27 Mar 1996 00:00
unoff4 really big problem
#6067
Author: T. William Wells
Date: Wed, 27 Mar 1996 00:00
24 lines
1539 bytes
I have three main feeds. One from a local ISP, one from
Sprintlink, and one from Uunet. The first two are streaming. The
third is not.

To my great annoyance, the uunet feed was falling behind. Nope,
not uunet's fault, even though they don't stream. They should
have got just so far behind and then stayed there as most of
their posts would have been dups. But they didn't. Yesterday, one
feed sent me some 160,000; uunet managed 39,000 articles -- and
that was with uunet connected 24 hours. Nope. Not the network.
Not the server system either.

I did a kernel trace to see what was what and here is what I
found: when the streaming feeds grabbed a bunch of stuff, they
did it all between selects. That is, it would select, process a
large number of articles, then select. Naturally, that "process a
large number of articles" impacts *everything*. My users see
horrible slowdowns in server response because it's waiting for
the select to come around. And those delays absolutely *kill*
non-streaming connections.

Any ideas what's up?

Re: unoff4 really big problem
#6216
Author: T. William Wells
Date: Tue, 02 Apr 1996 00:00
17 lines
1150 bytes
Well, I now know what the problem *is*.

Innd buffers reads absolutely as much as it can, apparently
limited only by how much can be read at one time. If your OS has a
lot of buffering internally, you could buffer a huge number of
commands and articles.

Each of those, of course, will result in a significant amount of
processing time. The main loop of innd tries to ensure fairness
and a reasonable response time to the control channel by limiting
the number of channels processed at a time; however, this doesn't
help if, say, those channels are processing umpteen check
commands.

The fix is not trivial....

Re: unoff4 really big problem
#6374
Author: Rich Salz
Date: Sun, 07 Apr 1996 00:00
10 lines
940 bytes
In <Dp8MrI.Hw4@twwells.com> bill@twwells.com (T. William Wells) writes:
>Innd buffers reads absolutely as much as it can, apparently
>limited only by how much can be read at one time.

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.
	/r$

Re: unoff4 really big problem
#6376
Author: Mitch Collinsworth
Date: Sun, 07 Apr 1996 00:00
19 lines
1207 bytes
In <4k798c$q3p@paperboy.osf.org> rsalz@osf.org (Rich Salz) writes:

>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.


Rich,

It doesn't really suprise me either, but do you have other
recommendations on how to speed up feed throughput?  The rtt problem
seems to be only getting worse as load increases.  

-Mitch

[P.S. Your posts in this group are coming through with
"Distribution: inet", but it's no longer an inet group.]

Re: unoff4 really big problem
#6399
Author: Marc Roger
Date: Mon, 08 Apr 1996 00:00
19 lines
1312 bytes
On 7 Apr 1996 02:28:28 GMT, in news:<4k798c$q3p@paperboy.osf.org>,
Rich Salz <rsalz@osf.org> wrote in news.software.nntp:
>In <Dp8MrI.Hw4@twwells.com> bill@twwells.com (T. William Wells) writes:
>>Innd buffers reads absolutely as much as it can, apparently
>>limited only by how much can be read at one time.

>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.
>	/r$

The problem is an implementation issue. The streaming "concept" in itself
is excellent.

-- 
Marc Roger


Re: unoff4 really big problem
#6418
Author: Mitch Collinsworth
Date: Tue, 09 Apr 1996 00:00
11 lines
1016 bytes
In <VIXIE.96Apr9142434@wisdom.vix.com> vixie@vix.com (Paul A Vixie) writes:

>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.

Where can innfeed be obtained?

-Mitch

Re: unoff4 really big problem
#6422
Author: Paul A Vixie
Date: Tue, 09 Apr 1996 00:00
14 lines
1054 bytes
>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.
-- 
Paul Vixie
La Honda, CA			"Illegitimibus non carborundum."
<paul@vix.com>
pacbell!vixie!paul

Re: unoff4 really big problem
#6461
Author: James Brister
Date: Wed, 10 Apr 1996 00:00
17 lines
1288 bytes
Mitch Collinsworth (mkc@rex.graphics.cornell.edu) wrote:
: In <VIXIE.96Apr9142434@wisdom.vix.com> vixie@vix.com (Paul A Vixie) writes:

: >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.

: Where can innfeed be obtained?

It's being beta tested right now. Once things have settled down I'll be
releasing it with an announcement to show up here.

James
--
James Brister                                            brister@vix.com

Re: unoff4 really big problem
#6472
Author: Rich Salz
Date: Wed, 10 Apr 1996 00:00
15 lines
1207 bytes
In <4k9qndINNsju@rex.graphics.cornell.edu> mkc@rex.graphics.cornell.edu (Mitch Collinsworth) writes:
>It doesn't really suprise me either, but do you have other
>recommendations on how to speed up feed throughput?  The rtt problem
>seems to be only getting worse as load increases.  

Multiple feeds at the same time (split the queue), UUCP-style ihave/sendme
batches, even straight UUCP over TCP.

>[P.S. Your posts in this group are coming through with
>"Distribution: inet", but it's no longer an inet group.]

I'll drop a line to OSF's news admin.
	/r$

Re: unoff4 really big problem
#6483
Author: 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

Re: unoff4 really big problem
#6484
Author: Joe Greco
Date: Thu, 11 Apr 1996 00:00
25 lines
1991 bytes
In news.software.nntp article <4kjvjp$fvp@brasil.moneng.mei.com>, jgreco@brasil.moneng.mei.com (Joe Greco) wrote:
: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.

By the way, I've done a proof of concept, with _just_ the nntpd
processes.  It definitely makes a difference on articles that would be
rejected (i.e. large backlogs being sent to you of articles you already have
from other sources), but when the innd process behind it is relatively
saturated, the whole thing isn't anywhere near as fast as it would be if the
nntpd's didn't have to slow down much (i.e. it processes 10 rejects in a
second, hits a "wanted" article and waits five or six seconds for innd to
respond,...)

... Joe

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

Re: unoff4 really big problem
#6525
Author: Mark Delany
Date: Fri, 12 Apr 1996 00:00
29 lines
2107 bytes
jgreco@brasil.moneng.mei.com (Joe Greco) writes:

>In news.software.nntp article <4kjvjp$fvp@brasil.moneng.mei.com>, jgreco@brasil.moneng.mei.com (Joe Greco) wrote:
>: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.

>By the way, I've done a proof of concept, with _just_ the nntpd
>processes.  It definitely makes a difference on articles that would be
>rejected (i.e. large backlogs being sent to you of articles you already have
>from other sources), but when the innd process behind it is relatively
>saturated, the whole thing isn't anywhere near as fast as it would be if the
>nntpd's didn't have to slow down much (i.e. it processes 10 rejects in a
>second, hits a "wanted" article and waits five or six seconds for innd to
>respond,...)

One thing to consider is that you might come up with a radically
different design for a feeder-only system than you would for a system
that has to support readers. A feeder-system has *much* simpler I/O
requirements than a reader-system.


Regards.

Re: unoff4 really big problem
#6588
Author: eyal daisy
Date: Mon, 15 Apr 1996 00:00
4 lines
791 bytes
a


Re: unoff4 really big problem
#6594
Author: eyal daisy
Date: Mon, 15 Apr 1996 00:00
4 lines
792 bytes
jj


Re: unoff4 really big problem
#6887
Author: Matthias Urlichs
Date: Thu, 25 Apr 1996 00:00
33 lines
2213 bytes
In news.software.nntp, article <4kjvjp$fvp@brasil.moneng.mei.com>,
  jgreco@brasil.moneng.mei.com (Joe Greco) writes:
> 
> 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.
> 
Interesting idea... You can do that with lots of pipes, or with shared
memory (Sys5 style, mmap, or a threading system). Personally I would _not_
want to use pipes.

Sys5-style shared memory is probably a bad idea because you can't always
fit big articles into one shared memory block; some implementations limit
you to 32k or so.

I'd like to have a month or so, one that doesn't appear in the calendar ;-)
to program something like this, but unfortunately I don't.

-- 
"If you do everything, you'll win."
		-- Lyndon Baines Johnson
-- 
Matthias Urlichs        \ Noris Network GmbH i.Gr/ Xlink-POP N�rnberg 
Schleiermacherstra�e 12  \  Linux+Internet      /  EMail: urlichs@noris.de
90491 N�rnberg (Germany)  \   Consulting+Programming+Networking+etc'ing
          PGP: 1B 89 E2 1C 43 EA 80 44  15 D2 29 CF C6 C7 E0 DE 
       Click <A HREF="http://smurf.noris.de/~smurf/finger">here</A>.    42

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads