The system parameters will require tuning.
System Parameter Tuning Values
For information on which system parameters must be tuned, and what the values will be, refer to the system parameter tuning values shown below.
Semaphore
When setting values for the semaphore, specify each parameter value in the following format:
kernel.sem = para1 para2 para3 para4
Parameter | Description | Value | Type |
---|---|---|---|
para1 | Maximum number of semaphores per semaphore identifier | 1 | Maximum |
para2 | Number of semaphores system-wide | 2 | Addition |
para3 | Maximum number of operators per semaphore call | 1 | Maximum |
para4 | Number of semaphore operators system-wide | 2 | Addition |
Message queue
Parameter | Description | Value | Type |
---|---|---|---|
kernel.msgmnb | Value for the maximum number of messages that can be retained in one message queue | 106496 | Maximum |
kernel.msgmni | Value for the maximum number of message queue IDs | 1024 | Addition |
Settings in Accordance with Parameter Type
Configure the settings shown below according to the parameter "Type".
When Type is Maximum
If the values that have already been set (default values or values from previous settings) are the same as or greater than those in the tables shown below, they will not need to be changed. If they are lower than the values in the tables shown below, change them to these values.
When Type is Addition
Add the values in the tables shown below to those that have already been set (default values or values from previous settings). Before adding these values, check the system limit. If the addition of these values will cause the system limit to be exceeded, set the system limit instead.
Refer to "Linux manuals" for details.
Tuning Tasks Procedure
Perform tuning using the following procedure:
Use the following command to check the value for the corresponding parameter set for the current system:
# /sbin/sysctl -a
Example
# /sbin/sysctl -a ... (Omitted) ... kernel.sem = 250 32000 32 128 ... kernel.msgmnb = 65536 kernel.msgmni = 16 ... (Omitted) ...
Refer to "System Parameter Tuning Values" and compare the listed value with the one currently set. Calculate a new value that will be appropriate, considering the Maximum and Addition types for each parameter.
Edit /etc/sysctl.conf. Edit this as shown in the example below.
Example
kernel.sem = 250 32002 32 130 kernel.msgmnb = 106496 kernel.msgmni = 1040
Using the following command, check that the edited content for /etc/sysctl/conf was set:
# /bin/cat /etc/sysctl.conf
To enable the settings in 4., perform one of the following procedures:
Reboot the system
# /sbin/shutdown -r now
Execute the command /sbin/sysctl -p
# /sbin/sysctl -p /etc/sysctl.conf (Note)
Note: If this command was used, there will be no need to reboot the system.
Check that the system parameter set is reflected in the output of the following command:
# /sbin/sysctl -a
Example
# /sbin/sysctl -a ... (Omitted) kernel.sem = 250 32002 32 130 ... kernel.msgmnb = 106496 kernel.msgmni = 1040 ... (Omitted) ...