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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: hlinnaka(at)iki(dot)fi
Cc: chenhj <chjischj(at)163(dot)com>, David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PATCH:do not set Win32 server-side socket buffer size on windows 2012
Date: 2015-07-06 13:30:28
Message-ID: 25102.1436189428@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Heikki Linnakangas <hlinnaka(at)iki(dot)fi> writes:
> I was able to reproduce huge gains from this, after I introduced an
> artificial latency to all network packets with:

> tc qdisc add dev eth2 root netem delay 100ms

> With that, and with the client on different host so that the traffic
> goes through that high-latency network, I saw over 10x difference with
> the same psql test you ran.

> Committed, thanks!

Why does the committed patch do getsockopt() on server_fd rather than
port->sock? This seems at best confusing and at worst wrong.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-07-06 13:35:26 Re: pg_stat_*_columns?
Previous Message Merlin Moncure 2015-07-06 13:26:58 Re: dblink: add polymorphic functions.