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: Actual Buffer Pool size

Re: Actual Buffer Pool size

From: Antoine BRUNEL <antoinebrunel/yahoo.fr>
Date: Wed, 28 May 2003 04:09:41 +0200
Message-ID: <3ed41a65$0$26874$79c14f64@nan-newsreader-01.noos.net>


Hi from Paris

"Linda Lee" <goforticket_at_yahoo.com> a écrit dans le message de news:f901fb80.0305271341.2decaf40_at_posting.google.com...
> On my 8.1.7 database on Windows 2000, I used following parameters to
> set up buffer pools:
> db_block_lru_latches = 8
> db_block_buffers = 210000
> buffer_pool_keep = (50000,2)
> buffer_pool_recycle = (30000,2)
> 1.
> But when I query V$BUFFER_POOL, the number of latches for KEEP and
> RECYCLE is 1. Why they take only one (instead of 2)? Is there a better
> way to get the numbers of latches?
> SQL> select name, set_count "latches", buffers
> 2 from v$buffer_pool
> 3 where id != 0;
> NAME latches BUFFERS
> -------------------- ---------- ----------
> KEEP 1 50000
> RECYCLE 1 30000
> DEFAULT 6 130000
>

Strange behaviour. maybe a bug .... ??

Be more precise concerning exact RDBMS level, hardware architecture (notably, CPUs) .

> 2.
> I query dba_segments to get the actual sizes of pools. Is there a
> beeter way to get the actuall/real size of each pool? Why the size of
> DEFAULT pool is much larger than what I allocated by init parameters?
> Do I need to increase the size for DEFAULT pool?
> SQL> select sum(blocks) Blocks, sum(bytes)/1024 KBytes, buffer_pool
> 2 from dba_segments
> 3 group by buffer_pool;
>
> BLOCKS KBYTES BUFFER_
> ----------- ---------- -------
> 4303299 34426392 DEFAULT
> 20085 160680 KEEP
> 23697 189576 RECYCLE
>
> Thanks a lot.

you cannot refer to the segment size of a schema object to determine the real number of blocks wich will be read...

RTFM: Oracle8i Designing and Tuning for Performance ....
Use the following steps to determine the percentage of the cache used by an individual object at a given point in time:

  1.. Find the Oracle internal object number of the segment by entering the following:

SELECT DATA_OBJECT_ID, OBJECT_TYPE
FROM USER_OBJECTS
WHERE OBJECT_NAME = '<SEGMENT_NAME>';

Because two objects can have the same name (if they are different types of objects), you can use the OBJECT_TYPE column to identify the object of interest. If the object is owned by another user, then use the view DBA_OBJECTS or ALL_OBJECTS instead of USER_OBJECTS.

  2.. Find the number of buffers in the buffer cache for SEGMENT_NAME:

SELECT COUNT(*) BUFFERS
FROM V$BH
WHERE OBJD = <DATA_OBJECT_ID>;

where DATA_OBJECT_ID is from Step 1.

c.. Find the total number of buffers in the instance:

SELECT VALUE "TOTAL BUFFERS"
FROM V$PARAMETER
WHERE NAME = 'DB_BLOCK_BUFFERS'; d.. Calculate the ratio of buffers to total buffers, to obtain the percentage of the cache currently used by SEGMENT_NAME.


      Note:
      This technique works only for a single segment. You must run the query
for each partition for a partitioned object.

If the number of local block gets equals the number of physical reads for statements involving such objects, then consider using a RECYCLE cache, because of the limited usefulness of the buffer cache for the objects.

........

Identifying Segments to Put into the KEEP and RECYCLE Buffer Pools A good candidate for a segment to put into the RECYCLE buffer pool is a segment that is at least twice the size of the DEFAULT buffer pool and has incurred at least a few percent of the total I/Os in the system.

A good candidate for a segment to put into the KEEP pool is a segment that is smaller than 10% of the size of the DEFAULT buffer pool and has incurred at least 1% of the total I/Os in the system.

The trouble with these rules is that it can sometimes be difficult to determine the number of I/Os per segment if a tablespace has more than one segment. One way to solve this problem is to sample the I/Os that occur over a period of time by selecting from V$SESSION_WAIT to determine a statistical distribution of I/Os per segment.

.....

Obviously, you should have a look at your instance during peak load, to see which objects are "hot spots", and give an approximate size for pools.

Cdlt

begin 666 ch19_me4.gif

M1TE&.#EAL (M`/<`````````/P``?P``P ``_P`J```J/P`J?P`JP `J_P!5
M``!5/P!5?P!5P !5_P!_``!_/P!_?P!_P !__P"J``"J/P"J?P"JP "J_P#5
M``#5/P#5?P#5P #5_P#_``#_/P#_?P#_P #__RH``"H`/RH`?RH`P"H`_RHJ
M`"HJ/RHJ?RHJP"HJ_RI5`"I5/RI5?RI5P"I5_RI_`"I_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