How to set semaphore limits¶
In some scenario, the application had a semaphore limit issue. We need to increase some semaphore limits, such as semaphore array.
How do we set the semaphore limits?
What values should we set for the semaphore limits?
# ipcs -ls
------ Semaphore Limits --------
max number of arrays = 1024 ## SEMMNI
max semaphores per array = 250 ## SEMMSL
max semaphores system wide = 256000 ## SEMMNS
max ops per semop call = 32 ## SEMOPM
semaphore max value = 32767
External FAQ
How to set the semaphore values on LINUX
How to Change Kernel Semaphore Limits in CentOS/RHEL
Add semaphore count and other ipcs limits to health monitoring