🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #78133

Re: Linux, nnrpd and TCP_NODELAY.

#78133
From: David Canzi -- non-mailable
Date: Mon, 29 Oct 2007 04:19
56 lines
3879 bytes
In article <ffqtle$8fk$1@rumours.uwaterloo.ca>,
David Canzi -- non-mailable <dmcanzi@remulak.uwaterloo.ca> wrote:
>In article <slrnfi05a9.cp4.andrew+nonews@atlantis.supernews.net>,
>Andrew - Supernews  <andrew@supernews.net> wrote:
>>On 2007-10-25, David Canzi -- non-mailable <dmcanzi@remulak.uwaterloo.ca>
>>wrote:
>>> I watched the NNTP traffic between my workstation and the news
>>> server and saw every response from the server delayed a 10th of
>>> a second, no matter how trivial the request.  I patched nnrpd.c,
>>> and the delay disappeared.  The 10th of a second delay probably
>>> only affects sockets accepting incoming connections and not
>>> sockets connecting outbound.
>>
>>No, the direction of connection is irrelevent. (However, this is more
>>relevent in news.software.nntp; could you post your OS details and the
>>actual packet trace there?)
>
>This happened running innd under Linux.  It happened last year.
>I no longer have the packet dumps.  I may be able to construct
>a toy server and client later on and provide packet dumps, but
>it'll have to be after hours.

The easiest way turned out to be recompiling nnprd with my added
setsockopt call removed, and swapping it with the nnrpd we've
been using.  For each trial, I ran trn, went to alt.atheism,
downloaded the overview, exited trn.  I did this twice with the
NODELAY nnrpd, them twice with the non-NODELAY nnrpd.  trn used
17 XOVER commands to download the newsgroup overview.  The elapsed
times between the first and last XOVER for the 4 trials are:

Trial 1: 2.63 sec (with NODELAY)
Trial 2: 1.68 sec (with NODELAY)
Trial 3: 1.68 sec (without NODELAY)
Trial 4: 1.62 sec (without NODELAY)

NODELAY doesn't appear to make any difference.  (The first trial
probably took longer because it was the first trial.)

>I've run into trouble with you whenever I've strayed into
>theorizing, so to be on the firmest possible ground I will report
>my observations without trying to interpret them.
>
>After upgrading our news server, I noticed and a co-worker
>noticed that downloading overviews in trn was much slower.
>I also noticed that processing of some of my more adventurous
>killfiles was slower.  I dumped packets and the timestamps showed
>that server responses were delayed a tenth of a second, no matter
>how trivial the processing required to answer the client's request.
>
>After modifying nnrpd to set TCP_NODELAY, overview downloading
>and killfile processing were both much faster.

I have no idea what I was seeing last year.

-- 
David Canzi				| Eternal truths come and go. |
Technical Details
Message-ID: <fg3n07$5b9$1@rumours.uwaterloo.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news.uwaterloo.ca!not-for-mail
References: <tskirvin.20071015145146$5c92@cairo.ks.uiuc.edu> <ffot1o$iro$1@rumours.uwaterloo.ca> <slrnfi05a9.cp4.andrew+nonews@atlantis.supernews.net> <ffqtle$8fk$1@rumours.uwaterloo.ca>

Show Full Headers
Complete Article Headers
Message-ID: <fg3n07$5b9$1@rumours.uwaterloo.ca>
Subject: Re: Linux, nnrpd and TCP_NODELAY.
Date: Mon, 29 Oct 2007 04:19:19 +0000
From: dmcanzi@remulak.uwaterloo.ca (David Canzi -- non-mailable)
References: <tskirvin.20071015145146$5c92@cairo.ks.uiuc.edu> <ffot1o$iro$1@rumours.uwaterloo.ca> <slrnfi05a9.cp4.andrew+nonews@atlantis.supernews.net> <ffqtle$8fk$1@rumours.uwaterloo.ca>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news.uwaterloo.ca!not-for-mail
Newsgroups: news.software.nntp
Organization: IPR - Institute for Phlogiston Research
Lines: 56
NNTP-Posting-Host: remulak.uwaterloo.ca
X-Trace: rumours.uwaterloo.ca 1193631559 5481 129.97.109.26 (29 Oct 2007
X-Complaints-To: abuse@uwaterloo.ca
NNTP-Posting-Date: Mon, 29 Oct 2007 04:19:19 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: dmcanzi@remulak.uwaterloo.ca (David Canzi -- non-mailable)
X-Original-Bytes: 3594