Article View: news.software.nntp
Article #35380Re: diablo dnewslink & solaris
From: Matthew Dillon
Date: Fri, 12 Feb 1999 00:00
Date: Fri, 12 Feb 1999 00:00
31 lines
2200 bytes
2200 bytes
:In article <7a05r3$4lj$1@nnrp1.dejanews.com>, <raj@cup.hp.com> wrote:
:>how does dnewslink present messages to the connection? was it synchronous
:>reqeust/reponse on a message by message basis, or was it pipelined? was it
:>doing something unfortuneate like presenting a message to the connection in
:>multiple sends? i've always wondered how often TCP_NODELAY is _really_ needed
:>and how often it is just a kludge.
:>
:>rick jones
It's pipelined. dnewslink utilizes the fact that TCP buffers outgoing
and incoming data to keep the outgoing pipeline full. It fills the
outgoing pipeline then blocks on reading a response. It then loops up
and fills the outgoing pipeline again. This way it can get away with
using normal blocking I/O and still maintain a command/response pipeline.
dnewslink buffers up multiple requests itself and sends them out
with a single write. I stick TCP_NODELAY in there because nagle would
occassionally kick in and/or the delayed-ack (0.1 sec) would cause a big
drop in performance, at least with FreeBSD. Having TCP_NODELAY should
not have any sort of detrimental effect because it's a transaction
oriented protocol and I implement low/high buffering water marks in
software to avoid a silly-window syndrome.
-Matt
--
Matthew Dillon Engineering, BEST Internet Communications, Inc.
<dillon@backplane.com>
[always include a portion of the original email in any response!]
Technical Details
Message-ID:
<36c4bc5b$0$41807@apollo.backplane.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-mailReferences:
<79rnpa$6e3$1@nnrp1.dejanews.com> <79s30t$r04$1@wave.cam.uk.internal> <79vofb$plj$1@flea.best.net> <7a05r3$4lj$1@nnrp1.dejanews.com>Show Full Headers
Complete Article Headers
Message-ID: <36c4bc5b$0$41807@apollo.backplane.com> Subject: Re: diablo dnewslink & solaris Date: Fri, 12 Feb 1999 00:00:00 +0000 From: dillon@apollo.backplane.com (Matthew Dillon) References: <79rnpa$6e3$1@nnrp1.dejanews.com> <79s30t$r04$1@wave.cam.uk.internal> <79vofb$plj$1@flea.best.net> <7a05r3$4lj$1@nnrp1.dejanews.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: 443798590 X-Trace: apollo.backplane.com 918862939 41807 209.157.86.2 Newsgroups: news.software.nntp