Re: Possible performance improvement: buffer replacement policy - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Possible performance improvement: buffer replacement policy
Date
Msg-id 200010161541.LAA06653@candle.pha.pa.us
Whole thread Raw
In response to Possible performance improvement: buffer replacement policy  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> (If you subscribe to the ACM digital library, you can get a PDF of this
> from there.)  This article argues that standard LRU buffer management is
> inherently not great for database caches, and that it's much better to
> replace pages on the basis of time since the K'th most recent reference,
> not just time since the most recent one.  K=2 is enough to get most of
> the benefit.  The big win is that you are measuring an actual page
> interreference time (between the last two references) and not just
> dealing with a lower-bound guess on the interreference time.  Frequently
> used pages are thus much more likely to stay in cache.
> 
> It looks like it wouldn't take too much work to replace shared buffers
> on the basis of LRU-2 instead of LRU, so I'm thinking about trying it.
> 
> Has anyone looked into this area?  Is there a better method to try?

Sounds like a perfect idea.  Good luck.  :-)

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Re: New relkind for views]
Next
From: Per Hedeland
Date:
Subject: Re: getting local domain to get attached through sendmail ...