As previously discussed, the formula used by the CBO using the CPU costing model is basically:
(sum of all the single block I/Os x average wait time for a single block I/O +
sum of all the multiblock I/Os x average wait time for a multiblock I/O +
sum of all the required CPU cycles / CPU cycles per second)
/
average wait time for a single block I/O
When determining the multiblock I/Os costs associated with a FTS, the CBO basically:
- determines the number of multiblock operations (blocks in dba_tables /mbrc system statistic)
- then multiplies this out by the average wait time of a multiblock I/O (mreadtim system statistic)
to determine the total wait time for all expected multiblock read operations.
-This total wait time of all multiblock read operations is then finally divided by the average wait time for a single block I/O (sreadtim system statistic) to express the final cost in units of single block I/Os.
Remember these average wait times associated with both single and multiblock I/Os are actual wait times for these events as experienced in the specific database environment and captured during the collection of system statistics.
Therefore, the formula automatically takes into consideration and incorporates into the calculations any discrepancies and differences in wait times between a single and a multiblock I/O.
For example, if a multiblock I/O actually takes (say) 10ms to perform on average, while a single block I/O only takes (say) 5ms to perform on average, then the formula will automatically make the costs of performing multiblock reads to be twice as expensive as the costs associated with performing the single block reads as performed by index scans.
These discrepancies in costs and trying to make a level playing field when comparing the multiblock I/Os costs associated with FTS vs. the single block I/Os costs associated with index scan is precisely what the optimizer_index_cost_adj parameter was designed to addressed.
Rather than treat both types of I/Os as being the same, which is the default behaviour with the I/O costing model, the optimizer_index_cost_adj parameter is designed to adjust the single block read costs to ensure that they are indeed costed as being (say) 1/2 the cost as that of a typical multiblock I/O.
However, when using the CPU costing model, the optimizer_index_cost adj parameter is effectively redundant as the necessary adjustments are already incorporated into the final costs. The total time required to perform a multiblock read operation is divided by the time it takes on average to perform a single block read operation. Using the optimizer_index_cost_adj parameter, although supported and permissible, will likely result in the final CBO costs being adjusted inappropriately as the index related single block I/Os will “double-dip” and potentially reduce both as a result of the system statistic differences between sreadtim and mreadtim and also as a result of the optimizer_index_cost_adj parameter as well.
The system stats are much preferred provided they’re accurate and kept reasonably up to date, because one doesn’t need to “manually” change any associated database parameter.
Not only are the comparative differences between sreadtim and mreadtim maintained, but so are other useful system statistics such as thembrc statistic to be discussed next.
So in summary, when using the CPU costing model, do not set the optimizer_index_cost_adj parameter at all. Leave it alone, collect representative system statistics and let the system statistics look after the comparative costs between single and multiblock I/Os for you automatically.
参考至:http://richardfoote.wordpress.com/2009/12/14/the-cpu-costing-model-a-few-thoughts-part-ii/
如有错误,欢迎指正
邮箱:czmcj@163.com
相关推荐
标题《Oracle Project Costing Manual》表明本文档是关于Oracle项目成本管理的使用手册。文档描述指出,它用于指导Oracle项目成本管理系统的实施。标签“project costing”指明这是专门针对项目成本管理的专业内容。...
Costing Sheet - 成本核算单原理与后台配置 成本核算单(Costing Sheet)是一种重要的成本会计工具,用于计算和分配间接生产费用。它能够帮助企业更好地控制成本,提高生产效率和经济效益。 成本核算单的原理 ...
根据提供的文档信息,本文将对SAP中的运输成本计算(Shipment Costing)进行详细的解析。主要内容包括SAP TM管理的定制设置、主数据配置以及流程演示等方面。 ### 一、简介 本文档旨在介绍SAP系统中运输成本计算的...
动态成本(Dynamic Costing)是一种基于决策制定的成本管理方法,它强调根据不同的决策情境来定义和衡量成本。这种方法对于现代企业的财务管理至关重要,因为它可以帮助企业在不断变化的市场环境中做出更明智的决策...
The trees are managed, and branches are grafted as necessary, so that navigating down the tree to find a value and locate a specific record takes only a few page accesses. Because the trees are ...
8.Tesla Model 3域控制器 Reverse Costing 分析:通过对域控制器的Reverse Costing 分析,可以了解自动驾驶系统的成本结构和经济效益,了解自动驾驶系统的市场竞争力和商业战略。 9. 域控制器电子设计自动化(EDA)...
• Consumer Loan Assistant – Helps you see just how much those credit cards are costing you. • Flash Card Math Quiz – Lets you practice basic addition, subtraction, multiplication and division ...
QAD Costing是QAD公司提供的一个专门针对产品成本管理和控制的解决方案。QAD Costing旨在帮助企业精确地计算和管理其产品的成本,从而优化运营效率,提高盈利能力,并作出更明智的决策。 产品成本法是QAD Costing的...
the perspective of a software developer, but rather that of a Web-page author. I don’t spend a lot of time discussing BNF grammars or parsing element trees. Instead, I show you how you can use XML ...
Research has shown that if a customer arrives and there are no beds available, the customer will turn around and leave, thus costing the company a sale. Your task is to write a program that tells the...
《Oracle Project Costing 用户指南 11i 版》是Oracle公司发布的一份技术文档,主要作者包括Jeffrey Colvard、Stephen A. Gordon,以及多位贡献者。该指南旨在为用户详细阐述如何在Oracle Project Costing 11i版本中...
The cloud offers information technology workers significant cost savings and agility unimaginable even just a few years ago. Tasks that traditionally took weeks of work, costing thousands of dollars,...
Product_Costing
In the wake of the indie game development scene, game development tools are no longer luxury items costing up to millions of dollars but are now affordable by smaller teams or even individual ...
活动成本及活动基础管理(Activity-Based Costing and Activity-Based Management,简称ABC/ABM)是管理会计中的核心概念,主要用于更准确地分配间接成本并优化决策制定。在现代企业环境中,间接成本通常占据了总...
The document serves as a guide for those responsible for production, costing, or supply chain management. It aims to educate them on the range and scalability of the functionality offered by the lean ...
录像61_costing by period3
录像59_Costing by period1
录像60_costing by period2