Search Postgresql Archives

Re: Why the size (PQ_BUFFER_SIZE) of backend send buffers is 8192 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



xbzhang <xbzhang@xxxxxxxxxxxxxxx> writes:
> Why the size (PQ_BUFFER_SIZE) of backend send buffers  is 8192 ?

Traditionally, at least, that was the size of pipe buffers in Unix
machines, so in principle this is the most optimal chunk size for
sending data across a Unix socket.  I have no idea though if that's
still true in kernels in common use today.  For TCP communication
it might be marginally better to find out the MTU size and use that;
but it's unclear that it's worth the trouble, or indeed that we can
know the end-to-end MTU size with any reliability.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux