This section explains the tasks that need to be performed before installation.
The system parameters must be tuned.
Settings dependent on the parameter type
Set the parameters as below, depending on the "Type" above.
If the Type is "Maximum":
If the value that has already been set (either the initial value or the previous setting) is equal to or greater than the value in the table above, there is no need to change the parameter value. If the current value is smaller than the value in the table, change the parameter to the value in the table.
If the Type is "Addition":
Add the value in the table to the value that has already been set (either the initial value or the previous setting). Check the upper limit for the system before setting the parameter to the result of the addition, and if the result of the addition is greater than the upper limit for the system, then set the parameter to the upper limit for the system.
Refer to the Linux and Solaris manuals and other documents for details.
Tuning values for system parameters
Refer to the following tables for information on the system parameters that require tuning and their values.
Message queues
Parameter | Description | Value | Type |
---|---|---|---|
kernel.msgmnb | Maximum value for messages that can be held in one message queue | 106496 | Maximum |
kernel.msgmni | Maximum number of message queue IDs | 512 | Addition |
Tuning procedure
Use the following procedure to perform tuning tasks:
Use the following command to check the current settings for the system parameters:
# /sbin/sysctl -a
Example
# /sbin/sysctl -a . . . (omitted) . . . kernel.msgmnb = 65536 kernel.msgmni = 16 . . . (omitted) . . .
Refer to "Tuning values for system parameters", and compare the current settings to the values in the tables above. Calculate an appropriate value for each parameter, taking into account the parameter type ("Maximum" or "Addition").
Edit the following definition file as shown in the following example: Add any items that are missing.
Red Hat Enterprise Linux 5/6
/etc/sysctl.conf
Red Hat Enterprise Linux 7
/etc/sysctl.d/99-sysctl.conf
Example
kernel.msgmnb = 106496 kernel.msgmni = 528
Use the following command to check that the changes have been applied to the /etc/sysctl.conf file:
Red Hat Enterprise Linux 5/6
# /bin/cat /etc/sysctl.conf
Red Hat Enterprise Linux 7
# /bin/cat /etc/sysctl.d/99-sysctl.conf
To enable the settings in Step 4 above, perform either of the following methods:
Apply the settings by rebooting the system.
# /sbin/shutdown -r now
Apply the settings by executing the "/sbin/sysctl -p" command.
Red Hat Enterprise Linux 5/6
# /sbin/sysctl -p /etc/sysctl.conf (*)
Red Hat Enterprise Linux 7
# /sbin/sysctl -p /etc/sysctl.d/99-sysctl.conf (*)
*: There is no need to reboot the system if this command is used.
The output of the following command can be used to check that the changes made to the system parameter settings have been applied:
# /sbin/sysctl -a
Example
# /sbin/sysctl -a . . . (omitted) . . . kernel.msgmnb = 106496 kernel.msgmni = 528 . . . (omitted) . . .
Start Systemwalker Software Configuration Manager under the following projects:
system project
A project on which the daemon with the OS initial settings is operating
user.root project
A project on which there is a process operating using the root privileges
Tuning values for system parameters
Refer to the following tables for information on the system parameters that require tuning and their values:
Semaphores
Parameter | Description | Value | Type | Privileges |
---|---|---|---|---|
project.max-sem-ids | Number of emaphore identifiers | 512 | Addition | Privilege level |
Message queues
Parameter | Description | Value | Type | Privileges |
---|---|---|---|---|
process.max-msg-qbytes | Maximum bytes of queues | 106496 | Maximum | Privilege level |
project.max-msg-ids | Number of message queue identifiers | 512 | Addition | Privilege level |
process.max-msg-messages | Maximum number of messages in a message queue | 10650 | Addition | Privilege level |
File descriptor
Parameter | Description | Value | Type | Privileges |
---|---|---|---|---|
process.max-file-descriptor | Maximum number of file descriptors | 2816 | Maximum | Privilege level |
Note
For the privilege level, specify "privileged" for /etc/project.
Tuning procedure
Use the following procedure to perform tuning tasks:
Referring to the following example, check the current settings for the system parameters shown in the table above.
Example
# projects -l system projid : 0 comment: "" users : (none) groups : (none) attribs: user.root projid : 1 comment: "" users : root groups : root attribs: noproject projid : 2 comment: "" users : (none) groups : (none) attribs: default projid : 3 comment: "" users : (none) groups : (none) attribs: <-Check the project for which there is no entry in "attribs" # newtask -p default # prctl $$ process: 1000: sh NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT . (omitted) . process.max-msg-messages privileged 8.19K - deny - system 4.29G max deny - process.max-msg-qbytes privileged 64.0KB - deny - system 16.0EB max deny - process.max-file-descriptor basic 256 - deny 1000 privileged 65.5K - deny - system 2.15G max deny - project.max-msg-ids privileged 128 - deny - system 16.8M max deny - project.max-sem-ids privileged 128 - deny - system 16.8M max deny - . (omitted) .
Refer to "Tuning values for system parameters", and compare the current settings to the values in the tables above. Calculate an appropriate value for each parameter, taking into account the parameter type ("Maximum" or "Addition").
Edit /etc/project. Edit the file as shown in the following example:
Example
system:0::::project.max-sem-ids=(privileged,640,deny) ;process.max-msg-qbytes=(privileged,106496,deny) ;project.max-msg-ids=(privileged,640,deny) ;process.max-msg-messages=(privileged,19032,deny) user.root:1:::: project.max-sem-ids=(privileged,640,deny) ;process.max-msg-qbytes=(privileged,106496,deny) ;project.max-msg-ids=(privileged,640,deny) ;process.max-msg-messages=(privileged,19032,deny)
Note
Enter the specified value for each project in a single line.
Configure the parameter settings for the system and the superuser.
To enable the settings above, restart the system.
The output of the following command can be used to check that the changes made to the system parameter settings have been applied:
# projects -l
Example
# projects -l system projid : 0 comment: "" users : (none) groups : (none) attribs: project.max-sem-ids=(privileged,640,deny) process.max-msg-qbytes=(privileged,106496,deny) project.max-msg-ids=(privileged,640,deny) process.max-msg-messages=(privileged,19032,deny) user.root projid : 1 comment: "" users : root groups : root attribs: project.max-sem-ids=(privileged,640,deny) process.max-msg-qbytes=(privileged,106496,deny) project.max-msg-ids=(privileged,640,deny) process.max-msg-messages=(privileged,19032,deny) noproject projid : 2 comment: "" users : (none) groups : (none) attribs: default projid : 3 comment: "" users : (none) groups : (none) attribs: