免费注册 查看新帖 |

Chinaunix

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

sybase for linux 共享内存设置的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-30 21:58 |只看该作者 |倒序浏览
我在redhat as3 update 5(物理内存1G)上安装 sybase12.5.3,结果发现无法设置内存,具体的表现是:
设置   max memory = 262144 ,
执行sp_configure "allocate max shared mem",1 时,系统提示错误:

00:00000:00008:2007/01/30 22:00:29.80 server  The configuration option 'allocate
max shared memory' has been changed by 'sa' from '0' to '1'.
00:00000:00008:2007/01/30 22:00:29.80 kernel  Allocating a shared memory segment
of size 395730916 bytes.
00:00000:00008:2007/01/30 22:00:29.80 kernel  os_create_region: shmat(360449): I
nvalid argument
00:00000:00008:2007/01/30 22:00:29.80 kernel  kbcreate: couldn't create server r
egion 0.
00:00000:00008:2007/01/30 22:00:29.80 kernel  Retrying shared memory allocation
with smaller size 197865458 bytes.
00:00000:00008:2007/01/30 22:00:29.80 kernel  Allocating a shared memory segment
of size 197865458 bytes.
00:00000:00008:2007/01/30 22:00:29.80 kernel  os_create_region: shmat(393217): I
nvalid argument
@
00:00000:00008:2007/01/30 22:00:29.80 kernel  kbcreate: couldn't create server r
egion 0.
00:00000:00008:2007/01/30 22:00:29.80 kernel  Retrying shared memory allocation
with smaller size 98932729 bytes.
00:00000:00008:2007/01/30 22:00:29.80 kernel  Allocating a shared memory segment
of size 98932729 bytes.
00:00000:00008:2007/01/30 22:00:29.80 kernel  os_create_region: shmat(425985): I
nvalid argument
00:00000:00008:2007/01/30 22:00:29.80 kernel  kbcreate: couldn't create server r
egion 0.
00:00000:00008:2007/01/30 22:00:29.80 kernel  Retrying shared memory allocation
with smaller size 67108864 bytes.
00:00000:00008:2007/01/30 22:00:29.80 kernel  Allocating a shared memory segment
of size 67108864 bytes.
00:00000:00008:2007/01/30 22:00:29.80 kernel  os_create_region: shmat(458753): I
nvalid argument
00:00000:00008:2007/01/30 22:00:29.80 kernel  kbcreate: couldn't create server r
egion 0.
~

/etc/sysctl.conf的配置如下:
#for sybase
kernel.shmmax = 536870912
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.aio-max-size = 1048576
fs.file-max = 327680

查看共享内存情况:
ipcs -lm |grep 'max seg size'
max seg size (kbytes) = 524288
看了这里的不少帖子和sybase的installation guilde ,好像就是调shmmax这个参数了,
但是我的sybase还是不能设置内存。
麻烦各位帮看看问题。多谢!

论坛徽章:
0
2 [报告]
发表于 2007-01-30 22:43 |只看该作者
sysctl命令

论坛徽章:
0
3 [报告]
发表于 2007-01-30 22:46 |只看该作者
原帖由 hobbylu 于 2007-1-30 22:43 发表
sysctl命令

麻烦 hobbylu 解释详细一些吗?我对linux的使用不是很熟悉,多谢!

论坛徽章:
1
2017金鸡报晓
日期:2017-01-10 15:19:56
4 [报告]
发表于 2007-01-31 08:18 |只看该作者
执行sysctl -n kernel.shmmax 看一下
另外,可以将shmmax的值配置的再大一些

论坛徽章:
0
5 [报告]
发表于 2007-01-31 08:23 |只看该作者
原帖由 chuxu 于 2007-1-31 08:18 发表
执行sysctl -n kernel.shmmax 看一下
另外,可以将shmmax的值配置的再大一些



这个 sysctl -n kernel.shmmax  我晚上再试试看
我也尝试设置过 shmmax = 805306368 不过也同样的错误,另外,是否和sybase没有输入lisence有关?

论坛徽章:
1
2017金鸡报晓
日期:2017-01-10 15:19:56
6 [报告]
发表于 2007-01-31 08:32 |只看该作者
我的意思是你改了sysctl.conf 后执行sysctl -p 或是重启机器了吗?

论坛徽章:
0
7 [报告]
发表于 2007-01-31 08:36 |只看该作者
原帖由 chuxu 于 2007-1-31 08:32 发表
我的意思是你改了sysctl.conf 后执行sysctl -p 或是重启机器了吗?



只是修改了sysctl.conf,没有执行 sysctl -p ,就重启了,必须执行了 sysctl -p 再重启吗?

论坛徽章:
0
8 [报告]
发表于 2007-01-31 10:23 |只看该作者
你设置max memory=150000 看看

还有你就设置
kernel.shmmax = 536870912
fs.aio-max-size = 1048576
这两行,其他先去掉

[ 本帖最后由 beagle 于 2007-1-31 10:28 编辑 ]

论坛徽章:
0
9 [报告]
发表于 2007-01-31 12:51 |只看该作者
原帖由 beagle 于 2007-1-31 10:23 发表
你设置max memory=150000 看看

还有你就设置
kernel.shmmax = 536870912
fs.aio-max-size = 1048576
这两行,其他先去掉


多谢beagle

设置max memory=150000 应该不是问题,内存都是有的。

kernel.shmmax = 536870912
fs.aio-max-size = 1048576

只设置这2行也试了,还是不行。

论坛徽章:
0
10 [报告]
发表于 2007-01-31 13:08 |只看该作者
加大 sysctl.conf 中的配置,重启或sysctl -p
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP