免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3468 | 回复: 5
打印 上一主题 下一主题

[SOLARIS]如何设置共享内存的大小 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-03-28 13:49 |只看该作者 |倒序浏览
我这里/etc/system里面设了:
set shmsys:shminfo_shmmax=64000000

我想设为64G,可是重起后,共享内存没有变化呀?


* IPC Semaphores
*
    10        semaphore identifiers (SEMMNI)
    60        semaphores in system (SEMMNS)
    30        undo structures in system (SEMMNU)
    25        max semaphores per id (SEMMSL)
    10        max operations per semop call (SEMOPM)
    10        max undo entries per process (SEMUME)
32767        semaphore maximum value (SEMVMX)
16384        adjust on exit max value (SEMAEM)
*
* IPC Shared Memory
*
   8388608        max shared memory segment size (SHMMAX)
   100        shared memory identifiers (SHMMNI)
*
* Time Sharing Scheduler Tunables
*
60        maximum time sharing user priority (TSMAXUPRI)
SYS        system class name (SYS_NAME)

论坛徽章:
0
2 [报告]
发表于 2004-03-28 21:09 |只看该作者
try
#modload /kernel/sys/shmsys

recheck with
#sysdef -i

论坛徽章:
0
3 [报告]
发表于 2004-03-28 21:20 |只看该作者

Re: [SOLARIS]如何设置共享内存的大小

最初由 andysun 发布
[B]我这里/etc/system里面设了:
set shmsys:shminfo_shmmax=64000000

我想设为64G,可是重起后,共享内存没有变化呀?

......
   8388608        max shared memory segment size (SHMMAX)

[/B]


Oh,you have made a mistake.That\'s rings a bell. System V Shared Memory tunable \"shmsys:shminfo_shmmax\" parameter using the unit of \"[B]byte[/B]\".64000000 there really represent the value of 64M, not 64G. 8388608 is the default value of shmsys:shminfo_shmmax. In fact , your setting really not take effort

So, check your /var/adm/message to see if there are some log info record there relate to kernel setting.

论坛徽章:
0
4 [报告]
发表于 2004-03-30 02:37 |只看该作者
最初由 bloomit 发布
[B]try
#modload /kernel/sys/shmsys

recheck with
#sysdef -i [/B]



thank you 板主大大,用了modload后起作用了,还有我上面说错了,是64M .

thank you again, have a good day.

论坛徽章:
0
5 [报告]
发表于 2004-03-31 10:11 |只看该作者
shared memory module or other driver/module is not loaded into memory unless some application needs it. I guess you received the default value before Oracle was started.

论坛徽章:
0
6 [报告]
发表于 2004-03-31 21:08 |只看该作者
设得太小了,最大值应和物理内存相当
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP