Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Buffer cache is not LRU?!

Re: Buffer cache is not LRU?!

From: Bob Jones <email_at_me.not>
Date: Fri, 09 Apr 2004 17:03:54 GMT
Message-ID: <_HAdc.2559$i74.49230@bgtnsc04-news.ops.worldnet.att.net>

"Brian Peasland" <dba_at_remove_spam.peasland.com> wrote in message news:4076B222.5772E8BF_at_remove_spam.peasland.com...
> How the buffer cache is managed with respect to full table scans has
> changed, depending on which version of Oracle you are dealing with.
>
> At one time, the buffer cache was a strict LRU algorithm. Unfortunately,
> when a large table was scanned (FTS), then every block of that table was
> placed on the MRU end of the chain. This could have detrimental affects
> to the other blocks that were needed more frequently than one large
> table scan.
>
> So the algorithm was changed. IIRC, there as an alogorithm where a FTS
> would place the buffers at the end of the LRU list. Not at the MRU end
> of the list. This way, more frequently used blocks wouldn't get aged out
> as fast just because a FTS was performed. I can't recall which version
> this was for....
>
> In Oracle 8i, the LRU algorithm for FTS was modified. This algorithm
> uses touch counts and blocks for a FTS are put on the LRU list below
> "hot" buffers, or those where the touch count is two or more. This way,
> a FTS one time on a table won't interfere with other blocks that are
> more frequently used. For more information on this algorithm, refer to
> the following:
>
> http://www.ixora.com.au/newsletter/2000_10.htm#cache
>
> By the way, the above web site is a great place to go to learn more
> about Oracle internals.
>
> HTH,
> Brian
>

It just make you wonder if Oracle is really making DBAs life easier after every release. Are we going to see self-tuning in Oracle 20?

512M of RAM -> $200
Training -> $3000
Oracle consultant -> priceless!

To me, the price of RAM sounds a lot better than tuning. Received on Fri Apr 09 2004 - 12:03:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US