How can I change semaphore and shared memory values?
Andrew Mclaughlin
I am new to Ubuntu Linux.
How can I change semaphore and shared memory values? What calculations do I use to work out what I should change them to? I need to set the values for backup operations.
I am using CommVault software for backup operations. My current semaphore values are 32000 1024000000 500 32000, which are not enough to take backup. I have to change the values to allow the backup operation.
41 Answer
You can get the values of semaphores and shared memory with command:
ipcs -aYou can change them with command:
sysctl(and by making changes in /etc/sysctl.conf)
You can check this page for more info about making these changes
Below is an extract from CommVault documentation about setting shared memory:
3The minimum recommended value for the SEMMNI parameter is 128. Use the following formula to calculate the value for the SEMMSL parameter: Non-MediaAgent: SEMMSL = 1 * number_of_desired_streams MediaAgent: SEMMSL = 12 * number_of_desired_streams Use the following formula to calculate the value for the SEMMNS parameter: SEMMNS = SEMMSL * SEMMNI The SEMOPM and SEMMSL parameter values must be equal. If any applications or databases are running on the client, the parameters must be increased accordingly.