Re: SO_SNDBUF size is small on win32?

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Yoshiyuki Asaba <y-asaba(at)sraoss(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: SO_SNDBUF size is small on win32?
Date: 2006-06-27 15:31:20
Message-ID: 20060627153120.GD16840@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Wed, Jun 28, 2006 at 12:23:13AM +0900, Yoshiyuki Asaba wrote:
> Hi,
>
> I see a performance issue on win32. This problem is causes by the
> following URL.
>
> http://support.microsoft.com/kb/823764/EN-US/
>
> On win32, default SO_SNDBUF value is 8192 bytes. And libpq's buffer is
> 8192 too.

Ok, so there's a difficiency in Windows TCP code. Do you have any
benchmarks to show this actually makes a difference. According to the
URL you give, the problem occurs if the libpq buffer is *bigger* than
the socket buffer, which it isn't...

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Yoshiyuki Asaba 2006-06-27 15:44:30 Re: SO_SNDBUF size is small on win32?
Previous Message Tom Lane 2006-06-27 15:30:56 Re: SO_SNDBUF size is small on win32?

Browse pgsql-patches by date

  From Date Subject
Next Message Yoshiyuki Asaba 2006-06-27 15:44:30 Re: SO_SNDBUF size is small on win32?
Previous Message Tom Lane 2006-06-27 15:30:56 Re: SO_SNDBUF size is small on win32?