Oracle RAC Wait Events

本文讨论了Oracle RAC环境中数据库监控的重点,特别是在缓冲区缓存管理和实例间通信方面。介绍了两个关键等待事件:gccrrequest和gcbufferbusy,并探讨了它们产生的原因及优化建议。

RAC Differences


The main difference to keep in mind when monitoring a RAC database versus a
single instance database is the buffer cache and its operation. In a RAC
environment the buffer cache is global across all instances in the cluster and
hence the processing differs. When a process in a RAC database needs to
modify or read data, Oracle will first check to see if it already exists in the local
buffer cache. If the data is not in the local buffer cache the global buffer cache
will be reviewed to see if another instance already has it in their buffer cache. In
this case the remote instance will send the data to the local instance via the highspeed interconnect, thus avoiding a disk read.



Monitoring a RAC database often means monitoring this situation and the
amount of requests going back and forth over the RAC interconnect. The most
common wait events related to this are gc cr request and gc buffer busy.
gc cr request
This wait event, also known as global cache cr request prior to Oracle 10g,
specifies the time it takes to retrieve the data from the remote cache. High wait
times for this wait event often are because of:
1. RAC Traffic Using Slow Connection - typically RAC traffic should use a highspeed
interconnect to transfer data between instances, however, sometimes
Oracle may not pick the correct connection and instead route traffic over the
slower public network.
This will significantly increase the amount of wait time for the gc rc request event.
The “oradebug” command can be used to verify which network is being used for
RAC traffic:
SQL> oradebug setmypid
SQL> oradebug ipc
This will dump a trace file to the location specified by the user_dump_dest Oracle
parameter containing information about the network and protocols being used for
the RAC interconnect.
2. Inefficient Queries ˆ poorly tuned queries will increase the amount of data
blocks requested by an Oracle session. The more blocks requested typically
means the more often a block will need to be read from a remote instance via the
interconnect.
gc buffer busy
This wait event, also known as global cache buffer busy prior to Oracle 10g,
specifies the time the remote instance locally spends accessing the requested
data block. This wait event is very similar to the buffer busy waits wait event in a
single-instance database and are often the result of:
1. Hot Blocks - multiple sessions may be requesting a block that is either not
in buffer cache or is in an incompatible mode. Deleting some of the hot
rows and re-inserting them back into the table may alleviate the problem.
Most of the time the rows will be placed into a different block and reduce
contention on the block. The DBA may also need to adjust the pctfree
and/or pctused parameters for the table to ensure the rows are placed into
a different block.
2. Inefficient Queries ˆ as with the gc cr request wait event, the more blocks
requested from the buffer cache the more likelihood of a session having to
wait for other sessions. Tuning queries to access fewer blocks will often
result in less contention for the same block.
Conclusion
Oracle RAC is somewhat of a unique case of an Oracle environment, but
everything learned about wait events in the single instance database also applies
to clustered databases. However, the special use of a global buffer cache in RAC
makes it imperative to monitor inter-instance communication via the clusterspecific
wait events such as the ones discussed above. Understanding these
wait events will help in the diagnosis of problems and pinpointing solutions in a
RAC database.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-84626/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/35489/viewspace-84626/

基于NSGA-III算法求解微电网多目标优化调度研究(Matlab代码实现)内容概要:本文围绕基于NSGA-III算法的微电网多目标优化调度展开研究,重点介绍了如何利用该先进多目标进化算法解决微电网系统中多个相互冲突的目标(如运行成本最小化、碳排放最低、供电可靠性最高等)的协同优化问题。文中结合Matlab代码实现,详细阐述了NSGA-III算法的基本原理、在微电网调度模型中的建模过程、约束条件处理、目标函数设计以及仿真结果分析,展示了其相较于传统优化方法在求解高维、非线性、多目标问题上的优越性。同时,文档还提供了丰富的相关研究案例和技术支持背景,涵盖电力系统优化、智能算法应用及Matlab仿真等多个方面。; 适合人群:具备一定电力系统基础知识和Matlab编程能力的研究生、科研人员及从事能源优化领域的工程技术人员;尤其适合正在进行微电网调度、多目标优化算法研究或撰写相关论文的研究者。; 使用场景及目标:①掌握NSGA-III算法的核心思想及其在复杂能源系统优化中的应用方式;②学习如何构建微电网多目标调度模型并利用Matlab进行仿真求解;③为科研项目、毕业论文或实际工程提供算法实现参考和技术支撑。; 阅读建议:建议读者结合文中提供的Matlab代码实例,逐步调试运行并深入理解算法流程与模型构建细节,同时可参考文档中列出的其他优化案例进行横向对比学习,以提升综合应用能力。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值