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

From Andres Freund
Subject Re: PATCH:do not set Win32 server-side socket buffer size on windows 2012
Date
Msg-id 20150703080643.GL30708@awork2.anarazel.de
Whole thread Raw
In response to Re: PATCH:do not set Win32 server-side socket buffer size on windows 2012  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: PATCH:do not set Win32 server-side socket buffer size on windows 2012
List 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



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: PATCH:do not set Win32 server-side socket buffer size on windows 2012
Next
From: Heikki Linnakangas
Date:
Subject: Re: Fix pgbench --progress report under (very) low rate