Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hrVHG-0001Bm-FN for pgsql-general@arkaria.postgresql.org; Sat, 27 Jul 2019 22:34:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hrVHF-0005ox-0v for pgsql-general@arkaria.postgresql.org; Sat, 27 Jul 2019 22:34:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hrVHE-0005op-Nk for pgsql-general@lists.postgresql.org; Sat, 27 Jul 2019 22:34:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hrVHC-00089c-Bt for pgsql-general@postgresql.org; Sat, 27 Jul 2019 22:34:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x6RMYooo000763; Sat, 27 Jul 2019 18:34:50 -0400 From: Tom Lane To: Andres Freund cc: Artemiy Ryabinkov , pgsql-general@postgresql.org Subject: Re: Why does backend send buffer size hardcoded at 8KB? In-reply-to: <20190727205243.l5xyhsg2y7aasgdd@alap3.anarazel.de> References: <0cdc5485-cb3c-5e16-4a46-e3b2f7a41322@ya.ru> <20190727205243.l5xyhsg2y7aasgdd@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sat, 27 Jul 2019 13:52:43 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <761.1564266890.1@sss.pgh.pa.us> Date: Sat, 27 Jul 2019 18:34:50 -0400 Message-ID: <762.1564266890@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund 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