Consultor Eletrônico



Kbase P127249: How to modify the semaphore kernel parameters (SEMMSL, SEMMNS, SEMOPM, SEMMNI) on Linux Intel
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/24/2009
Status: Verified

GOAL:

How to modify the SEMMSL, SEMMNS, SEMOPM, SEMMNI kernel parameters on Linux.

GOAL:

How do I modify the kernel parameters associated with semaphores on the Linux operating system?

FACT(s) (Environment):

Linux Intel
Progress/OpenEdge Versions

FIX:

To see the current values of the SEMMSL, SEMMNS, SEMOPM and SEMMNI kernel parameters, run the following command:
cat /proc/sys/kernel/sem
It will display the current semaphore kernel parameters in the following order: SEMMSL SEMMNS SEMOPM SEMMNI
Example: 250 32000 32 128

To change values without the need to reboot the system, issue the following command. In the example below, SEMMSL is set to 250, SEMMNS is set to 32000, SEMOPM is set to 100 and SEMMNI is set to 128:
sysctl -w kernel.sem="250 32000 100 128"
Any changes made are only temporary, and will revert back to their old values when the system is rebooted.
To make the changes permanent, add, or modify if it already exists, the kernel.sem entry in the /etc/sysctl.conf startup file.
Example:
kernel.sem=250 32000 100 128