Re: Multiple buffer cache?

From: Greg Stark <stark(at)mit(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Alexei Vladishev <alexei(dot)vladishev(at)zabbix(dot)com>, pgsql-general(at)postgresql(dot)org, Greg Smith <greg(at)2ndquadrant(dot)com>
Subject: Re: Multiple buffer cache?
Date: 2010-02-07 22:15:43
Message-ID: 407d949e1002071415l660c5a51xf47bff50af61bb8a@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I doubt pinning buffers ever improve system on any halfway modern system. It
will often *look* like it has improved performance because it improves the
performance of the queries you're looking at -- but at the expense of
slowing down everything else.

There is a use case it would be useful for though. When you have some
queries that are latency critical. Then you might want to pin the buffers
those queries use to avoid having larger less urgent queries purge those
buffers.

If we had a way to mark latency critical queries that might be a more
flexible interface but ewe would need some way to control just how critical
they are. we wouldn't want to keep those buffets pinned forever.

greg

On 7 Feb 2010 07:36, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

Greg Smith <greg(at)2ndquadrant(dot)com> writes:
> ... Part of the reason this feature

> hasn't been been perceived as more valuable is because just letting the
> two cache levels involv...
Or to put it even more clearly: the only way that pinning particular
tables into RAM could beat letting the caching algorithm take care of
it is if the caching algorithm is seriously suboptimal. Therefore,
it would make more sense to put development effort into improving
the cache algorithm than to put it into giving the DBA a rather blunt
instrument for overriding the cache algorithm. We've already made
several rounds of improvements of that kind, and are quite happy to
consider more.

regards, tom lane

--
Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
To make changes to your subs...

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dimitri Fontaine 2010-02-07 22:23:27 Re: using new Hstore in PG8.4
Previous Message John R Pierce 2010-02-07 20:27:31 Re: [GENERAL] weird bug in rebuilding RPMs