IPCS semaphore system resources of Linux

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

Here Insert Picture Description
The reason: lack of inter-process communication system resources

  1. IPCS current inspection system semaphore (Semaphore) resources:
# ipcs -s |wc -l 
32004
  1. Display the current resource constraints IPCS
# ipcs -sl #结果如下所示:

The current system resource limitations:
Here Insert Picture Description

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:
Here Insert Picture Description

Published 52 original articles · won praise 19 · views 70000 +

Guess you like

Origin blog.csdn.net/AMimiDou_212/article/details/104955046