AWR中的DB Time和CPU time

    在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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值