From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Artemiy Ryabinkov <getlag@ya.ru>
Cc: pgsql-general@postgresql.org
Subject: Re: Why does backend send buffer size hardcoded at 8KB?
Date: Sat, 27 Jul 2019 18:34:50 -0400
Message-ID: <762.1564266890@sss.pgh.pa.us> (raw)
In-Reply-To: <20190727205243.l5xyhsg2y7aasgdd@alap3.anarazel.de>
References: <0cdc5485-cb3c-5e16-4a46-e3b2f7a41322@ya.ru>
<20190727205243.l5xyhsg2y7aasgdd@alap3.anarazel.de>
Andres Freund <andres@anarazel.de> writes:
> It might be better to just use larger send sizes however. I think most
> kernels are going to be better than us knowing how to chop up the send
> size.
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.
(Might be worth malloc'ing it rather than having it as part of the
static process image if we do so, but that's a trivial change.)
regards, tom lane
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: tgl@sss.pgh.pa.us, andres@anarazel.de, getlag@ya.ru
Subject: Re: Why does backend send buffer size hardcoded at 8KB?
In-Reply-To: <762.1564266890@sss.pgh.pa.us>
References: <0cdc5485-cb3c-5e16-4a46-e3b2f7a41322@ya.ru> <20190727205243.l5xyhsg2y7aasgdd@alap3.anarazel.de> <762.1564266890@sss.pgh.pa.us>
* 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