- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
5#
发表于 2012-6-26 22:16:31
In Oracle 10g, Oracle uses noworkload statistics and the CPU cost model by default.
10g 中 oracle默认收集 noworkload 统计信息
Workload statistics, introduced in Oracle 9i, gather single and multiblock read times, mbrc, CPU speed (cpuspeed), maximum system throughput, and average slave throughput. The sreadtim, mreadtim, and mbrc are computed by comparing the number of physical sequential and random reads between two points in time from the beginning to the end of a workload. These values are implemented through counters that change when the buffer cache completes synchronous read requests. Since the counters are in the buffer cache, they include not only I/O delays, but also waits related to latch contention and task switching. Workload statistics thus depend on the activity the system had during the workload window. If system is I/O bound—both latch contention and I/O throughput—it will be reflected in the statistics and will therefore promote a less I/O intensive plan after the statistics are used. Furthermore, workload statistics gathering does not generate additional overhead.
workload statistics 受到系统实际活动的影响和 收集的负载窗口, oracle可能受到workload statistics的影响 而更趋向于执行计划中避免昂贵的I/O操作。
一般我们不需要手动去收集 workload/noworkload 的 statistics, 除非你的环境中 i/O 和cpu 的配置异常高。 |
|