🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #26249

Found out why diablo's dnewslink had non-optimal performance

#26249
From: Matt Dillon
Date: Sat, 14 Feb 1998 00:00
30 lines
1724 bytes
    I just figured out why diablo's dnewslink doesn't seem to have the
    same performance as other outgoing feeders, even though I do fully
    pipelined streaming.

    I do something VERY stupid... Every time I send a command out, I
    write() it.  One line at a time.

    So, for example, if I am sending four 'check' commands, I do four 
    write()'s.

    This causes TCP's congestion control to kick in and allow only one 
    in-transit tcp fragment at a time.  The first write gets pushed out
    the network, but the other writes don't until the first one is ack'd.

    The result is decidedly non-optimal performance.

    Doh!  the 1.15 release next week will fix the problem.  I'll add output
    buffering to the code and low/high water marks so I don't feed commands
    out piecemeal.

						-Matt

-- 
    Matthew Dillon   Engineering, BEST Internet Communications, Inc.
    <dillon@best.net>, include original article w/ any response.
    do not under any circumstances send email to joeblow@bigspender.idiom.com
    and, for gods sake, don't email bucktram@popserver.idiom.com

Technical Details
Message-ID: <6c4t4e$o8j$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

Show Full Headers
Complete Article Headers
Message-ID: <6c4t4e$o8j$1@flea.best.net>
Subject: Found out why diablo's dnewslink had non-optimal performance
Date: Sat, 14 Feb 1998 00:00:00 +0000
From: dillon@best.net (Matt Dillon)
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: 325102561
X-Trace: 887486415 29769 dillon 206.184.139.132
Organization: Best Internet Communications, Inc. - 650 964 BEST
Newsgroups: news.software.nntp