您的位置:首页 > 其它

AWR中的DB Time和CPU time

2013-02-23 09:33 399 查看
    在AWR中的等待事件中的CPU time总是弄不清,不过今天总算弄清楚了。

   官方文档Performance Tuning Guide/5 Automatic Performance Statistics:

     This statistics represents the total time spent in database calls and is a indicator of the total instance workload. It is calculated by aggregating the CPU and wait times of all sessions not waiting on idle wait events (non-idle user sessions).

    DB Time=  CPU time + 非空闲wait time;

    在等待TOP5的等待事件中,CPU time不是等待事件,而是实际消耗CPU的时间。%Total call Time  是这么计算的, 如在等待事件中的CPU time  91.9% = 6,527/(118.40*60)。

     还有一点可以总结:通过这两个时间,我们就可以知道数据库到底是负载高还是等待事件严重。

 Snap IdSnap TimeSessionsCursors/Session
Begin Snap:2068406-2月 -13 14:00:4537713.6
End Snap:2068806-2月 -13 18:00:3535415.0
Elapsed: 239.83 (mins)  
DB Time: 118.40 (mins)  
EventWaitsTime(s)Avg Wait(ms)% Total Call TimeWait Class
CPU time 6,527 91.9 
db file sequential read332,36732414.6User I/O
log file parallel write32,02928694.0System I/O
log file sync31,04428394.0Commit
db file parallel write11,6337161.0System I/O
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: