How to increase semaphore limit in Linux?

On Red Hat Linux, the default limit of 128 semaphore arrays can be increased to 1024 by adding line below to /etc/sysctl.conf:
          kernel.sem=250 32000 32 1024

Use "ipcs -sl" to see the limits and "ipcs -s" to see the semaphores in use.

Updates to the sysctl.conf file will not be immediately updated.
The user will need to run sysctl -p.

No comments: