pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <greg@2ndquadrant.com>
To: Mladen Gogala <mladen.gogala@vmsinfo.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Bufer cache replacement LRU algorithm?
Date: Fri, 05 Nov 2010 13:58:36 -0700
Message-ID: <4CD46FFC.9060504@2ndquadrant.com> (raw)
In-Reply-To: <4CD18F55.6070100@vmsinfo.com>
References: <4CD18F55.6070100@vmsinfo.com>

Mladen Gogala wrote:
> Where can I find the documentation describing the buffer replacement 
> policy? Are there any parameters governing the page replacement policy?

I wrote a pretty detailed description of this in my "Inside the 
PostgreSQL Buffer Cache" presentation at 
http://projects.2ndquadrant.com/talks and nothing in this specific area 
has changed significantly since then.  There aren't any specific 
tunables in this area beyond the ones that cover sizing of the buffer 
pool and how often checkpoints happen.  There's a TODO item to benchmark 
toward whether there's any gain to increasing the maximum usage count an 
individual page can accumulate, currently hard coded at 5.  That's the 
main thing that could be tunable in this area that currently isn't.

-- 
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services and Support        www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books




view thread (4+ messages)

Message-ID: <4CD46FFC.9060504@2ndquadrant.com>
Permalink:  ../4CD46FFC.9060504@2ndquadrant.com/
Also on:    postgresql.org/message-id/4CD46FFC.9060504@2ndquadrant.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: greg@2ndquadrant.com, mladen.gogala@vmsinfo.com
  Subject: Re: Bufer cache replacement LRU algorithm?
  In-Reply-To: <4CD46FFC.9060504@2ndquadrant.com>

* 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