Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ipcs -l does not show correct shmXXX values...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rburcham
Apprentice
Apprentice


Joined: 20 Mar 2003
Posts: 178

PostPosted: Sat Nov 24, 2012 4:14 pm    Post subject: ipcs -l does not show correct shmXXX values... Reply with quote

I am trying to adjust shared memory segments on a 32bit box:

Code:
$uname -a
Linux home1 3.5.7-gentoo #1 SMP Sun Nov 11 15:21:31 CST 2012 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz GenuineIntel GNU/Linux


So:

$ grep kernel.shm /etc/sysctl.conf
#kernel.shmall = 46869516
#kernel.shmall = 209715
#kernel.shmmax = 36869516
#kernel.shmmax = 536870912
#kernel.shmmni = 4096
kernel.shmall = 8388608
kernel.shmmax = 134217728


and then:

$ sudo sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
kernel.shmall = 8388608
kernel.shmmax = 134217728


Ok great:

$ cat /proc/sys/kernel/shmall
8388608
$ cat /proc/sys/kernel/shmmax
134217728


But then why...

$ ipcs -lm

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 131072
max total shared memory (kbytes) = 33554432

min seg size (bytes) = 1

Apps behave like the values are those output by ipcs. I must be doing something fundamentally wrong... can someone straighten me out?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum