From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jean-Luc Lachance <jllachan@nsd.ca>
Cc: jim@nasby.net, "scott.marlowe" <scott.marlowe@ihs.com>
Cc: Matthew Nuzum <cobalt@bearfruit.org>
Cc: 'Josh Berkus' <josh@agliodbs.com>
Cc: 'Pgsql-Performance' <pgsql-performance@postgresql.org>
Subject: Re: Caching (was Re: choosing the right platform)
Date: Thu, 10 Apr 2003 10:40:15 -0400
Message-ID: <4072.1049985615@sss.pgh.pa.us> (raw)
In-Reply-To: <3E957F44.A1106F6A@nsd.ca>
References: <00a001c2febb$631141d0$6900a8c0@mattspc>
<Pine.LNX.4.33.0304091152550.22442-100000@css120.ihs.com>
<20030409184744.W31861@flake.decibel.org>
<11732.1049934037@sss.pgh.pa.us>
<3E957F44.A1106F6A@nsd.ca>
Jean-Luc Lachance <jllachan@nsd.ca> writes:
> Shouldn't there be a way to lock some tables in PG cache?
In my opinion, no. I do not think a manual locking feature could
possibly be used effectively. It could very easily be abused to
decrease net performance, though :-(
It does seem that a smarter buffer management algorithm would be a good
idea, but past experiments have failed to show any measurable benefit.
Perhaps those experiments were testing the wrong conditions. I'd still
be happy to see LRU(k) or some such method put in, if someone can prove
that it actually does anything useful for us. (As best I recall, I only
tested LRU-2 with pgbench. Perhaps Josh's benchmarking project will
offer a wider variety of interesting scenarios.)
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, jllachan@nsd.ca, scott.marlowe@ihs.com, cobalt@bearfruit.org, josh@agliodbs.com
Subject: Re: Caching (was Re: choosing the right platform)
In-Reply-To: <4072.1049985615@sss.pgh.pa.us>
References: <00a001c2febb$631141d0$6900a8c0@mattspc> <Pine.LNX.4.33.0304091152550.22442-100000@css120.ihs.com> <20030409184744.W31861@flake.decibel.org> <11732.1049934037@sss.pgh.pa.us> <3E957F44.A1106F6A@nsd.ca> <4072.1049985615@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox