🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #22176

Re: Diablo feeder lag? (was Re: Accuracy of Freenix Top 1000)

#22176
From: Matt Dillon
Date: Tue, 07 Oct 1997 00:00
75 lines
4381 bytes
:In article <61dl7g$gnb$1@havoc.gtf.gatech.edu>,
:Jeff Garzik  <jeff.garzik@spinne.com> wrote:
:>Tsar Barry BOFHwsma  <ag786@yfn.ysu.edu> wrote:
:>>    Anyway, my experience has been that sites which have switched over to
:>>Diablo from some other high-performance software (including a well-tuned
:>>INN), have dropped from providing me with a major source of articles, to
:>>only giving me a mere handful.  So there's some sort of barrier to rapid
:>>turnaround.  And not just seconds.  My articles can pass through two
:>>nntpsend hops yet still be accepted by another site fed by Diablo.
:>
:>
:>Actually this makes complete sense when you think about it.
:>
:>The first slowdown is real-time feeding.  Diablo only opens a *single*
:>stream for real-time feeds.  It does a tail on the current batch file,
:>waiting for data on new articles at the end, and offering those
:>articles to the downstream site.
:>
:>
:>The second slowdown is in batch queue processing.  Once every five
:>minutes, the active batch file (used for real-time feeding) is given a
:>sequence number (1, 2, 3, ...) and stored on the batch queue.  Diablo
:>then starts up to N parallel feeder processes (1 stream per process)
:>to offer the articles listed in each batch file -- starting with the
:>oldest batch file.
:>
:>It's easy to conceive a scenario where:  5,000 articles arrive in five
:>minutes; Diablo offers 1,000 of those articles to the downstream site,
:>and then the active batch file is rotated.  If there is any backlog,
:>the other 4,000 articles won't be sent until all the other backlog
:>is cleared out.

    Well, tailing the queue file doesn't really cost anything, and the
    realtime feed will migrate along with the queue file rename and do
    all 5000.  If the destination can keep up, a realtime feed is
    unlikely to get behind so I don't even think the single-process
    nature of the realtime feed gets in the way all that much.

    With rtflush, the article latency runs about 1 second.  Realtime without
    rtflush runs 5-10 seconds, and normal batch processing runs 5 minutes
    of latency.  I find that outgoing feeds to top-10 sites are extremely
    sensitive to latency mainly because one is reading from, say, #1 on the
    top-1000 and trying to write to, say, #2 on the top-1000 and competing
    against a direct feed from #1 to #2.  This means that #2 will almost
    always have the article ahead of me even with instantanious turnaround.
    Even a 5 second delay can result in #2 not accepting ANY articles.

    I've tested this with our BBN feed.  With realtime+rtflush (1 second
    latency), I actually push 4% of my articles to BBN even though BBN gets
    the same article one hop sooner directly from other sites.  If I use
    only realtime (5 second latency), I wind up pushing 0% of my articles
    to BBN.  If I hack the code and change the sleep() to a usleep(1000)
    to reduce the latency to 1 mS, I can push 6 to 8%, which is getting
    quite significant.  It means that I am beating out their direct feeds.

    I get the exact same behavior for maxwell, erols, and umich.  I also
    see this behavior with other well connected sites not in the top-10,
    such as Aimnet (verio).

    Personally, I see no reason to waste resources on trying to get the 
    latency down below a second.

:>Hacking Diablo to feed from the latest batch file to the earliest
:>might be a good idea -- it will have less of an adverse impact on
:>downstream sites' caches that way.
:>
:>	Jeff

    I've tried this but it doesn't really work well in practice.

						    -Matt


Technical Details
Message-ID: <61dq97$cs1$1@flea.best.net>
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: <Pine.LNX.3.96.971007154523.1602G-100000@marley.vszbr.cz> <61dl7g$gnb$1@havoc.gtf.gatech.edu>

Show Full Headers
Complete Article Headers
Message-ID: <61dq97$cs1$1@flea.best.net>
Subject: Re: Diablo feeder lag? (was Re: Accuracy of Freenix Top 1000)
Date: Tue, 07 Oct 1997 00:00:00 +0000
From: dillon@best.net (Matt Dillon)
References: <Pine.LNX.3.96.971007154523.1602G-100000@marley.vszbr.cz> <61dl7g$gnb$1@havoc.gtf.gatech.edu>
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: 278471371
X-Trace: 876244073 28441 dillon 206.184.139.132
Organization: Best Internet Communications, Inc. - 650 964 BEST
Newsgroups: news.software.nntp