Top
Systemwalker Software Configuration Manager Installation Guide
FUJITSU Software

2.3.2 Tasks Required before Installing on Business Servers

This section explains the tasks that need to be performed before installation.

2.3.2.1 Tuning System Parameters [Linux] [Solaris]

The system parameters must be tuned.

Settings dependent on the parameter type

Set the parameters as below, depending on the "Type" above.

Refer to the Linux and Solaris manuals and other documents for details.

2.3.2.1.1 Setting Procedure for Linux

Tuning values for system parameters

Refer to the following tables for information on the system parameters that require tuning and their values.

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:

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

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

  6. 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)
    . . .
2.3.2.1.2 Setting Procedure for Solaris

Start Systemwalker Software Configuration Manager under the following projects:

Tuning values for system parameters

Refer to the following tables for information on the system parameters that require tuning and their values:

Note

For the privilege level, specify "privileged" for /etc/project.

Tuning procedure

Use the following procedure to perform tuning tasks:

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

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

  4. To enable the settings above, restart the system.

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