Mac – how to set the shmmax parameter on mac os x

macshmmax

how should I set the shm* values in Mac Os X 10.5.6 Leopard in a persistent manner?

Best Answer

put this

kern.sysv.shmmax=524288000
kern.sysv.shmmin=1
kern.sysv.shmmni=64
kern.sysv.shmseg=16
kern.sysv.semmns=130
kern.sysv.shmall=131072000
kern.sysv.maxproc=2048
kern.maxprocperuid=512

on this file /etc/sysctl.conf

and then reboot.

to verify run this command

 sysctl kern.sysv.shmmax 

and it should give 524288000