Re: DB cache size strategies - Mailing list pgsql-general

From Tom Lane
Subject Re: DB cache size strategies
Date
Msg-id 15335.1076477166@sss.pgh.pa.us
Whole thread Raw
In response to Re: DB cache size strategies  ("Ed L." <pgsql@bluepolka.net>)
Responses Re: DB cache size strategies
Re: DB cache size strategies
List pgsql-general
"Ed L." <pgsql@bluepolka.net> writes:
> On Tuesday February 10 2004 1:42, Martijn van Oosterhout wrote:
>> I think giving postgresql half your memory is couterproductive.

> I get the sense it really depends on the nature of the apps running on the
> box.

Giving PG half the RAM is counterproductive no matter what --- that
pretty much guarantees that every page that's in RAM will be in RAM
twice, once in PG buffers and once in kernel buffers.  The two
reasonable schools of thought are (1) to make PG buffers relatively
small and let the kernel do the bulk of the buffering, or (2) to give
PG most of the RAM and expect it to do the bulk of the buffering.

Past experience has been that theory (1) generally wins.  Jan's recent
work on ARC buffering may make things more interesting, though.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Temporary views
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Temporary views