楼主: zhu47172310

RAC中的global cache cr request等待事件 过长

[复制链接]
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
41#
发表于 2008-1-8 09:55 | 只看该作者
完全支持rollingpig

使用道具 举报

回复
论坛徽章:
116
ITPUB北京九华山庄2008年会纪念徽章
日期:2008-01-21 16:50:24马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14沸羊羊
日期:2015-03-04 14:43:432015年新春福章
日期:2015-03-06 11:57:31喜羊羊
日期:2015-03-25 15:04:022010数据库技术大会纪念徽章
日期:2015-04-23 10:33:192011数据库大会纪念章
日期:2015-04-23 10:33:192012数据库大会纪念章
日期:2015-04-23 10:33:192013数据库大会纪念章
日期:2015-04-23 10:33:19
42#
发表于 2008-1-8 10:06 | 只看该作者
心跳网络最好用千兆或者更好的配置

千兆现在也花不了多少钱,网卡好像2、3百,switch好像也在1k以内。

使用道具 举报

回复
招聘 : Linux运维
论坛徽章:
42
奥运会纪念徽章:跳水
日期:2008-09-08 16:00:45茶鸡蛋
日期:2013-01-18 12:36:552013年新春福章
日期:2013-02-25 14:51:24复活蛋
日期:2013-03-28 19:57:20茶鸡蛋
日期:2013-07-05 08:59:54茶鸡蛋
日期:2013-07-08 10:01:05福特
日期:2013-08-06 10:13:26马上有车
日期:2014-03-26 10:47:51马上有对象
日期:2014-04-28 13:43:04马上有钱
日期:2014-07-19 16:38:11
43#
发表于 2008-1-8 10:50 | 只看该作者
充分说明:
rac环境中,client连接的时候也要根据业务不同而固定连接到固定节点上

使用道具 举报

回复
论坛徽章:
0
44#
发表于 2008-1-8 13:30 | 只看该作者
Yong Huang,

I think when the ratio is larger than 25%,  _fairmess_threshold should be reduced.  

In addition, I think to check interconnection and lms process first.  If there are gc cr failure and gc block/grant congested event in statpack report,  those problems should be fixed first.

使用道具 举报

回复
论坛徽章:
0
45#
发表于 2008-1-8 13:40 | 只看该作者
原帖由 Yong Huang 于 2007-11-28 02:52 发表
It makes me think of the parameter _serial_direct_read (enable direct read in serial). Once you set it, all db file scans that cause db file scattered read wait, such as FTS or index fast full scan, will bypass buffer cache, and the wait event changes to direct path read. You want to avoid polluting buffer cache by FTS. Right? That's the parameter you can try. Even alter session works.

Yong Huang


Is the parameter helpful?  cr request event is caused by remote cache access to old image or remote instance undo block.

使用道具 举报

回复
论坛徽章:
0
46#
发表于 2008-1-8 14:10 | 只看该作者
原帖由 zhu47172310 于 2007-2-2 13:41 发表
不好意思,dump ipc我不会。本人人比较懒,目前系统正常在用,不想在搞什么事,没有深入研究,就撮合着用吧。


dump ipc 不需要 shutdown db

SQL> oradebug setmypid
Statement processed.
SQL> oradebug ipc
Information written to trace file.
SQL> oradebug tracefile_name

Find keyword "info for network"

使用道具 举报

回复
论坛徽章:
1
ITPUB十周年纪念徽章
日期:2011-11-01 16:23:26
47#
发表于 2008-1-10 09:54 | 只看该作者
原帖由 biti_rainy 于 2007-11-27 19:41 发表
两个可能因素造成
1: 节点之间interconnect 通讯 的 global CR
2: 本节点索引访问造成block cache离散,增加了io量

这样一个fts 导致io增加和global cr ,可能会造成情况恶化。

BTW: 即使单节点数据库,原因2 也可能导致fts 很慢,data buffer偏大可能造成情况更糟糕,因为io 大大增加。


data buffer偏大可能造成情况更糟糕,因为io 大大增加。

这个是什么意思,不懂。。。。

使用道具 举报

回复
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
48#
发表于 2008-1-10 12:08 | 只看该作者
原帖由 stacyruirui 于 2008-1-7 23:40 发表

Is the parameter helpful?  cr request event is caused by remote cache access to old image or remote instance undo block.


I'm not sure if setting _serial_direct_read to true helps reduce global cache cr requests. But in theory, it should work. It basically changes your RAC database to behave like a non-cache-fusion database, temporarily for that type of scan. That is, when a block is needed (for scattered read only; note the word "scattered" here corresponds to "serial" in "_serial_direct_read"), Oracle doesn't bother to check buffer cache; instead the process directly goes to disk and reads. If that's the case, global cr requests should drop.

On the other hand, you may ask: Whenever a direct read is needed, it's always preceded by writing dirty buffers for the needed blocks to disk first. So the *old* blocks for this segment in global buffer cache have to be scanned anyway. So we don't gain anything. Is that why you're asking?

So, I actually don't know. Somebody else may have more insight, and possibly come up with a good experiment to prove the effectiveness or lack of. I would appreciate that.

Yong Huang

使用道具 举报

回复
论坛徽章:
15
奥运会纪念徽章:击剑
日期:2008-07-17 14:58:53懒羊羊
日期:2015-03-04 14:52:11马上有房
日期:2014-02-18 16:42:022014年新春福章
日期:2014-02-18 16:42:02ITPUB 11周年纪念徽章
日期:2012-10-09 18:08:152012新春纪念徽章
日期:2012-01-04 11:53:54ITPUB十周年纪念徽章
日期:2011-11-01 16:23:262011新春纪念徽章
日期:2011-02-18 11:42:472011新春纪念徽章
日期:2011-01-04 10:35:17ITPUB9周年纪念徽章
日期:2010-10-08 09:34:01
49#
发表于 2009-11-17 16:39 | 只看该作者
学习一下老帖子

使用道具 举报

回复
招聘 : 数据库管理员
论坛徽章:
20
祖国60周年纪念徽章
日期:2009-10-09 08:28:00数据库板块每日发贴之星
日期:2011-02-20 01:01:01ITPUB季度 技术新星
日期:2011-04-02 10:31:09ITPUB十周年纪念徽章
日期:2011-11-01 16:24:042012新春纪念徽章
日期:2012-01-04 11:54:26玉石琵琶
日期:2012-02-21 15:04:38最佳人气徽章
日期:2012-03-13 17:39:18ITPUB 11周年纪念徽章
日期:2012-10-09 18:09:192013年新春福章
日期:2013-02-25 14:51:242011新春纪念徽章
日期:2011-02-18 11:43:33
50#
发表于 2010-11-11 17:19 | 只看该作者
good  今天看一个internal的文档 刚好描述了该隐藏参数
_fairness_threshold

--------------------------------------------------------------------------------
NOTE: This is an internal Oracle parameter. Do NOT use it unless instructed to do so by Oracle Support. Playing with this parameter may be harmful.
Oracle 11.1.0:
Parameter Name: _fairness_threshold  
Description: number of times to CR serve before downgrading lock  
Type: NUMBER  Obsoleted: FALSE  
Can ALTER SESSION: FALSE  Can ALTER SYSTEM: IMMEDIATE  

Oracle 10.2.0:
Parameter Name: _fairness_threshold  
Description: number of times to CR serve before downgrading lock  
Type: NUMBER  Obsoleted: FALSE  
Can ALTER SESSION: FALSE  Can ALTER SYSTEM: IMMEDIATE  

Oracle 10.1.0:
Parameter Name: _fairness_threshold  
Description: number of times to CR serve before downgrading lock (DFS)  
Type: NUMBER  Obsoleted: FALSE  
Can ALTER SESSION: FALSE  Can ALTER SYSTEM: IMMEDIATE  

Oracle 9.2.0:
Parameter Name: _fairness_threshold  
Description: number of times to CR serve before downgrading lock (DFS)  
Type: NUMBER  Obsoleted: FALSE  
Can ALTER SESSION: FALSE  Can ALTER SYSTEM: IMMEDIATE  

Oracle 8.1.7:
Parameter Name: _fairness_threshold  
Description: number of times to CR serve before downgrading lock (DFS)  
Type: NUMBER  Obsoleted: FALSE  
Can ALTER SESSION: FALSE  Can ALTER SYSTEM: IMMEDIATE

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表