Re: A question on EFFECTIVE_CACHE_SIZE - Mailing list pgsql-general

From Tom Lane
Subject Re: A question on EFFECTIVE_CACHE_SIZE
Date
Msg-id 25266.991356860@sss.pgh.pa.us
Whole thread Raw
In response to A question on EFFECTIVE_CACHE_SIZE  ("Steve Wolfe" <steve@iboats.com>)
List pgsql-general
"Steve Wolfe" <steve@iboats.com> writes:
>    The docs list EFFECTIVE_CACHE_SIZE as being a run-time parameter with
> the postmaster's assumptions about the kernel disk cache size.  Is that
> something that is determined by querying the kernel, or by other means?

It's just a constant by default.  Even if there were a portable way to
query the kernel about how much memory there is, by what factor should
we reduce the result to allow for other applications?  There's really
no way I can see to get a useful number automatically.  This of course
begs the question whether the estimates derived using this number mean
much of anything :-(

> If it is determined in a less-than-precise manner, will setting it to a
> more precise value benefit much?

Probably not, but feel free to experiment and report back.  I'd suggest
doing the experiments with current sources, since the cost estimation
code has changed noticeably since 7.1.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: dumping strategy
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] extra syntax on INSERT