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 1hrpfz-0000JC-TQ for pgsql-general@arkaria.postgresql.org; Sun, 28 Jul 2019 20:21:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hrpfy-0005Ox-Id for pgsql-general@arkaria.postgresql.org; Sun, 28 Jul 2019 20:21:50 +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 1hrpfy-0005Od-8i for pgsql-general@lists.postgresql.org; Sun, 28 Jul 2019 20:21:50 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hrpfu-0003wp-KB for pgsql-general@lists.postgresql.org; Sun, 28 Jul 2019 20:21:49 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 25E322EAA; Sun, 28 Jul 2019 22:21:41 +0200 (CEST) Date: Sun, 28 Jul 2019 22:21:41 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: Why does backend send buffer size hardcoded at 8KB? Message-ID: <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nFreZHaLTZJo0R7j" Content-Disposition: inline In-Reply-To: <9502.1564269022@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --nFreZHaLTZJo0R7j Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-07-27 19:10:22 -0400, Tom Lane wrote: > Andres Freund 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. >=20 > > 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. >=20 > 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 --=20 _ | 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 --nFreZHaLTZJo0R7j Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl0+A9AACgkQ8g5IURL+ KF0F4Q//USCi8+x6bQ7LdzsY8ftBX+rgQg+Y4OfQhSm7alFWLFgrFGQ0oIPV8d1Z l7w+npUFzxv3YxRw3h6+mh3CyF669QFPPNTeX2FWH+2gMfdFTFw2BJIVdAUVCkrp 28z7JbbzAlzTRi4iqv1fUFNc7jUx3IqsxUd62cymY3smWQ+5kdv3qfTW2qnL9wIh t0jGF57xcYwm9Va6onpIsaVupzrGy9kZv1mdBEFL5Fp8VLQuI1wG/yEljj/ys16j R35w6Aq+nK+Nd3CI2vvQU8G4ScOeDvc6U+aMLSZiCf/V3GE41ztNI4cBoPuuVQt6 vrjkxcsCAwpzXdoWU8bs3JCizElea5sAN+29BjekGiR1Vet8cyxUwdT8nu5nJ7i6 hRXZi5vNDXC3VXxH/mKO0GkzUwtmjtuYUhXDSRsOs+B2FDFVctvBrHSFtazLMeyn iLTDWifJaKGkTL5wM5xUjezaeEQFy7JeMNnSIDguxl4cFqUNZhYNDlauypBN11Zb vRvFMnIHo4vX1awU3QhtWUBK50umXIU5Im/VFMwshSsXwqcG1AfwAaqldfYVVIsi SXBUwvJIlOr9y1yG2917W5TeWrVe8Tp6kjS1aAg3hpNBHRLx4T1IUo3LDl8qN+kD XF7trxsBsnAVP+3mja7GytBx6t5F6qVePyZUd0XLUx47mX9XyEQ= =+Pqy -----END PGP SIGNATURE----- --nFreZHaLTZJo0R7j--