Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id E6C809F9392 for ; Mon, 11 Dec 2006 18:44:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 53465-10 for ; Mon, 11 Dec 2006 18:44:24 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by postgresql.org (Postfix) with ESMTP id 07DCF9F931E for ; Mon, 11 Dec 2006 18:44:27 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id x4so51828nfb for ; Mon, 11 Dec 2006 14:44:26 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=qi/3VtJVEkmS3rwkuOQGiTTvOEdL7PIMcRHT0BypwGN60RvEfhxx+Aocfy+BBtMURmQ7i+Qvh8LETMm3XXLNNbkiTJMDBhHVkBLIy5VteudNrgb2prTUQxUI/u/BoF07QZHfYaQbVP9Hls49annzt9Jwm39179Ql9J2+I910gmU= Received: by 10.82.126.5 with SMTP id y5mr541117buc.1165877066041; Mon, 11 Dec 2006 14:44:26 -0800 (PST) Received: by 10.82.159.6 with HTTP; Mon, 11 Dec 2006 14:44:25 -0800 (PST) Message-ID: <5e66c6e90612111444y78729a71m4ec9852ae9bc8567@mail.gmail.com> Date: Mon, 11 Dec 2006 23:44:25 +0100 From: "Axel Waggershauser" To: "Tom Lane" Subject: Re: Low throughput of binary inserts from windows to linux Cc: pgsql-performance@postgresql.org In-Reply-To: <12645.1165852740@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> X-Google-Sender-Auth: ad35c28dd4c2ed44 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/270 X-Sequence-Number: 22326 On 12/11/06, Tom Lane wrote: > Yeah, that's what I couldn't think of the other day. The principal > report was here: > http://archives.postgresql.org/pgsql-general/2005-01/msg01231.php > > By default, Windows XP installs the QoS Packet Scheduler service. > It is not installed by default on Windows 2000. After I installed > QoS Packet Scheduler on the Windows 2000 machine, the latency > problem vanished. I found a QoS-RVPS service (not sure about the last four characters and I'm sitting at my mac at home now...) on one of the WinXP test boxes, started it and immediately lost network connection :-(. Since I have pretty much the same skepticism regarding the usefulness of a QoS packet scheduler to help with a raw-throughput-problem like Lincoln Yeoh in a follow up mail to the above (http://archives.postgresql.org/pgsql-general/2005-01/msg01243.php), I didn't investigate this further. And regarding the TCP_NODELAY hint from Kevin Grittner: if I am not wrong with interpreting fe_connect.c, the libpq already deals with it (fe_connect.c:connectNoDelay). But this made me think about the 'page'-size I use in my blob table... I tested different sizes on linux some time ago and found that 64KB was optimal. But playing with different sizes again revealed that my windows->linux problem seems to be solved if I use _any_ other (reasonable - meaning something between 4K and 512K) power of two ?!? Does this make sense to anyone? Thanks, axel