🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #26356

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

#26356
From: Jeff Garzik
Date: Tue, 17 Feb 1998 00:00
29 lines
2025 bytes
Olaf Titz wrote:
> Matt Dillon <dillon@best.net> wrote:
> >     The reason you don't usually want to use TCP_NODELAY is because it
> >     basically allows hundreds of unacked short packets to be in transit all
> >     at once, even with nagle enabled.
> 
> TCP_NODELAY does mean "disable Nagle".
[...]
> No; this exactly happened because Nagle was disabled.
> Still the proper way to deal with this situation is buffering writes
> on the application level. (For the CGI example, if the program is
> written in perl, it should use perl's internal buffers and leave $| to
> 0, but unfortunately this can collide with e.g. output from "system"
> (I had this problem once) or collide with fork, since perl lacks an
> fflush(stdout) operation.)

Should not disable Nagle.  Especially if your router has congestion
control based on packet counts.

If your OS is smart, write() and writev() will dump into the TCP
buffer.  If your feeder is fast (and the TCP buffer large), you can keep
the buffer full enough so that a packet contains more than a single
CHECK.
-- 
Jeff Garzik			    Typhoon, Cyclone, Diablo, and INN
http://www.spinne.com/usenet/	           News tuning and consulting

Technical Details
Message-ID: <34E8D894.8FB0ACFD@spinne.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: <6c4t4e$o8j$1@flea.best.net> <6c598n$q6o$1@scanner.worldgate.com> <6c63vf$pq8$1@flea.best.net> <6cadmt$i8q$1@bigred.inka.de>

Show Full Headers
Complete Article Headers
Message-ID: <34E8D894.8FB0ACFD@spinne.com>
Subject: Re: Found out why diablo's dnewslink had non-optimal performance
Date: Tue, 17 Feb 1998 00:00:00 +0000
From: Jeff Garzik <jeff.garzik@spinne.com>
References: <6c4t4e$o8j$1@flea.best.net> <6c598n$q6o$1@scanner.worldgate.com> <6c63vf$pq8$1@flea.best.net> <6cadmt$i8q$1@bigred.inka.de>
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: 325707400
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Spinne http://spinne.com
MIME-Version: 1.0
NNTP-Posting-Date: Mon, 16 Feb 1998 16:23:21 PST
Newsgroups: news.software.nntp