Article View: news.software.nntp
Article #26238Re: Found out why diablo's dnewslink had non-optimal performance
From: Marc Slemko
Date: Sat, 14 Feb 1998 00:00
Date: Sat, 14 Feb 1998 00:00
36 lines
1935 bytes
1935 bytes
In <6c4t4e$o8j$1@flea.best.net> dillon@best.net (Matt Dillon) writes: > 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. Erm... this isn't exactly true in the typical situation. Any stack that only allows one unacked packet isn't going to work for many useful things. Are you sure you aren't running into a combination of Nagle + delayed acks? Try disabling Nagle and seeing if you get the same thing. Now, that isn't the right solution obviously, but... If you modify your code to be as efficient as possible when sending data to avoid multiple write()s, you may still want to disable Nagle. Making this decision, however, requires more careful analysis of how things are working. (no, I haven't looked to see if you already do disable Nagle... if so, ignore me0
Technical Details
Message-ID:
<6c598n$q6o$1@scanner.worldgate.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:
<6c4t4e$o8j$1@flea.best.net>Show Full Headers
Complete Article Headers
Message-ID: <6c598n$q6o$1@scanner.worldgate.com> Subject: Re: Found out why diablo's dnewslink had non-optimal performance Date: Sat, 14 Feb 1998 00:00:00 +0000 From: Marc Slemko <marcs@znep.com> References: <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 X-Deja-AN: 325144327 Organization: WorldGate Inc. http://www.worldgate.com/ Newsgroups: news.software.nntp