Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: DB Block Buffers - Too Much ???
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01BFDBB3.1CC43F80
Content-Type: text/plain;
charset="iso-8859-1"
Paging and swopping does not influence hit ratio.
Alex Hillman
-----Original Message-----
From: Deepak Sharma [mailto:sharmakdeep_at_yahoo.com]
Sent: Wednesday, June 21, 2000 3:36 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: DB Block Buffers - Too Much ???
No, the system has been running with activity for quite a while. I also checked 'vmstat 3 5' a few times and this is the o/p (showing slight swapping looking at pin and pout):
procs memory pages intr cpu
Also, I used 'swapon -s' and got this :
Total swap allocation:
Allocated space: 768771 pages (6006MB) In-use space: 28802 pages ( 3%) Available space: 739969 pages ( 96%)
showing 3% being used for swapping.
Somebody pls correct me interpreting this if i'm wrong, 'cause I'm not much of a Unix SA.
-- Author: Deepak Sharma INET: sharmakdeep_at_yahoo.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). ------_=_NextPart_001_01BFDBB3.1CC43F80 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version = 5.5.2448.0"> <TITLE>RE: DB Block Buffers - Too Much ???</TITLE> </HEAD> <BODY> <P><FONT SIZE=3D2>Paging and swopping does not influence hit = ratio.</FONT> </P> <P><FONT SIZE=3D2>Alex Hillman</FONT> </P> <P><FONT SIZE=3D2>-----Original Message-----</FONT> <BR><FONT SIZE=3D2>From: Deepak Sharma [<A = HREF=3D"mailto:sharmakdeep_at_yahoo.com">mailto:sharmakdeep_at_yahoo.com</A>]<= /FONT> <BR><FONT SIZE=3D2>Sent: Wednesday, June 21, 2000 3:36 PM</FONT> <BR><FONT SIZE=3D2>To: Multiple recipients of list ORACLE-L</FONT> <BR><FONT SIZE=3D2>Subject: RE: DB Block Buffers - Too Much ???</FONT> </P> <BR> <BR> <P><FONT SIZE=3D2>No, the system has been running with activity = for</FONT> <BR><FONT SIZE=3D2>quite a while. I also checked 'vmstat 3 5' a few = times</FONT> <BR><FONT SIZE=3D2>and this is the o/p (showing slight swapping = looking</FONT> <BR><FONT SIZE=3D2>at pin and pout):</FONT> </P> <P><FONT SIZE=3D2> procs = memory = pages &= nbsp; = </FONT> <BR><FONT SIZE=3D2> = intr = cpu </FONT> <BR><FONT SIZE=3D2> r w u act free wire = fault cow zero react pin</FONT> <BR><FONT SIZE=3D2>pout in sy cs us = sy id</FONT> <BR><FONT SIZE=3D2> 7230 29 218K 2832 34K 261M = 60M 60M 122K 58M</FONT> <BR><FONT SIZE=3D2>6824 637 1K 1K 13 = 6 82</FONT> <BR><FONT SIZE=3D2> 6230 30 220K 964 34K = 736 11 683 0 = 13 </FONT> <BR><FONT SIZE=3D2>0 67 5K 910 88 = 12 0</FONT> <BR><FONT SIZE=3D2> 6230 30 221K 193 34K = 196 0 196 15 = 0 </FONT> <BR><FONT SIZE=3D2>10 385 6K 1K 82 = 18 0</FONT> <BR><FONT SIZE=3D2> 7230 29 221K 128 34K = 196 0 196 0 = 0 </FONT> <BR><FONT SIZE=3D2>0 216 3K 1K 83 = 17 0</FONT> <BR><FONT SIZE=3D2> 7230 29 221K 128 34K = 197 0 196 0 = 0 </FONT> <BR><FONT SIZE=3D2>0 549 4K 2K 77 = 21 2</FONT> </P> <P><FONT SIZE=3D2>Also, I used 'swapon -s' and got this :</FONT> </P> <P><FONT SIZE=3D2>Total swap allocation:</FONT> <BR><FONT SIZE=3D2> Allocated = space: 768771 pages (6006MB)</FONT> <BR><FONT SIZE=3D2> In-use = space: = 28802 pages ( 3%)</FONT> <BR><FONT SIZE=3D2> Available = space: 739969 pages ( 96%)</FONT> </P> <P><FONT SIZE=3D2>showing 3% being used for swapping.</FONT> </P> <P><FONT SIZE=3D2>Somebody pls correct me interpreting this if = i'm</FONT> <BR><FONT SIZE=3D2>wrong, 'cause I'm not much of a Unix SA.</FONT> </P> <P><FONT SIZE=3D2>-- Deepak</FONT> </P> <BR> <BR> <P><FONT SIZE=3D2>--- "Weaver, Walt" = <wweaver_at_rightnowtech.com> wrote:</FONT> <BR><FONT SIZE=3D2>> Just out of curiousity, did you measure hit = ratio</FONT> <BR><FONT SIZE=3D2>> soon after re-starting the</FONT> <BR><FONT SIZE=3D2>> database? Wouldn't the hit ratio be = misleadingly low</FONT> <BR><FONT SIZE=3D2>> for a while, since</FONT> <BR><FONT SIZE=3D2>> Oracle was probably busy reading disk and = loading</FONT> <BR><FONT SIZE=3D2>> stuff into the buffers?</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Other than that, I suppose you could monitor = vmstat</FONT> <BR><FONT SIZE=3D2>> or some other utility to</FONT> <BR><FONT SIZE=3D2>> see if excessive memory swapping is going = on.</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> --Walt Weaver</FONT> <BR><FONT SIZE=3D2>> Bozeman, Montana, USA</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> -----Original Message-----</FONT> <BR><FONT SIZE=3D2>> Sent: Wednesday, June 21, 2000 11:26 AM</FONT> <BR><FONT SIZE=3D2>> To: Multiple recipients of list ORACLE-L</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Recently on one of our test systems the Buffer = Cache</FONT> <BR><FONT SIZE=3D2>> Hit Ratio was showing 80%. I increased</FONT> <BR><FONT SIZE=3D2>> db_block_buffers from 6000 to 16000, and the = after</FONT> <BR><FONT SIZE=3D2>> that the hit ratio has dropped to 55%. It = seemed</FONT> <BR><FONT SIZE=3D2>> strange to me that increasing = db_block_buffers</FONT> <BR><FONT SIZE=3D2>> should</FONT> <BR><FONT SIZE=3D2>> actually decrease performance, until I read = Oracle</FONT> <BR><FONT SIZE=3D2>> tuning tips from Richard Niemiec, where he = mentions</FONT> <BR><FONT SIZE=3D2>> too much db_block_buffers is not good too, as = it may</FONT> <BR><FONT SIZE=3D2>> lead to swapping. My question is how do = you</FONT> <BR><FONT SIZE=3D2>> determine</FONT> <BR><FONT SIZE=3D2>> whether the buffers are too low or too high = ?</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> SQL> select state, count(*) from x$bh group = by</FONT> <BR><FONT SIZE=3D2>> state;</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> STATE = COUNT(*)</FONT> <BR><FONT SIZE=3D2>> ---------- ----------</FONT> <BR><FONT = SIZE=3D2>> = 1 13047</FONT> <BR><FONT = SIZE=3D2>> = 3 2953</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Does state =3D '1' mean this memory is not = being used</FONT> <BR><FONT SIZE=3D2>> and if so, should I decrease the buffers = ?</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> -- Deepak</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> =3D=3D=3D=3D=3D</FONT> <BR><FONT SIZE=3D2>> Oracle DBA,</FONT> <BR><FONT SIZE=3D2>> Minneapolis, MN</FONT> <BR><FONT SIZE=3D2>> USA</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> = __________________________________________________</FONT> <BR><FONT SIZE=3D2>> Do You Yahoo!?</FONT> <BR><FONT SIZE=3D2>> Send instant messages with Yahoo! = Messenger.</FONT> <BR><FONT SIZE=3D2>> <A HREF=3D"http://im.yahoo.com/" = TARGET=3D"_blank">http://im.yahoo.com/</A></FONT> <BR><FONT SIZE=3D2>> -- </FONT> <BR><FONT SIZE=3D2>> Author: Deepak Sharma</FONT> <BR><FONT SIZE=3D2>> INET: sharmakdeep_at_yahoo.com</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Fat City Network Services -- = (858) 538-5051 FAX:</FONT> <BR><FONT SIZE=3D2>> (858) 538-5051</FONT> <BR><FONT SIZE=3D2>> San Diego, = California -- Public = Internet</FONT> <BR><FONT SIZE=3D2>> access / Mailing Lists</FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT = SIZE=3D2>---------------------------------------------------------------= -----</FONT> <BR><FONT SIZE=3D2>> To REMOVE yourself from this mailing list, send = an</FONT> <BR><FONT SIZE=3D2>> E-Mail message</FONT> <BR><FONT SIZE=3D2>> to: ListGuru_at_fatcity.com (note EXACT spelling = of</FONT> <BR><FONT SIZE=3D2>> 'ListGuru') and in</FONT> <BR><FONT SIZE=3D2>> the message BODY, include a line containing: = UNSUB</FONT> <BR><FONT SIZE=3D2>> ORACLE-L</FONT> <BR><FONT SIZE=3D2>> (or the name of mailing list you want to be = removed</FONT> <BR><FONT SIZE=3D2>> from). You may</FONT> <BR><FONT SIZE=3D2>> also send the HELP command for other = information</FONT> <BR><FONT SIZE=3D2>> (like subscribing).</FONT> <BR><FONT SIZE=3D2>> -- </FONT> <BR><FONT SIZE=3D2>> Author: Weaver, Walt</FONT> <BR><FONT SIZE=3D2>> INET: = wweaver_at_rightnowtech.com</FONT> <BR><FONT SIZE=3D2>> </FONT> <BR><FONT SIZE=3D2>> Fat City Network Services -- = (858) 538-5051 FAX:</FONT> <BR><FONT SIZE=3D2>> (858) 538-5051</FONT> <BR><FONT SIZE=3D2>> San Diego, = California -- Public = Internet</FONT> <BR><FONT SIZE=3D2>> access / Mailing Lists</FONT> <BR><FONT SIZE=3D2>></FONT> <BR><FONT = SIZE=3D2>---------------------------------------------------------------= -----</FONT> <BR><FONT SIZE=3D2>> To REMOVE yourself from this mailing list, send = an</FONT> <BR><FONT SIZE=3D2>> E-Mail message</FONT> <BR><FONT SIZE=3D2>> to: ListGuru_at_fatcity.com (note EXACT spelling = of</FONT> <BR><FONT SIZE=3D2>> 'ListGuru') and in</FONT> <BR><FONT SIZE=3D2>> the message BODY, include a line containing: = UNSUB</FONT> <BR><FONT SIZE=3D2>> ORACLE-L</FONT> <BR><FONT SIZE=3D2>> (or the name of mailing list you want to be = removed</FONT> <BR><FONT SIZE=3D2>> from). You may</FONT> <BR><FONT SIZE=3D2>> also send the HELP command for other = information</FONT> <BR><FONT SIZE=3D2>> (like subscribing).</FONT> </P> <BR> <P><FONT SIZE=3D2>=3D=3D=3D=3D=3D</FONT> <BR><FONT SIZE=3D2>Oracle DBA,</FONT> <BR><FONT SIZE=3D2>Minneapolis, MN</FONT> <BR><FONT SIZE=3D2>USA</FONT> </P> <P><FONT = SIZE=3D2>__________________________________________________</FONT> <BR><FONT SIZE=3D2>Do You Yahoo!?</FONT> <BR><FONT SIZE=3D2>Send instant messages with Yahoo! Messenger.</FONT> <BR><FONT SIZE=3D2><A HREF=3D"http://im.yahoo.com/" = TARGET=3D"_blank">http://im.yahoo.com/</A></FONT> <BR><FONT SIZE=3D2>-- </FONT> <BR><FONT SIZE=3D2>Author: Deepak Sharma</FONT> <BR><FONT SIZE=3D2> INET: sharmakdeep_at_yahoo.com</FONT> </P> <P><FONT SIZE=3D2>Fat City Network Services -- (858) = 538-5051 FAX: (858) 538-5051</FONT> <BR><FONT SIZE=3D2>San Diego, = California -- Public Internet = access / Mailing Lists</FONT> <BR><FONT = SIZE=3D2>---------------------------------------------------------------= -----</FONT> <BR><FONT SIZE=3D2>To REMOVE yourself from this mailing list, send an = E-Mail message</FONT>Received on Wed Jun 21 2000 - 14:01:31 CDT