Affected NV Version: all
OS Version: Linux
Plugin version: N/A
Application version: N/A
How to configure shared memory settings in Linux
In Linux, the shared memory is not dynamically configured (changed in accordance to application demands on the kernel). For optimum performance, Quest Technical Support will sometimes recommend increasing the system's shared memory.
To check current running shared memory setting issue the following commands
# cat /proc/sys/kernel/shmmax
# cat /proc/sys/kernel/shmall
Maximum shared memory can safely be set to half of your physical memory.
For example, if you have 1GB of physical memory, you would set your shmmax (shared memory maximum) to 512MB.
1. Edit the file /etc/sysctl.conf.
2. Set the shared memory size to 512 MB by adding the following lines to the
end of the file.
kernel.shmmax = 536870912
kernel.shmall = 131072
3. Run the following command from the root prompt.
# /sbin/sysctl -p
Every time the machine reboots, the shared memory will be set to this value.
**Note** the relationship between shmall and shmmax. shmall is the number of pages (4k in size). shmall x 4096 = shmmax.