12
返回列表 发新帖
楼主: tolilong

ipcs 之后查看共享内存段,发现有oracle三条记录

[复制链接]
论坛徽章:
86
2015中国数据库技术大会纪念徽章
日期:2015-04-24 16:04:24马上有车
日期:2014-02-19 11:55:14马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11优秀写手
日期:2013-12-18 09:29:11日产
日期:2013-10-17 08:44:39马自达
日期:2013-08-26 16:28:022013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-23 16:55:51马上有房
日期:2014-02-19 11:55:14
11#
发表于 2012-11-12 15:18 | 只看该作者
重启后ipcs还是三块?

使用道具 举报

回复
求职 : 数据库管理员
论坛徽章:
19
ITPUB 11周年纪念徽章
日期:2012-10-09 18:14:482016猴年福章
日期:2016-02-23 09:58:342016猴年福章
日期:2016-02-18 09:31:30金牛座
日期:2016-01-13 09:11:33ITPUB14周年纪念章
日期:2015-10-26 17:23:44巨蟹座
日期:2015-10-20 10:17:21马上有对象
日期:2014-02-18 16:44:082014年新春福章
日期:2014-02-18 16:44:08ITPUB社区12周年站庆徽章
日期:2013-10-17 13:56:59ITPUB社区12周年站庆徽章
日期:2013-10-08 17:44:42
12#
 楼主| 发表于 2012-11-13 13:43 | 只看该作者
sundog315 发表于 2012-11-12 15:18
重启后ipcs还是三块?

还是三块.

使用道具 举报

回复
论坛徽章:
9
阿斯顿马丁
日期:2013-07-31 19:53:35凯迪拉克
日期:2013-09-25 13:25:03宝马
日期:2013-09-29 15:22:372014年新春福章
日期:2014-02-18 16:44:08马上有对象
日期:2014-02-18 16:44:08优秀写手
日期:2014-06-17 06:00:122015年新春福章
日期:2015-03-04 14:53:162015年新春福章
日期:2015-03-06 11:58:39喜羊羊
日期:2015-03-10 14:01:43
13#
发表于 2013-8-17 09:23 | 只看该作者
我也是三快共享段,有人解决这个问题了吗

使用道具 举报

回复
论坛徽章:
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
14#
发表于 2013-8-20 06:37 | 只看该作者
I checked a few servers I have. It looks like something new in 11g (or 12c). My 10g server has only 1 segment. 11g has 3. One 2 MB, one large segment for the most part of my HugePages (from which almost 99% is allocated to SGA), and one small one of varying size (16M to 128M). According to /proc/<pid>/smaps (available in newer version of Linux), the first piece is the small but varying size segment, then the big one, then the fixed size 2M segment. Not sure why Oracle does that.

使用道具 举报

回复
论坛徽章:
59
狮子座
日期:2016-03-26 13:35:402013年新春福章
日期:2013-02-25 14:51:24双黄蛋
日期:2013-02-25 11:06:15ITPUB 11周年纪念徽章
日期:2012-10-09 18:06:20灰彻蛋
日期:2012-04-25 13:19:33紫蛋头
日期:2012-03-14 11:16:09最佳人气徽章
日期:2012-03-13 17:39:18玉石琵琶
日期:2012-02-21 15:04:38鲜花蛋
日期:2011-11-30 14:13:01ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15
15#
发表于 2013-8-21 13:08 | 只看该作者
Yong Huang 发表于 2013-8-20 06:37
I checked a few servers I have. It looks like something new in 11g (or 12c). My 10g server has only  ...

http://www.itpub.net/thread-1810326-1-4.html

Why Multiple Shared Memory Segments are Created From 11.2.0.3 (Doc ID 1399908.1)

Goal
This document explains why databases have multiple shared segments after upgrading to 11.2.0.3, without making any change in the settings and parameters.


Solution
From 11.2.0.3, all databases are expected to have multiple shared memory segments.

The additional shared memory segments are an expected side effect of the fix for unpublished Bug 12654172 included 11.2.0.3. Part of that fix is to ensure that each shared memory segment making up the SGA only contains sub-areas with an identical alignment requirement - hence we end up spreading the SGA over more separate SHM segments..

In cases of very large numbers of databases this change may require the customer to review of the OS parameter SHMMNI (or equivalent), but otherwise this change should not be a problem - we have always allowed the SGA to split over multiple SHM segments - this change just adds an additional reason that can cause the split.

使用道具 举报

回复
论坛徽章:
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
16#
发表于 2013-8-21 23:54 | 只看该作者
本帖最后由 Yong Huang 于 2014-2-19 11:26 编辑

Thanks for the MOS note. The unpublished bug 12654172 is the base bug for these two bugs:

Bug 10155276 : WHEN FORCING HUGEPAGES STARTUP SHOULD ABORT ON FIRST SHMGET FAILURE
Bug 12725442 : INCORRECT HUGEPAGES AND INSTANCE MEMORY PARAMETERS CAUSE DBNODE PANICS

Both are specific to the Linux port of Oracle. The second one is quite useless. The first one basically says before 11.2.0.3, if you have enabled NUMA support (which is enabled by default before 11.2.0.1 but disabled beginning with 11.2.0.1), and you have over-allocated total SGA that can use HugePages and use_large_pages=ONLY, then HugePages are still allocated (and possibly instances are started), while the correct behavior is that the instances should fail to start. Splitting the one monolithic shared memory segment into 3 should solve the problem, but I don't know how it does. To "ensure that each shared memory segment making up the SGA only contains sub-areas with an identical alignment requirement" is the key. I wish there was more info about it.

I tested on an 8-CPU Linux box running Oracle 11.2.0.3 by changing _enable_NUMA_support to true. After startup, I see 6 shared memory segments instead of 3. (numactl tells me I have 2 NUMA nodes.)

使用道具 举报

回复
论坛徽章:
1
优秀写手
日期:2014-02-20 06:00:12
17#
发表于 2014-2-19 14:13 | 只看该作者
我也有同样的问题,能解释一下吗?

使用道具 举报

回复
论坛徽章:
8
2009新春纪念徽章
日期:2009-01-04 14:52:28祖国60周年纪念徽章
日期:2009-10-09 08:28:002010新春纪念徽章
日期:2010-03-01 11:07:24ITPUB9周年纪念徽章
日期:2010-10-08 09:32:25ITPUB十周年纪念徽章
日期:2011-11-01 16:23:262013年新春福章
日期:2013-02-25 14:51:24沸羊羊
日期:2015-03-04 14:51:522015年新春福章
日期:2015-03-06 11:57:31
18#
发表于 2014-2-27 13:27 | 只看该作者
楼上不是给出解释了吗?

使用道具 举报

回复

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

本版积分规则 发表回复

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