🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #28382

Re: feed question on alt.binaries.sounds.mp3

#28382
From: Curt Welch
Date: Mon, 25 May 1998 00:00
112 lines
6516 bytes
homer@light.lightlink.com (Homer Wilson Smith) wrote:
> Curt Welch (curt@kcwc.com) wrote:
> >How many streams were they trying to send you?  Just 3?  So you went
> >from 30 incomming connections to 3 and you wonder why you got less news?
>
>      I see your point, but I am not sure I understand the logic.  How
> does a logical connection limit throughput.

Yeah, it's not obvious.  And I can't say that I really understand
all that's going on.  But I'll try to give you some insight.

The old way to send news was to use the IHAVE command.  The server sending
the articles sends you an IHAVE <message-id> command.  Due to network
delays, it takes some time to get to you.  Inn receives that command, and
does disk IO (if needed) to check the history file to see if you already
have that article.  Inn responds with a code saying either send me the
article or don't.  That code is sent back to the sending server, which then
either sends the article, or sends the next IHAVE command.  All these
network delays and IO delays add up to a lot more than what it would take
to receive 8+ articles per second.  But with more parallel pipes, each end
can do more work while waiting for the data to travel back and forth
between the systems.

To improve on this single threaded behavior of NNTP, the streaming protocol
was created.  With this, multiple CHECK commands are sent to find out what
articles the receiving system wants.  But the articles are sent with
TAKETHIS commands separate from the CHECK commands.  This way the two
servers can be working on multiple articles at the same time - and get many
of the same advantages of opening multiple connections.

But streaming doesn't fix the problem for various reasons.  But it's mainly
because TCP still limits just how much data can be bufferd in one
connection.  And if your connection is dropping any packets, the TCP
slow-start algorithm cuts that buffering down even further.  Personally I
think adding streaming was just a waste of time.  Running multiple parallel
connections with the IHAVE protocol seems to me to be the best algorithm.

With multiple connections, there's a higher chance that inn will always
have something to do and won't waste any idle time just waiting for more
data to come over the network.

You might think that after some small number of connections - like maybe 5,
there would be no point in adding more.  But in practice, it seems that the
more you add, the more throughput you end up with.  Though there is clealy
a point of dimishing return.  I'd guess that no matter how many connection
you have, you still hit times where none of connecitons has data waiting
for inn to process, so adding more connections can always reduce the
probability of that happening further.

> Is there really that much
> overhead on each 'connection', that having multiple concurrnet
> connections really helps?

Yes.  It's all due to the fact that it's an interactive protocol.  That is,
the sending server is always asking if you want something and waiting for
your answer before sending something.

I've heard that some sending clients (innfeed?) will stop asking and just
send (using the streaming TAKETHIS command) if you always answer yes.  That
of course would only happen if you got all your news from a single feed.

> Its not like each connection is a whole other
> machine sending a whole other stream of news.  Its one machine with two
> logical pipes, right?

Yes.  But sometimes it's a sepearte process for each sending pipe and can
make the sending machine work better.  But sending is seldom the problem,
it's almost always receiving that's the problem.

>      Presumably I should learn what the maximum advantageous number
> of connections per site is, say 6, and then let everyone use that.  I
> would guess innfeed tries to do that anyhow, right?  So really if
> we don't limit it, innfeed will make the right choices?

I've never played with innfeed so I can't answer that.  Though in general,
if your server has good enough performance, all those issues just aren't
important.

>      I am being talked into moving to a Pentium 333 box running CNSF
> and Linux 2.0.32.  Linux only because I know it and it has the
> smallest learning curve for me in present time when I need to get my
> news server working again up to snuff.
>
>     What I am being told is that I may do fine on one scsi controller,
> using single wide Seagate Hawks 5400RPM, with one drive for news,
> one for history and one for logs.

Could be.  I have no idea what a CNFS machine would need.

>     Comments are welcome.  I have the above hardware configuration on
> hand, so its easiest to do.

Then I'd say just do it and see how it works.

> >Did you ever tell us what your disk configuration was? 10 to 20 disks
> >on an inn system isn't uncommon.  You need lots of small fast disks
> >to spread the disk IO over.
>
>      SunOS 4.1.4 50Mz Sparc 20, 'four 4Gig Seagate Hawks single wide scsi
> on single controller. 256 Meg.

Four drives just doesn't cut it with inn.  That's your problem.  Add four
more drives and things will get better.  But to really keep up you will
probably need even more than that. (unless you switch to a CNFS based inn
as your are talking about).

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <19980525172225.138$N4@newsreader.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: <35638f92.392303492@nntp.mid-ga.com> <35671ffe.0@news2.lightlink.com> <19980523173034.983$Xr@newsreader.com> <3567754d.0@news2.lightlink.com> <19980523235819.030$pW@newsreader.com> <3568c725.0@news2.lightlink.com> <19980525005336.093$GV@newsreader.com> <3569b647.0@news2.lightlink.com>

Show Full Headers
Complete Article Headers
Message-ID: <19980525172225.138$N4@newsreader.com>
Subject: Re: feed question on alt.binaries.sounds.mp3
Date: Mon, 25 May 1998 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <35638f92.392303492@nntp.mid-ga.com> <35671ffe.0@news2.lightlink.com> <19980523173034.983$Xr@newsreader.com> <3567754d.0@news2.lightlink.com> <19980523235819.030$pW@newsreader.com> <3568c725.0@news2.lightlink.com> <19980525005336.093$GV@newsreader.com> <3569b647.0@news2.lightlink.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: 356447031
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
Newsgroups: news.software.nntp