Before the product is installed, the system parameters must be tuned. Refer to the following table for the system parameters that require tuning and their values. Set the parameters as below, depending on the "Type".
There is no need to change the value 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. If the current value is smaller than the value in the table, change the parameter to the value in the table.
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 adding the value, and if the sum of the two values is greater than the upper limit for the system, set the parameter to the upper limit for the system.
Refer to the Linux and Solaris manuals for details.
Settings procedure (Linux)
Tuning values for system parameters (Management Servers)
Shared memory
Parameter | Description | Value | Type |
---|---|---|---|
shmmax | Maximum segment size for shared memory | 2684354560 | Maximum |
shmall | Total amount of shared memory available | 655360 | Maximum |
shmmni | Maximum number of shared memory segments | 75 | Addition |
Semaphores
For the semaphore settings, specify each parameter value using the following format:
kernel.sem = para1 para2 para3 para4 |
Parameter | Description | Value | Type |
---|---|---|---|
para1 | Maximum number of semaphores per semaphore identifier | 512 | Maximum |
para2 | Number of semaphores for the entire system | 7998 | Addition |
para3 | Maximum number of operators per semaphore call | 50 | Maximum |
para4 | Number of semaphore identifiers for the entire system | 1364 | Addition |
Message queues
Parameter | Description | Value | Type |
---|---|---|---|
msgmax | Maximum size of messages | 16384 | Maximum |
msgmnb | Maximum number of messages that can be held in a single message queue | 114432 | Maximum |
msgmni | Maximum number of message queue IDs | 1053 | Addition |
Tuning values for system parameters (Linked Servers, Relay Servers and Business Servers)
Semaphores
For the semaphore settings, specify each parameter value using 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 for the entire system | 2 | Addition |
para3 | Maximum number of operators per semaphore call | 1 | Maximum |
para4 | Number of semaphore identifiers for the entire system | 2 | Addition |
Message queues
Parameter | Description | Value | Type |
---|---|---|---|
msgmnb | Maximum number of messages that can be held in a single message queue | 106496 | Maximum |
msgmni | Maximum number of message queue IDs | 512 | Addition |
Tuning procedure
Check the current settings for the system parameters in the tables above:
#/sbin/sysctl -a |
Example:
#/sbin/sysctl -a kernel.sem = 250 32000 32 128 |
Refer to "Tuning values for system parameters" above, and compare the current settings to the values above. Calculate an appropriate value for each parameter, taking into account the parameter type ("Maximum" or "Addition").
Edit /etc/sysctl.conf.
Tune the system parameters as displayed in the example below:
Example:
kernel.shmmax=2684354560 kernel.sem=512 39998 50 1492 kernel.msgmax=16384 |
Check whether the changes have been applied:
#/bin/cat /etc/sysctl.conf |
Enable the settings above, by using either of the methods below:
Method 1: Reboot the system:
# cd / |
Method 2: Execute "/sbin/sysctl -p":
# /sbin/sysctl -p /etc/sysctl.conf |
Note: There is no need to reboot the system if this command is used.
Check whether the parameters have been updated:
# /sbin/sysctl -a |
Confirmation command execution example
# /sbin/sysctl -a . (Omitted) . kernel.sem=512 39998 50 1492 kernel.msgmnb=114432 kernel.msgmni=1069 kernel.msgmax=16384 kernel.shmmni=4171 kernel.shmall=655360 kernel.shmmax=2684354560 . (Omitted) .
Note
This operation must be performed with system administrator (super user) privileges.
Settings procedure (Solaris)
Systemwalker Runbook Automation runs under the following projects.
system project
The project for running the daemons, for example, that exists in the operating system initial setup state
user.root project
The project for processes that run with root privileges in the operating system initial setup state
System parameter tuning values (Business Server)
Semaphores
Parameter | Description | Value | Type | Privilege |
---|---|---|---|---|
project.max-sem-ids | Number of semaphore identifiers | 512 | Addition | Privilege level |
Message queues
Parameter | Description | Value | Type | Privilege |
---|---|---|---|---|
process.max-msg-qbytes | Maximum number of bytes in a queue | 106496 | Maximum | Privilege level |
project.max-msg-ids | Number of wait message identifiers | 512 | Addition | Privilege level |
process.max-msg-messages | Maximum number of messages in the message queue | 10650 | Addition | Privilege level |
File descriptors
Parameter | Description | Value | Type | Privilege |
---|---|---|---|---|
process.max-file-descriptor | Maximum number of file descriptors | 2816 | Maximum | Privilege level |
Note
"privileged" is specified as the privilege level in /etc/project.
Tuning tasks procedure
Edit the /etc/project file in order to edit the system parameters.
Check the values specified in the example below for the parameters listed in the table above.
Example:
# projects -l system projid : 0 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: <--Confirm a project which it has no entry in "attribs" # newtask -p default # prctl $$ NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT ... privileged 8.19K - deny - system 4.29G max deny - process.max-msg-qbytes privileged 64.0KB - deny - system 16.0EB max deny - basic 256 - deny 1000 privileged 65.5K - deny - system 2.15G max deny - privileged 128 - deny - system 16.8M max deny - project.max-sem-ids privileged 128 - deny - system 16.8M max deny - |
Compare the parameter values listed above against the ones listed in section "Tuning values for system parameters" above, then calculate an appropriate value, considering the Maximum and Addition types for each parameter.
Edit /etc/project.
To tune the system parameters, edit the tuning records in the /etc/project 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) |
Point
Define the settings values on a separate line for each project.
Set parameters for the system and for the super user.
Reboot the system to reflect the change.
Check that the system parameters that were set are effective through the output of the following command:
# projects -l |
Example of the confirmation command execution
# 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: