Re: PATCH:do not set Win32 server-side socket buffer size on windows 2012

From: Andres Freund <andres(at)anarazel(dot)de>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: chenhj <chjischj(at)163(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: PATCH:do not set Win32 server-side socket buffer size on windows 2012
Date: 2015-07-03 08:06:43
Message-ID: 20150703080643.GL30708@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2015-07-02 23:56:16 +0300, Heikki Linnakangas wrote:
> On 04/10/2015 01:46 PM, chenhj wrote:
> >Result(execute time):
> >default(8K), 7.370s
> >set SO_SNDBUF to 32K, 4.159s(the current implement)
> >set SO_SNDBUF to 64K, 2.875s
> >set SO_SNDBUF to 128K, 1.593s
> >set SO_SNDBUF to 256K, 1.324s
>
> I was about to commit the attached, but when I tested this between my
> Windows 8.1 virtual machine and Linux host, I was not able to see any
> performance difference. It may be because the case is hobbled by other
> inefficiencies, in the virtualization or somewhere else, but I wonder if
> others can reproduce the speedup?

Given that too small sockets incur significantly smaller latency bumps
in a virtualized environment than in a real network, and hit another set
of buffers inside the virtualization technology,, I'm not particularly
surprised by that.

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2015-07-03 08:19:50 Re: Fix pgbench --progress report under (very) low rate
Previous Message Michael Paquier 2015-07-03 08:01:04 Re: PATCH:do not set Win32 server-side socket buffer size on windows 2012