当前所在位置:珠峰网资料 >> 计算机 >> Oracle认证 >> 正文
Oracle认证资格考试辅导:PXqreflatch等待事件分析
发布时间:2010/9/7 17:14:55 来源:www.xue.net 编辑:城市总裁吧

  概念和原理

  在并行执行环境中,query slaves 和query coordinator之间是通过队列交换数据和信息的。PX qref latch 是用来保护这些队列的。

  PX qref latch 等待事件的出现一般表明信息的发送比接受快,这时需要调整buffer size(可以通过parallel_execution_message_size参数调整)。

  但是有些情况下也是难以避免发生这种情况的,比如consumer需要长时间的等待数据的处理,原因在于需要返回大批量的数据包,这种情况下很正常。

  调整和措施

  当系统的负载比较高时,需要把并行度降低;如果使用的是默认并行度,可以通过减小parallel_thread_per_cpu参数的值来达到效果。

  DEFAULT degree = PARALLEL_THREADS_PER_CPU * #CPU's

  优化parallel_execution_message_size参数

  Tuning parallel_execution_message_size is a tradeoff between

  performance and memory. For parallel query, the connection

  topology between slaves and QC requires (n^2 + 2n) connections

  (where n is the DOP not the actual number of slaves) at maximum.

  If each connection has 3 buffers associated with it then you can

  very quickly get into high memory consumption on large machines

  doing high DOP queries.

广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved