resetting shmmax parameters

jaymax jaymax36 at gmail.com
Sat Feb 13 10:14:39 UTC 2010


Hello,

FreeBSD O/S 7.2 i386 1CPU AMD

Server memory
RAM memory
	hw.physmem: 1060540416

# sysctl -a | grep shm
   kern.ipc.shm_allow_removed: 0
   kern.ipc.shm_use_phys: 0
   kern.ipc.shmall: 8192
   kern.ipc.shmseg: 128
   kern.ipc.shmmni: 192
   kern.ipc.shmmin: 1
   kern.ipc.shmmax: 33554432

>From dmesg
# grep memory /var/run/dmesg.boot
real memory  = 1073676288 (1023 MB)
avail memory = 1036972032 (988 MB)

# swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/ad0s1b       1536000       32  1535968     0%
/dev/ad1s1b       1048576       28  1048548     0%
/dev/ad4s1b       2072576       44  2072532     0%
Total             4657152      104  4657048     0%



program suggested parameters for shared memory

To reset the parameters:
  vi /etc/sysconfigtab    in order to add the lines
      ipc:
          shm-max=2147483647
          sem-mni=128

What is a safe / comfortable shmmax to use?  
Can I increase shmmax on the fly as in Linux or do I have to do reboot?


Thanks!   
-- 
View this message in context: http://old.nabble.com/resetting-shmmax-parameters-tp27573158p27573158.html
Sent from the freebsd-questions mailing list archive at Nabble.com.



More information about the freebsd-questions mailing list