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.
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 operators for the entire system | 2 | Addition |
Message queues
Parameter | Description | Value | Type |
|---|---|---|---|
kernel.msgmnb | Maximum number of messages that can be held in a single message queue | 106496 | Maximum |
kernel.msgmni | Maximum number of message queue IDs | 1024 | 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.sem = 250 32000 32 128 . . . 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 /etc/sysctl.conf file. Edit the file as shown in the following example:
Example
kernel.sem = 250 32002 32 130 kernel.msgmnb = 106496 kernel.msgmni = 1040
Use the following command to check that the changes have been applied to the /etc/sysctl.conf file:
# /bin/cat /etc/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.
# /sbin/sysctl -p /etc/sysctl.conf (*1)
*1: 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.sem = 250 32002 32 130 . . . kernel.msgmnb = 106496 kernel.msgmni = 1040 . . . (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 | 1024 | 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 | 1024 | 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: