楼主: tolywang

[性能调整] [紧急]同样的库,同样的执行计划,10g RAC上运行比单机上运行慢

[复制链接]
论坛徽章:
31
管理团队2006纪念徽章
日期:2006-04-16 22:44:452012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52铁扇公主
日期:2012-02-21 15:02:402013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11马上有车
日期:2014-02-19 11:55:14
11#
发表于 2009-12-10 16:07 | 只看该作者
原帖由 tolywang 于 2009-12-9 18:07 发表
备注:  都是分区表 。

1360 万的表全表扫描,QC上居然只要4秒钟

这个SQL返回值大概为12万  (可怕的报表系统啊)  , 他们以用户要求为准,NND,  一个借口就是,QC DB上跑的
还好啊,为什么在 RAC production db上那么慢  ?



how long to do a full table scan on the same table on RAC PROD ?

使用道具 举报

回复
论坛徽章:
31
管理团队2006纪念徽章
日期:2006-04-16 22:44:452012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52铁扇公主
日期:2012-02-21 15:02:402013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11马上有车
日期:2014-02-19 11:55:14
12#
发表于 2009-12-10 16:09 | 只看该作者
原帖由 tolywang 于 2009-12-9 18:49 发表
都是物理内存 32G ,  QC机器SGA给了 4G ,  Production RAC给了 20G .


Does the QC machine use file system ? Probably the data blocks are in file system cache already.


How about the RAC one ? use ASM ?

使用道具 举报

回复
论坛徽章:
31
管理团队2006纪念徽章
日期:2006-04-16 22:44:452012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52铁扇公主
日期:2012-02-21 15:02:402013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11马上有车
日期:2014-02-19 11:55:14
13#
发表于 2009-12-10 16:14 | 只看该作者
can u run the same query on both QC and RAC and capture the run time stats like this ?

alter session set statistics_level ='ALL';
run query ;

SELECT * FROM TABLE(dbms_xplan.display_cursor(FORMAT=>'ALLSTATS LAST'));

that should give us a better idea.

and last test, turn on 10046 trace  to see where the time spent on RAC prod.

使用道具 举报

回复
论坛徽章:
71
2015年新春福章
日期:2015-03-06 11:57:312013年新春福章
日期:2013-02-25 14:51:24双黄蛋
日期:2013-01-06 13:31:18蜘蛛蛋
日期:2013-01-06 10:26:08茶鸡蛋
日期:2012-11-21 19:35:23ITPUB 11周年纪念徽章
日期:2012-10-09 18:05:07版主2段
日期:2012-05-15 15:24:11铁扇公主
日期:2012-02-21 15:02:402012新春纪念徽章
日期:2012-02-13 15:13:512012新春纪念徽章
日期:2012-02-13 15:13:51
14#
 楼主| 发表于 2009-12-10 18:33 | 只看该作者
原帖由 wing hong 于 2009-12-10 16:07 发表



how long to do a full table scan on the same table on RAC PROD ?



it take 3~4 mins ,  sometimes  1 mins  to run the same SQL  

Ocfs2 file system , not use ASM .

使用道具 举报

回复
论坛徽章:
71
2015年新春福章
日期:2015-03-06 11:57:312013年新春福章
日期:2013-02-25 14:51:24双黄蛋
日期:2013-01-06 13:31:18蜘蛛蛋
日期:2013-01-06 10:26:08茶鸡蛋
日期:2012-11-21 19:35:23ITPUB 11周年纪念徽章
日期:2012-10-09 18:05:07版主2段
日期:2012-05-15 15:24:11铁扇公主
日期:2012-02-21 15:02:402012新春纪念徽章
日期:2012-02-13 15:13:512012新春纪念徽章
日期:2012-02-13 15:13:51
15#
 楼主| 发表于 2009-12-10 18:35 | 只看该作者
原帖由 wing hong 于 2009-12-10 16:14 发表
can u run the same query on both QC and RAC and capture the run time stats like this ?

alter session set statistics_level ='ALL';
run query ;

SELECT * FROM TABLE(dbms_xplan.display_cursor(FORMAT=>'ALLSTATS LAST'));

that should give us a better idea.

and last test, turn on 10046 trace  to see where the time spent on RAC prod.



ok , I will try , thanks .

使用道具 举报

回复
论坛徽章:
31
管理团队2006纪念徽章
日期:2006-04-16 22:44:452012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52铁扇公主
日期:2012-02-21 15:02:402013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11马上有车
日期:2014-02-19 11:55:14
16#
发表于 2009-12-10 18:41 | 只看该作者
原帖由 tolywang 于 2009-12-10 18:33 发表



it take 3~4 mins ,  sometimes  1 mins  to run the same SQL  

Ocfs2 file system , not use ASM .


so looks just the slowness of ocfs2 , is this consistent ?

not familiar with ocfs2, no sure why you would use it for PROD ?

My impression is that it is not that good to be used in PROD in terms of performance as well as stability.

what does the QC system use then ?

使用道具 举报

回复
论坛徽章:
25
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:442010世博会纪念徽章
日期:2010-07-30 12:07:232011新春纪念徽章
日期:2011-02-18 11:43:332010广州亚运会纪念徽章:高尔夫球
日期:2011-04-11 18:22:37蜘蛛蛋
日期:2011-08-17 08:44:40ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15复活蛋
日期:2011-12-15 09:06:552012新春纪念徽章
日期:2012-01-04 11:51:22ITPUB 11周年纪念徽章
日期:2012-10-09 18:06:202013年新春福章
日期:2013-02-25 14:51:24
17#
发表于 2009-12-10 19:01 | 只看该作者
10046
or
只连其中一个节点看看效果

使用道具 举报

回复
论坛徽章:
71
2015年新春福章
日期:2015-03-06 11:57:312013年新春福章
日期:2013-02-25 14:51:24双黄蛋
日期:2013-01-06 13:31:18蜘蛛蛋
日期:2013-01-06 10:26:08茶鸡蛋
日期:2012-11-21 19:35:23ITPUB 11周年纪念徽章
日期:2012-10-09 18:05:07版主2段
日期:2012-05-15 15:24:11铁扇公主
日期:2012-02-21 15:02:402012新春纪念徽章
日期:2012-02-13 15:13:512012新春纪念徽章
日期:2012-02-13 15:13:51
18#
 楼主| 发表于 2009-12-10 22:51 | 只看该作者
原帖由 wing hong 于 2009-12-10 18:41 发表


so looks just the slowness of ocfs2 , is this consistent ?

not familiar with ocfs2, no sure why you would use it for PROD ?

My impression is that it is not that good to be used in PROD in terms of performance as well as stability.

what does the QC system use then ?



我们有3套OCFS2的RAC系统, 前2套分别运行1~2年多没有发现这样的问题,他们同样也有QC DB (linux ext3 file system) ,应用
方面也都是OLTP+Report 这种模式 。 还有一套GFS文件系统RAC的也很正常 。


这套系统本来是3个节点,刚开始导入数据的时候很正常,运行了几天, 后来正式准备上线的时候,发现建立Index的时候非常慢,没有
数据的Table 建立一个Index居然需要20多分钟, 没有办法,关闭了节点2 (因为节点2 的LUN 的label和节点1,3不同,有些怀疑),
结果回复正常 。 目前一直是1,3节点在运行,节点2的信息也没有清理(没有停机时间) 。

心跳线switch 用的是比较老的 cisco 2948 , 用过几年的,不知道有没有影响。

使用道具 举报

回复
论坛徽章:
31
管理团队2006纪念徽章
日期:2006-04-16 22:44:452012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52铁扇公主
日期:2012-02-21 15:02:402013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11马上有车
日期:2014-02-19 11:55:14
19#
发表于 2009-12-11 20:54 | 只看该作者
原帖由 tolywang 于 2009-12-10 22:51 发表



我们有3套OCFS2的RAC系统, 前2套分别运行1~2年多没有发现这样的问题,他们同样也有QC DB (linux ext3 file system) ,应用
方面也都是OLTP+Report 这种模式 。 还有一套GFS文件系统RAC的也很正常 。


这套系统本来是3个节点,刚开始导入数据的时候很正常,运行了几天, 后来正式准备上线的时候,发现建立Index的时候非常慢,没有
数据的Table 建立一个Index居然需要20多分钟, 没有办法,关闭了节点2 (因为节点2 的LUN 的label和节点1,3不同,有些怀疑),
结果回复正常 。 目前一直是1,3节点在运行,节点2的信息也没有清理(没有停机时间) 。

心跳线switch 用的是比较老的 cisco 2948 , 用过几年的,不知道有没有影响。


i c. looks something wrong the config/status etc of the ocfs2. maybe you can check the error log etc .

使用道具 举报

回复
论坛徽章:
13
生肖徽章2007版:蛇
日期:2009-09-29 15:44:15ITPUB十周年纪念徽章
日期:2011-11-01 16:21:152010年世界杯参赛球队:日本
日期:2010-05-04 17:51:192010年世界杯参赛球队:南非
日期:2010-04-28 10:07:122010年世界杯参赛球队:希腊
日期:2010-04-23 16:19:412010新春纪念徽章
日期:2010-03-01 11:08:342010年世界杯参赛球队:科特迪瓦
日期:2010-01-27 14:47:432010年世界杯参赛球队:意大利
日期:2010-01-25 08:58:012010新春纪念徽章
日期:2010-01-04 08:33:08生肖徽章2007版:鼠
日期:2009-11-10 11:54:09
20#
发表于 2009-12-14 11:04 | 只看该作者
mark

使用道具 举报

回复

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

本版积分规则 发表回复

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