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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: v$sql 'db block changes'

RE: v$sql 'db block changes'

From: Allen, Brandon <Brandon.Allen_at_OneNeck.com>
Date: Thu, 15 Dec 2005 13:23:42 -0700
Message-ID: <04DDF147ED3A0D42B48A48A18D574C4503D3FF08@NT15.oneneck.corp>


Thanks John, but in this case the writes are not direct writes. Most of the write activity is actually to the UNDO tablespace, which I moved off of the RAID5 filesystem and on to RAID1 instead (yes, RAID1 - mirroring but no striping - unfortunately that's all I was given to work with). Here are some snippets from statspack this morning.

STATSPACK report for

DB Name DB Id Instance Inst Num Release Cluster Host ------------ ----------- ------------ -------- ----------- ------- ------------ CSDPRD83 2745275672 csdprd83 1 9.2.0.6.0 NO IM-DBS01

            Snap Id     Snap Time      Sessions Curs/Sess Comment
            ------- ------------------ -------- --------- -------------------
Begin Snap:   10583 15-Dec-05 08:06:24      109 #########
  End Snap:   10591 15-Dec-05 10:07:01       95 #########
   Elapsed:              120.62 (mins)

Cache Sizes (end)


               Buffer Cache:     1,752M      Std Block Size:         8K
           Shared Pool Size:       208M          Log Buffer:     1,024K

Load Profile
~~~~~~~~~~~~                            Per Second       Per Transaction
                                   ---------------       ---------------
                  Redo size:            286,941.55              7,104.31
              Logical reads:             39,026.03                966.23
              Block changes:              2,129.71                 52.73
             Physical reads:                280.24                  6.94
            Physical writes:                160.70                  3.98
                 User calls:              1,834.40                 45.42
                     Parses:                432.94                 10.72
                Hard parses:                  2.28                  0.06
                      Sorts:                 87.71                  2.17
                     Logons:                  0.00                  0.00
                   Executes:                613.49                 15.19
               Transactions:                 40.39


% Blocks changed per Read: 5.46 Recursive Call %: 41.24
Rollback per transaction %: 0.01 Rows per Sort: 20.09

Instance Efficiency Percentages (Target 100%)


            Buffer Nowait %:   99.88       Redo NoWait %:  100.00
            Buffer  Hit   %:   99.28    In-memory Sort %:  100.00
            Library Hit   %:   99.72        Soft Parse %:   99.47
         Execute to Parse %:   29.43         Latch Hit %:   99.67
Parse CPU to Parse Elapsd %:   90.90     % Non-Parse CPU:   96.56

 Shared Pool Statistics        Begin   End
                               ------  ------
             Memory Usage %:   94.57   94.42
    % SQL with executions>1: 30.07 33.51
% Memory for SQL w/exec>1: 35.84 39.01

Top 5 Timed Events

~~~~~~~~~~~~~~~~~~                                                     % Total
Event                                               Waits    Time (s) Ela Time
-------------------------------------------- ------------ ----------- --------
db file sequential read                         1,674,430      39,101    57.18
log file sync                                     965,126      10,775    15.76
CPU time                                                        7,421    10.85
buffer busy waits                                 340,177       7,326    10.71
db file scattered read                             55,598       1,704     2.49
          -------------------------------------------------------------

Instance Activity Stats for DB: CSDPRD83 Instance: csdprd83 Snaps: 10583 -1059

Statistic                                      Total     per Second    per Trans
--------------------------------- ------------------ -------------- ------------
physical reads                             2,028,069          280.2          6.9
physical reads direct                            140            0.0          0.0
physical reads direct (lob)                    1,159            0.2          0.0
physical writes                            1,162,969          160.7          4.0
physical writes direct                           149            0.0          0.0
physical writes non checkpoint             1,095,920          151.4          3.8


Tablespace IO Stats for DB: CSDPRD83 Instance: csdprd83 Snaps: 10583 -10591 ->ordered by IOs (Reads + Writes) desc

Tablespace


                 Av      Av     Av                    Av        Buffer Av Buf
         Reads Reads/s Rd(ms) Blks/Rd       Writes Writes/s      Waits Wt(ms)
-------------- ------- ------ ------- ------------ -------- ---------- ------ TRIRIGA_DATA
       726,017 100 19.3 1.0 184,977 26 88,700 17.9 UNDOTBS2
        36,885 5 7.2 1.0 754,712 104 581 4.1 TRIRIGA_INDX
       565,487 78 27.4 1.5 209,028 29 48,755 27.1 IBS_SPEC_VALUE
       392,175 54 27.5 1.0 10,988 2 202,198 21.9 TOOLS
        11,145 2 29.8 1.2 1,676 0 0 0.0 SYSTEM
         1,768 0 28.5 1.9 150 0 6 76.7

-----Original Message-----
From: John Kanagaraj [mailto:john.kanagaraj_at_hds.com] Sent: Thursday, December 15, 2005 1:01 PM To: Allen, Brandon; Ethan Post
Cc: oracle-l_at_freelists.org
Subject: RE: v$sql 'db block changes'

> in terms of cpu, elapsed_time, buffer_gets and disk_reads are all SELECT statements,
> so I know they're not causing the write activity.

Brandon,

Some SELECT statements do require writing to TEMP (due to SORT or HASH operations). And since direct writes to TEMP do not have to be (redo)logged, they are done fairly rapidly which can result in the kind of problems with RAID 5 that you are seeing....

Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Dec 15 2005 - 14:24:37 CST

Original text of this message

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