pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Boreham <david_list@boreham.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Axel Waggershauser <awagger@web.de>
Cc: pgsql-performance@postgresql.org
Subject: Re: Low throughput of binary inserts from windows to linux
Date: Tue, 12 Dec 2006 09:56:02 -0700
Message-ID: <457EDF22.4010303@boreham.org> (raw)
In-Reply-To: <4101.1165941200@sss.pgh.pa.us>
References: <5e66c6e90612080417r23ecaea4p210905f868c26c7f@mail.gmail.com>
	<5e66c6e90612081724m57293ffdy21d6b45697e69bd4@mail.gmail.com>
	<3317.1165636358@sss.pgh.pa.us>
	<5e66c6e90612110658r3c0918f6v4fd3682363db5c15@mail.gmail.com>
	<12645.1165852740@sss.pgh.pa.us>
	<5e66c6e90612111444y78729a71m4ec9852ae9bc8567@mail.gmail.com>
	<21549.1165886726@sss.pgh.pa.us>
	<5e66c6e90612120218p435bc0a6i80f1158fae970b9a@mail.gmail.com>
	<4101.1165941200@sss.pgh.pa.us>

Tom Lane wrote:

>>In case I was mistaken, this explanation makes perfectly sens to me.
>>But then again it would indicate a 'bug' in libpq, in the sense that
>>it (apparently) sets TCP_NODELAY on linux but not on windows.
>>    
>>
>
>No, it would mean a bug in Windows in that it fails to honor TCP_NODELAY.
>  
>
Last time I did battle with nagle/delayed ack interaction in windows 
(the other end
has to be another stack implementation -- windows to itself I don't 
think has the problem),
it _did_ honor TCP_NODELAY. That was a while ago (1997) but I'd be surprised
if things have changed much since then.

Basically nagle has to be turned off for protocols like this 
(request/response interaction
over TCP) otherwise you'll sometimes end up with stalls waiting for the 
delayed ack
before sending, which in turn results in very low throughput, per 
connection. As I remember
Windows client talking to Solaris server had the problem, but various 
other permutations
of client and server stack implementation did not.

view thread (13+ messages)

Message-ID: <457EDF22.4010303@boreham.org>
Permalink:  ../457EDF22.4010303@boreham.org/
Also on:    postgresql.org/message-id/457EDF22.4010303@boreham.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: david_list@boreham.org, tgl@sss.pgh.pa.us, awagger@web.de
  Subject: Re: Low throughput of binary inserts from windows to linux
  In-Reply-To: <457EDF22.4010303@boreham.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox