Date: 06/07
Affected NV Version: ALL
OS Version: FreeBSD OS 4.0 and above
Plugin version: N/A
Application version: N/A
Description: How to configure the Shared Memory in the FreeBSD OS.
Symptoms: FreeBSD OS does not accept the shared memory settings in /etc/rc.conf.
You must put the values in two separate files, and reboot the machine in order to take effect.
Example: (to configure a FreeBSD Machine with 2 Giga Bytes of RAM Memory and set 512 Mega Bytes as Shared Memory)
1)- Open the file /boot/loader.conf and place the following values
kern.ipc.shmmni: 128
kern.ipc.shmseg: 32
2)- Open the file /etc/sysctl.conf and place the following values
kern.ipc.shmmax: 536870912
kern.ipc.shmmin: 1
kern.ipc.shmall: 131072
kern.ipc.shm_use_phys: 1
kern.ipc.shm_allow_removed: 1
3)- Reboot the machine and verify that the values remain set upon reboot.