123
返回列表 发新帖
楼主: lifewise

[讨论] orale 10 RAC升级失败,升级后性能超慢

[复制链接]
论坛徽章:
28
ITPUB元老
日期:2005-06-18 23:14:252011新春纪念徽章
日期:2011-01-25 15:42:152011新春纪念徽章
日期:2011-01-25 15:42:332011新春纪念徽章
日期:2011-01-25 15:42:562011新春纪念徽章
日期:2011-02-18 11:42:47现任管理团队成员
日期:2011-05-07 01:45:08ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412012新春纪念徽章
日期:2012-01-04 11:49:542012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
21#
发表于 2009-7-15 22:08 | 只看该作者
alter file 和awr report贴出来瞧瞧
操作系统有无异常?
syslog贴出来

使用道具 举报

回复
论坛徽章:
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
22#
发表于 2009-7-16 04:58 | 只看该作者
原帖由 lifewise 于 2009-7-14 22:21 发表
没有triggle,基本确定问题在
28365 10:53:13 shmat(425985, 0x60000000, 0) = ?
28365 10:53:15 getcwd("/home/oracle/10.2.0.4/db/dbs"..., 256) = 29

谢谢棉花的帮忙

通过应用的小测试程序,慢应该在连接的地方,去数据库取一个小表,升级前30ms,升级后3000ms


So attaching to the shared memory segment is slow. What's your plan to improve it? Decrease SGA? Search on Metalink?

Yong Huang

使用道具 举报

回复
论坛徽章:
5
会员2007贡献徽章
日期:2007-09-26 18:42:10奥运会纪念徽章:水球
日期:2008-10-24 13:17:39生肖徽章2007版:蛇
日期:2009-11-13 10:54:51ITPUB学员
日期:2009-11-30 11:23:13ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15
23#
 楼主| 发表于 2009-8-13 15:51 | 只看该作者
更新一下,供大家参考,找了oracle support,将pre_page_sga修改成false就可以了。

使用道具 举报

回复
论坛徽章:
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
24#
发表于 2009-8-13 22:33 | 只看该作者
原帖由 lifewise 于 2009-8-13 01:51 发表
更新一下,供大家参考,找了oracle support,将pre_page_sga修改成false就可以了。


Thanks for the feedback. I think you're using Linux. Is it Red Hat Linux? What release is it?

Metalink Note:361468.1 says "HugePages already makes the SGA pages non-swappable, so those parameters are not needed to have SGA pages unswappable. But those parameters still can provide additional performance advantages for the internal mechanism of Oracle Database memory management."

I strongly suggests you configure HugePages if you haven't done so. It boosts overall database performance and shortens the time to create a new server process (when a client connects to the database).

The reason I ask about your exact Red Hat Linux release is that RHEL 5.0 and 5.1 has problems with HugePages, especially when pre_page_sga is true. See Note:550443.1.

Yong Huang

使用道具 举报

回复
论坛徽章:
0
25#
发表于 2009-8-14 00:17 | 只看该作者
原帖由 Yong Huang 于 2009-8-13 22:33 发表


Thanks for the feedback. I think you're using Linux. Is it Red Hat Linux? What release is it?

Metalink Note:361468.1 says "HugePages already makes the SGA pages non-swappable, so those parameters are not needed to have SGA pages unswappable. But those parameters still can provide additional performance advantages for the internal mechanism of Oracle Database memory management."

I strongly suggests you configure HugePages if you haven't done so. It boosts overall database performance and shortens the time to create a new server process (when a client connects to the database).

The reason I ask about your exact Red Hat Linux release is that RHEL 5.0 and 5.1 has problems with HugePages, especially when pre_page_sga is true. See Note:550443.1.

Yong Huang



为什么会这样,不应该啊,只是一起都把内存读进去了

使用道具 举报

回复
论坛徽章:
0
26#
发表于 2009-8-14 00:17 | 只看该作者
原帖由 lifewise 于 2009-8-13 15:51 发表
更新一下,供大家参考,找了oracle support,将pre_page_sga修改成false就可以了。



看看你的换入换出

使用道具 举报

回复
论坛徽章:
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
27#
发表于 2009-8-14 22:31 | 只看该作者
原帖由 ixpubber 于 2009-8-13 10:17 发表

为什么会这样,不应该啊,只是一起都把内存读进去了


You mean why when pre_page_sga is true, making a new connection is slow? The article explains it. Each connection requires a new server process to be created on the server. When pre_page_sga is true, each new process needs to allocate all memory pages rather than simply allocate the minimum needed and allocate more as it needs more later on. Does that make sense? I think you can check pga_used_mem and pga_alloc_mem in v$process when you play with pre_page_sga. Pga_alloc_mem is for memory reservation and pga_used_mem is what I call memory allocation, i.e. really physically allocated. (Confusing names, aren't they?)

Yong Huang

使用道具 举报

回复
论坛徽章:
138
19周年集字徽章-19
日期:2020-06-08 08:30:56马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-18 16:42:022014年新春福章
日期:2014-02-18 16:42:02路虎
日期:2013-11-22 12:26:18问答徽章
日期:2014-05-08 12:15:31
28#
发表于 2009-8-15 10:09 | 只看该作者

回复 #27 Yong Huang 的帖子

这参数设置成true不关启动数据库的时候会去touch sga ,而且建立连接的时候也会去touch sga

PRE_PAGE_SGA can increase the process startup duration, because every process that starts must access every page in the SGA. The cost of this strategy is fixed; however, you might simply determine that 20,000 pages must be touched every time a process starts. This approach can be useful with some applications, but not with all applications. Overhead can be significant if your system frequently creates and destroys processes by, for example, continually logging on and logging off.

The advantage that PRE_PAGE_SGA can afford depends on page size. For example, if the SGA is 80 MB in size and the page size is 4 KB, then 20,000 pages must be touched to refresh the SGA (80,000/4 = 20,000).

If the system permits you to set a 4 MB page size, then only 20 pages must be touched to refresh the SGA (80,000/4,000 = 20). The page size is operating system-specific and generally cannot be changed. Some operating systems, however, have a special implementation for shared memory whereby you can change the page size.

使用道具 举报

回复
论坛徽章:
138
19周年集字徽章-19
日期:2020-06-08 08:30:56马上加薪
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-18 16:42:022014年新春福章
日期:2014-02-18 16:42:02路虎
日期:2013-11-22 12:26:18问答徽章
日期:2014-05-08 12:15:31
29#
发表于 2009-8-15 10:10 | 只看该作者
我想不通的是为什么9i里这个参数为true没影响,可能是bug的原因导致pre_sga_page没起作用

使用道具 举报

回复
论坛徽章:
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
30#
发表于 2009-8-16 01:45 | 只看该作者
原帖由 棉花糖ONE 于 2009-8-14 20:10 发表
我想不通的是为什么9i里这个参数为true没影响,可能是bug的原因导致pre_sga_page没起作用


Ahh, I see. I don't have a 9i database on Linux. All I have is 10g or 11g. If you or anybody has 9i on Linux, do a test to find out. As I said, the two PGA columns v$process right after a new connection is made may be able to tell whether memory is fully allocated up front.

Yong Huang

使用道具 举报

回复

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

本版积分规则 发表回复

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