求助:关于linux下共享内存的问题(转)[@more@]我已经在/etc/sysctl.conf中加入了kernel.shmmax = 536870912,也使用了sysctl -p执行,执行后显示的也是没错的,但是当我用ipcs -lm查看共享内存的时候却是这样显示的:
max number of segments = 4096
max seg size (kbytes) = 524288
max total shared memory (kbytes) = 0 //问题就是这行,请指教
min seg size (bytes) = 1
我在别的机器上看到的是第三行应该是显示我的共享内存数,但是无论我怎么改,总是显示为0,请问是什么原因,如何改过来.
下面是我用sysctl -p 看到的代码:
[root@localhost ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.shmmax = 536870912
max number of segments = 4096
max seg size (kbytes) = 524288
max total shared memory (kbytes) = 0 //问题就是这行,请指教
min seg size (bytes) = 1
我在别的机器上看到的是第三行应该是显示我的共享内存数,但是无论我怎么改,总是显示为0,请问是什么原因,如何改过来.
下面是我用sysctl -p 看到的代码:
[root@localhost ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.shmmax = 536870912
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10617731/viewspace-952731/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10617731/viewspace-952731/