Jim Nasby <Jim.Nasby@BlueTreble.com> writes:
> On 2/12/16 9:55 AM, Robert Haas wrote:
>> I think it's important to spend time and energy figuring out exactly
>> what the problems with our current algorithm are. We know in general
>> terms that usage counts tend to converge to either 5 or 0 and
>> therefore sometimes evict buffers both at great cost and almost
> Has anyone done testing on the best cap to usage count? IIRC 5 was
> pulled out of thin air.
My recollection is that there was some testing behind it ... but that
was back around 2005 so it seems safe to assume that that testing
is no longer terribly relevant. In particular, I'm sure it was tested
with shared_buffer counts far smaller than what we now consider sane.
regards, tom lane