Top
Systemwalker Runbook Automation Installation Guide
Systemwalker

2.1.1 Tuning System Parameters [Linux] [Solaris]

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".

If the Type is "Maximum":

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.

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 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)

Tuning values for system parameters (Linked Servers, Relay Servers and Business Servers)

Tuning procedure

  1. Check the current settings for the system parameters in the tables above:

    #/sbin/sysctl -a

    Example:

    #/sbin/sysctl -a
    .
    (Omitted)
    .

    kernel.sem = 250 32000 32 128
    kernel.msgmnb = 16384
    kernel.msgmni = 16
    kernel.msgmax = 8192
    kernel.shmmni = 4096
    kernel.shmall = 2097152
    kernel.shmmax = 33554432
    .
    (Omitted)
    .

  2. 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").

  3. Edit /etc/sysctl.conf.

    Tune the system parameters as displayed in the example below:

    Example:

    kernel.shmmax=2684354560
    kernel.shmall=655360
    kernel.shmmni=4171

    kernel.sem=512 39998 50 1492

    kernel.msgmax=16384
    kernel.msgmnb=114432
    kernel.msgmni=1069

  4. Check whether the changes have been applied:

    #/bin/cat /etc/sysctl.conf

  5. Enable the settings above, by using either of the methods below:

    Method 1: Reboot the system:

    # cd /
    # /sbin/shutdown -r now


    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.

  6. 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 parameter tuning values (Business Server)

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.

  1. Check the values specified in the example below for the parameters listed 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: <--Confirm a project which it has 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)
    ...

  2. 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.

  3. 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.

  4. Reboot the system to reflect the change.

  5. 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: