Semaphore system resources of Linux
First, resource depletion anomalies
[Thu Sep 20 17:39:54.387218 2018] [core:emerg] [pid 9462] (28)No space left on device: AH00023: Couldn't create the rewrite-map mutex
ERROR: Couldn't create the rewrite-map mutex
The reason: lack of inter-process communication system resources
- IPCS current inspection system semaphore (Semaphore) resources:
# ipcs -s |wc -l
32004
- Display the current resource constraints IPCS
# ipcs -sl #结果如下所示:
The current system resource limitations:
To sum up, the current system does not lead to IPCS resources are available:
Solution:
Method One:
direct using the following command ( direct take effect, after the restart failure ):
# sysctl -w kernel.sem="250 64000 32 128"
kernel.sem = 250 64000 32 256
View the current system resource limitations:
# sysctl -a| grep kernel.sem
kernel.sem = 250 64000 32 256
The second method still take effect after reboot:
echo 'kernel.sem=250 64000 32 256' >> /etc/sysctl.conf
View modified parameters:
# cat /etc/sysctl.conf | grep kernel.sem
kernel.sem = 250 32000 32 192
Reload the configuration file, with immediate effect
# sysctl -p
View revised results: