From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Why does backend send buffer size hardcoded at 8KB?
Date: Sun, 28 Jul 2019 22:21:41 +0200
Message-ID: <20190728202141.GA25242@hjp.at> (raw)
In-Reply-To: <9502.1564269022@sss.pgh.pa.us>
References: <0cdc5485-cb3c-5e16-4a46-e3b2f7a41322@ya.ru>
<20190727205243.l5xyhsg2y7aasgdd@alap3.anarazel.de>
<762.1564266890@sss.pgh.pa.us>
<20190727225854.w2f2e5n6lepqbbui@alap3.anarazel.de>
<9502.1564269022@sss.pgh.pa.us>
On 2019-07-27 19:10:22 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > On 2019-07-27 18:34:50 -0400, Tom Lane wrote:
> >> Yeah. The existing commentary about that is basically justifying 8K
> >> as being large enough to avoid performance issues; if somebody can
> >> show that that's not true, I wouldn't have any hesitation about
> >> kicking it up.
>
> > You think that unnecessary fragmentation, which I did show, isn't good
> > enough? That does have cost on the network level, even if it possibly
> > doesn't show up that much in timing.
>
> I think it is worth doing some testing, rather than just blindly changing
> buffer size, because we don't know how much we'd have to change it to
> have any useful effect.
I did a little test with nttcp between two of our servers (1 Gbit to
different switches, switches connected by 10 Gbit). The difference
between a 1024 byte buffer and a 1460 byte buffer is small but
measurable. Anything larger doesn't make a difference. So increasing the
buffer beyond 8 kB probably doesn't improve performance on a 1 Gbit LAN.
I didn't test 10 Gbit LAN or WAN - those might be different.
hp
--
_ | Peter J. Holzer | we build much bigger, better disasters now
|_|_) | | because we have much more sophisticated
| | | hjp@hjp.at | management tools.
__/ | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/;
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: hjp-pgsql@hjp.at
Subject: Re: Why does backend send buffer size hardcoded at 8KB?
In-Reply-To: <20190728202141.GA25242@hjp.at>
References: <0cdc5485-cb3c-5e16-4a46-e3b2f7a41322@ya.ru> <20190727205243.l5xyhsg2y7aasgdd@alap3.anarazel.de> <762.1564266890@sss.pgh.pa.us> <20190727225854.w2f2e5n6lepqbbui@alap3.anarazel.de> <9502.1564269022@sss.pgh.pa.us> <20190728202141.GA25242@hjp.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox