AWR报告中Parse CPU to Parse Elapsd%的理解
 
原文自:http://dbua.iteye.com/blog/827243
 
Parse CPU to Parse Elapsd%是指sql语句的CPU时间与总体解析时间的比率, SQL总体解析时间包括CPU时间和wait时间,这个比率过低说明SQL Parse的wait时间远远大于CPU的 Parse时间不是很正常,可能有大量lib cache latch or shared pool latch。
   有时候Parse CPU to Parse Elapsd%会超过100%,这是由于四舍五入造成的,CPU Time是一点一点纪录,并累加的(按SQL Parse 中的每个Call)而Elapsed Time 是一段一段纪录,并累加的(按SQL 一次parse)比如说,现在开始一个 parse , 中间有100次call, 本来每次应该是 0.8 微秒,但是,Oracle 纪录时每次计成是 1 微秒,结果,这一次的parse CPU 被记录成 100 微秒。而Elapsed Time 纪录的是整个的时间,等于 0.8 *100 + (wait time),结果就可能小于 100 微秒。而最终结果就是 Parse CPU to Parse Elapsd% > 100%
   Parse CPU to Parse Elapsd%的相关的统计信息可以从statspack中的Instance Activity Stats部门能够查到如:
parse time cpu                              13,305            3.5          0.2
parse time elapsed                           84,624           22.1          0.9
   Parse CPU to Parse Elapsd%过低一般是由于latch争用造成的,需要具体问题具体分析,经常伴随较高的latch free和enqueue等待事件。
 
在:http://hoopercharles.wordpress.com/2011/09/01/parse-cpu-to-parse-elapsd-what-is-wrong-with-this-quote/
中有这样一段描述:
“The Parse CPU to Parse Elapsd metric shows how much time the CPU is spending parsing SQL statements. The lower this metric is, the better. In the following example [not quoted], it is about 2%, which is very low. If this metric ever gets to 5%, it may mean investigation is warranted to determine why the CPU is spending this much time simply parsing SQL statements.”
 
 
以下是网上的一个分析:
 
AWR Analysis - Parse CPU to Parse Elapsd %
 
Under AWR’s Instance Efficiency Percentages - Parse CPU to Parse Elapsd % is one area which is more confusing and clear information will not be available. Information below talks clearly on how to we interpret the ratio.
 
• If you spend 1 CPU second on CPU to parse but total elapsed is 5 second wall clock time then it means you are waiting on some resources to complete the parsing.
 
• Ideally Parse Elapsed must be equal to Parse CPU, i.e., only CPU time is used for parsing. In that case the ratio is 100%. If wait time is more than the ratio will be less.
 
在Instance Activity Stats可以看到:
parse time cpu及parse time elapsed
而Parse CPU to Parse Elapsd%=parse time cpu÷parse time elapsed
 
以(8879/110582)*100=8.03%为例,
What does it mean and how it is being interpreted 
• Parse CPU to Parse Elapsd %: 8.03 
• It is percentage. 8.03% means .0803
• If you divide it by 1 then 1/.0803 = 12.45
• Which means 12.45 second (wall clock time) must be elapsed for every cpu second for parsing. Its not    
   good.
• It represents resource contention while parsing.Low Value for this ratio is an indicator of latching problem. Investigate the latch sections in AWR report for contention on library cache and shared pool latches.

最新文章

  1. Linux超快速安装Ruby on Rails
  2. 配置cas
  3. .NET中使用Memcached的相关资源整理
  4. 如何将maven项目导入myeclipse中
  5. WEB用户访问控制方法
  6. iOS 开发中使用到的小技巧汇总
  7. [CLR via C#]7. 常量和字段
  8. MS SQL SERVER 2008 使用OBJECT_ID判断临时表是否存在
  9. smarty模板基础2
  10. phpcms v9栏目列表调用每一篇文章内容方法
  11. mysql新建数据库,并设置charset为utf8,使用utf8_general_ci字符集校验结果
  12. 《决战大数据:驾驭未来商业的利器》【PDF】下载
  13. 2017-12-24 手机编程环境初尝试-用AIDE开发Android应用
  14. 阿里面试题:为什么Map桶中个数超过8才转为红黑树
  15. NET Core Kestrel部署HTTPS使用SSL证书
  16. Confluence 6 通过 SSL 或 HTTPS 运行
  17. 一道面试题 vuex缺点?
  18. 【网络编程4】网络编程基础-ARP响应(ARP欺骗之中间人攻击)
  19. fastcgi协议分析与实例
  20. Nginx 配置TCP代理

热门文章

  1. 修改完linux bashrc文件之后,如何不重启系统使其生效
  2. MySQL常用命令和语句
  3. vue+element ui项目总结点(六)table编辑当前行、删除当前行、新增、合计操作
  4. codevs 2038 香甜的黄油 USACO
  5. jquery的load方法
  6. 用vscode开发vue应用[转]
  7. EF关于报错Self referencing loop detected with type的原因以及解决办法
  8. 二分查找算法java
  9. JsonUtils工具类
  10. python 发送附件