🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #6872

newsfeed wanted.

#6872
From: Alec H. Peterson
Date: Wed, 24 Apr 1996 00:00
102 lines
5793 bytes
In article <4llpk2$m0a@olivea.atc.olivetti.com>,
Jerry Aguirre <jerry@strobe.ATC.Olivetti.Com> wrote:
>
>This is a good point to whoever implements streaming for nntplink.  When
>processing a backlog streaming is fairly streight forward.  When tailing
>off the active queue it would not be a good idea to have it wait for N
>entries before processing them.  Fortunately there is no "certain number"
>that is part of streaming.  It is perfectly OK to stream with only as
>many articles as are available.

Yes, but then that defeats the purpose of streaming (if you only send
an IHAVE with a small number of message IDs).

>
>I think the people that think streaming is some how bad because it hogs the
>connection are missing the point.  Yes, it is not "fair" but that does not
>mean it is not efficient or good.  If you have N feeds comming in do you
>really care which one is sending you the articles?  If one sends you all
>the articles then the others will, by being slow, get all their "ihave"s
>refused as duplicates.  If they have a problem with keeping up with their
>queue then let them convert to streaming.

The news server needs to do other things besides receive articles.  On
many sites, it also needs to accept reader connections.  And the
biggest thing it needs to do is send out articles, which it cannot do
until the stream is done.  If single IHAVEs are done instead, other
people can connect, and articles are still sent to the feeder
processes.

This is the biggest reason that I shut off streaming at Panix, because
people were complaining about huge lag in initiating reader
connections.  Also, some of our feeds were getting backlogs because a
huge stream was coming in, and it was taking somewhere on the order of
10 seconds for an 335 response to an IHAVE command.  With streaming
off, it ranges from instantaneous to 1-2.5 seconds worst case.

>
>Yes, there is a tendancy for streaming to make innd more sluggish in
>responding to new connections.  But innd already had that problem.  If
>instead of a streaming feed you split the existing feed "N" ways then
>the result would make innd just as sluggish.  The real problem is innd
>getting blocked when it does disk IO.  If that could be eliminated then
>the sluggishness induced by other feeds would not be a problem.

But without streaming I do _not_ have that problem (with slugish
connections)!  Connection time is reduced from sometimes as much as 7
seconds to just about always instantaeous.

I think that making the atomic operation size as small as possible is
a big win as far as sites with multiple, fast feeds are concerned.

Disk IO is certainly a big problem, however I have done various things
to help that (multiple spindles, for one).  Actually, the biggest
thing I did that helped immensely recently was to sort the files that
are passed to innxmit by rebatch/nntpsend.  That made a _HUGE_
performance win on the drives, because the (sometimes huge) directory
files are then read only once from disk, and then from the buffer
cache.  Once I did that (and turned off streaming) my server was
humming once again.  What really needs to be done for large sites is
to have a dedicated machine for article transfer, and another for
readers.

>
>Currently innd gives special priority to the control channel but not
>to new connections.  It would seem fairly trivial to change the loop to
>check for new connections before processing the regular feeds.  This would
>help with the delays associated with posting.

Indeed, and might not be a bad idea to do.

>
>Unfortunately we are faced with trying to come up with software that will
>handle wildly varying configurations.  There are major relay sites with
>hundreds of incomming and outgoing feeds.  There are other sites with
>few feeds but hundreds of readers.  There are leaf sites with only one
>feed across a slow link.  What seems like a great fix for one configuration
>winds up being very bad for the other.

Exactly, which is why the code that innd has now should not be
_replaced_, but rather augmented to support multiple behaviors.

>
>Could you explain what you mean by multiplex in this context?

What I'd like to see is a hack to innd that would take in a streamed
IHAVE command, do all of the relavent checks on the history database,
and return the message IDs it wants all without select()ing onto
another descriptor.  After that is done, the stream should be put onto
the select() cycle just like all of the other feeds are.  That way,
you get the win of doing the history lookup, which takes relatively
little time, and you also get the win of not having the stream
monopolize the server while it is coming in.

Alec

-- 
+------------------------------------+--------------------------------------+
|Alec Peterson - chuckie@panix.com   | Panix Public Access Internet and UNIX|
|Network Administrator               | New York City, NY                    |
+------------------------------------+--------------------------------------+

Technical Details
Message-ID: <4lmccn$6df@panix4.panix.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: <4l8jg8$pcd@bull.hkstar.net> <4lk4mg$sqg@olivea.atc.olivetti.com> <4lk7f1$9le@panix4.panix.com> <4llpk2$m0a@olivea.atc.olivetti.com>

Show Full Headers
Complete Article Headers
Message-ID: <4lmccn$6df@panix4.panix.com>
Subject: newsfeed wanted.
Date: Wed, 24 Apr 1996 00:00:00 +0000
From: chuckie@panix.com (Alec H. Peterson)
References: <4l8jg8$pcd@bull.hkstar.net> <4lk4mg$sqg@olivea.atc.olivetti.com> <4lk7f1$9le@panix4.panix.com> <4llpk2$m0a@olivea.atc.olivetti.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: 151257669
Distribution: inet
Supersedes: <4lmc65$691@panix4.panix.com>
Organization: Panix Public Access Internet and UNIX
Newsgroups: news.software.nntp