Created
April 8, 2014 01:55
-
-
Save schnell18/10082232 to your computer and use it in GitHub Desktop.
Check and set Linux kernel semaphores
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat /proc/sys/kernel/sem | |
250 32000 32 128 | |
# ipcs -ls | |
------ Semaphore Limits -------- | |
max number of arrays = 128 | |
max semaphores per array = 250 | |
max semaphores system wide = 100 | |
max ops per semop call = 32 | |
semaphore max value = 32767 | |
Temporarily set semaphore | |
# echo 250 32000 100 128 > /proc/sys/kernel/sem | |
Permanently set semaphore | |
# echo "kernel.sem=250 32000 100 128" >> /etc/sysctl.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment