Re: Bufer cache replacement LRU algorithm?

From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Mladen Gogala <mladen(dot)gogala(at)vmsinfo(dot)com>
Cc: "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: Bufer cache replacement LRU algorithm?
Date: 2010-11-05 20:58:36
Message-ID: 4CD46FFC.9060504@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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(at)2ndQuadrant(dot)com Baltimore, MD
PostgreSQL Training, Services and Support www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2010-11-05 20:59:47 Re: Major Linux performance regression; shouldn't we be worried about RHEL6?
Previous Message Andres Freund 2010-11-05 20:38:54 Re: Major Linux performance regression; shouldn't we be worried about RHEL6?