zoukankan      html  css  js  c++  java
  • 关于并行执行(parallel executing)的认识

    Parallel Execution,主要应用与OLAP系统中提高执行效率。PX的执行机制是当发起一个并行操作时,创建一个进程如QC,协调并行服务器进程的信息传递,并行协调进程将需要操作的数据集按照并行执行数分成若干单元,并将数据单元分别分给并行服务器进程进行处理,处理完毕后,将结果集传递给并行协调进程,并行协调进程将结果集汇总反馈给用户。

    并行服务器进程数量

    Oracle启动是会根据参数文件中的parallel_min_servers参数创建进程数量,当并行服务器进程不足时,再创建新的并行服务器进程,最大分配数量为parallel_max_servers。至于一条语句的使用多少并行服务器进程,取决于该语句执行的操作,查询后需要排序,则使用的数量需要乘2,以此类推。

    在一个系统中出现严重的等待事件"PX Deq Credit: send blkd",在ID 271767.1中,将该事件有时称为是一个正常的等待事件,需要根据情况具体分析。

    This is considered as idle wait event.You should investigate the sender (decode the senderid).In same cases it is normal that we see high waits on "PX Deq Credit: send blkd".

    An example: We do a select from a large table in parallel.
    select /*+ parallel(sales, 10) +/ * from sales)
    Than you see a lot of waits for "PX Deq Credit: send blkd" in the slave traces. All slaves wait for the QC to get back the credit bit. The QC can not dequeue fast enough the rows from the slaves, beause there are to many slaves that send rows back to the QC. In this case it is normal。

  • 相关阅读:
    zoj1028-Flip and Shift
    OSI七层模型基础知识及各层常见应用
    隐藏AutoCompleteTextView下拉框的滚动条
    VC++笔记七
    [置顶] 无名管道的C++封装
    张佩的Dump服务
    Oracle Autonomous Transactions(自治事务)
    Computational Geometry Template
    普通人和牛人之间的差距之举一反三能力
    关于选择
  • 原文地址:https://www.cnblogs.com/bwdata/p/3907993.html
Copyright © 2011-2022 走看看