pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedBufer cache replacement LRU algorithm?
4+ messages / 4 participants
[nested] [flat]
* Bufer cache replacement LRU algorithm?
@ 2010-11-03 16:35 Mladen Gogala <mladen.gogala@vmsinfo.com>
2010-11-03 16:52 ` Re: Bufer cache replacement LRU algorithm? Kenneth Marshall <ktm@rice.edu>
2010-11-05 20:58 ` Re: Bufer cache replacement LRU algorithm? Greg Smith <greg@2ndquadrant.com>
0 siblings, 2 replies; 4+ messages in thread
From: Mladen Gogala @ 2010-11-03 16:35 UTC (permalink / raw)
To: pgsql-performance
Where can I find the documentation describing the buffer replacement
policy? Are there any parameters governing the page replacement policy?
--
Mladen Gogala
Sr. Oracle DBA
1500 Broadway
New York, NY 10036
(212) 329-5251
http://www.vmsinfo.com
The Leader in Integrated Media Intelligence Solutions
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Bufer cache replacement LRU algorithm?
2010-11-03 16:35 Bufer cache replacement LRU algorithm? Mladen Gogala <mladen.gogala@vmsinfo.com>
@ 2010-11-03 16:52 ` Kenneth Marshall <ktm@rice.edu>
2010-11-03 17:09 ` Re: Bufer cache replacement LRU algorithm? Kevin Grittner <Kevin.Grittner@wicourts.gov>
1 sibling, 1 reply; 4+ messages in thread
From: Kenneth Marshall @ 2010-11-03 16:52 UTC (permalink / raw)
To: Mladen Gogala <mladen.gogala@vmsinfo.com>; +Cc: pgsql-performance
Mladen,
You would need to check the mailing lists. The release notes
have it as being a clock sweep algorithm starting in version
8. Then additional changes were added to eliminate the cache
blowout caused by a sequential scan and by vacuum/autovacuum.
I do not believe that there are any parameters available other
than total size of the pool and whether sequential scans are
synchronized.
Regards,
Ken
On Wed, Nov 03, 2010 at 12:35:33PM -0400, Mladen Gogala wrote:
> Where can I find the documentation describing the buffer replacement
> policy? Are there any parameters governing the page replacement policy?
>
> --
> Mladen Gogala Sr. Oracle DBA
> 1500 Broadway
> New York, NY 10036
> (212) 329-5251
> http://www.vmsinfo.com The Leader in Integrated Media Intelligence
> Solutions
>
>
>
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Bufer cache replacement LRU algorithm?
2010-11-03 16:35 Bufer cache replacement LRU algorithm? Mladen Gogala <mladen.gogala@vmsinfo.com>
2010-11-03 16:52 ` Re: Bufer cache replacement LRU algorithm? Kenneth Marshall <ktm@rice.edu>
@ 2010-11-03 17:09 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
0 siblings, 0 replies; 4+ messages in thread
From: Kevin Grittner @ 2010-11-03 17:09 UTC (permalink / raw)
To: Kenneth Marshall <ktm@rice.edu>; Mladen Gogala <mladen.gogala@vmsinfo.com>; +Cc: pgsql-performance
Kenneth Marshall <ktm@rice.edu> wrote:
> On Wed, Nov 03, 2010 at 12:35:33PM -0400, Mladen Gogala wrote:
>> Where can I find the documentation describing the buffer
>> replacement policy? Are there any parameters governing the page
>> replacement policy?
> You would need to check the mailing lists. The release notes
> have it as being a clock sweep algorithm starting in version
> 8. Then additional changes were added to eliminate the cache
> blowout caused by a sequential scan and by vacuum/autovacuum.
> I do not believe that there are any parameters available other
> than total size of the pool and whether sequential scans are
> synchronized.
The background writer settings might be considered relevant, too.
Also keep in mind that PostgreSQL goes through the OS cache and
filesystems; the filesystem choice and OS settings will have an
impact on how that level of caching behaves. Since there is often
much more cache at the OS level than in PostgreSQL shared buffers,
you don't want to overlook that aspect of things.
-Kevin
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Bufer cache replacement LRU algorithm?
2010-11-03 16:35 Bufer cache replacement LRU algorithm? Mladen Gogala <mladen.gogala@vmsinfo.com>
@ 2010-11-05 20:58 ` Greg Smith <greg@2ndquadrant.com>
1 sibling, 0 replies; 4+ messages in thread
From: Greg Smith @ 2010-11-05 20:58 UTC (permalink / raw)
To: Mladen Gogala <mladen.gogala@vmsinfo.com>; +Cc: 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@2ndQuadrant.com Baltimore, MD
PostgreSQL Training, Services and Support www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2010-11-05 20:58 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-11-03 16:35 Bufer cache replacement LRU algorithm? Mladen Gogala <mladen.gogala@vmsinfo.com>
2010-11-03 16:52 ` Kenneth Marshall <ktm@rice.edu>
2010-11-03 17:09 ` Kevin Grittner <Kevin.Grittner@wicourts.gov>
2010-11-05 20:58 ` Greg Smith <greg@2ndquadrant.com>
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