🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #40250

Re: Diablo vs. INN questions...

#40250
From: Kjetil Torgrim Homme
Date: Wed, 29 Sep 1999 00:00
34 lines
2066 bytes
[Joe Greco]

>   :Well, the Diablo design didn't concentrate on latency at all, the
>   :intended configuration would run the batches every five minutes.  The
>   :realtime feeds are a hack.
>   
>   Hey, come on, that was mostly _my_ hack...  :-(  don't go insulting the
>   hacks.

Sorry! ;-)

>   :Lars Olafsen has patched our Diablo[1] so that the dnewslink listens
>   :on a pipe rather than polling the feed file every second.  This
>   :improves latency quite a bit (it's down to less than a second), but
>   :INN is of course faster still.
>   
>   Why's that?

Uhm, well, we haven't timed it on the same hardware, so it's just a
hunch.  The problem is that the select loop in the diablo master
process is "overwhelmed" by all the incoming and outgoing
communication, so it takes time between each time it visits a feed.

You see, the communication with the dnewslink process is via a two-way
pipe.  dnewslink tells the diablo master how many bytes it has read
from the pipe, so that the master knows when to stop jamming data into
the pipe, avoiding write() blocking.  We chose this method since it
was portable, but I am sure there are better ways of doing this
communication.


Kjetil T.

Technical Details
Message-ID: <1rn1u6y649.fsf@ganglot.ifi.uio.no>
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: <brad-2709991944100001@brad.techos.skynet.be> <1r7llcmch6.fsf@haey.ifi.uio.no> <37f058c1$0$7742@news.execpc.com>

Show Full Headers
Complete Article Headers
Message-ID: <1rn1u6y649.fsf@ganglot.ifi.uio.no>
Subject: Re: Diablo vs. INN questions...
Date: Wed, 29 Sep 1999 00:00:00 +0000
From: Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no>
References: <brad-2709991944100001@brad.techos.skynet.be> <1r7llcmch6.fsf@haey.ifi.uio.no> <37f058c1$0$7742@news.execpc.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: 530493293
X-Complaints-To: usenet@maud.ifi.uio.no
X-Trace: maud.ifi.uio.no 938560902 23404 129.240.66.26 (28 Sep 1999 23:21:42 GMT)
Organization: Dept. of Informatics, University of Oslo, Norway
NNTP-Posting-Date: 28 Sep 1999 23:21:42 GMT
Newsgroups: news.software.nntp