Re: Why does backend send buffer size hardcoded at 8KB? - Mailing list pgsql-general

From Tom Lane
Subject Re: Why does backend send buffer size hardcoded at 8KB?
Date
Msg-id 762.1564266890@sss.pgh.pa.us
Whole thread Raw
In response to Re: Why does backend send buffer size hardcoded at 8KB?  (Andres Freund <andres@anarazel.de>)
Responses Re: Why does backend send buffer size hardcoded at 8KB?
List pgsql-general
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



pgsql-general by date:

Previous
From: farjad.farid
Date:
Subject: RE: Hardware for writing/updating 12,000,000 rows per hour
Next
From: Andres Freund
Date:
Subject: Re: Why does backend send buffer size hardcoded at 8KB?