Top
PRIMECLUSTER  Installation and Administration Guide 4.5
FUJITSU Software

3.1.7 Checking and Setting the Kernel Parameters

To operate the PRIMECLUSTER-related software, you need to edit the values of the kernel parameters based on the environment.

Perform this setup before restarting the installed PRIMECLUSTER.

Target node:

All the nodes in which PRIMECLUSTER is to be installed

The kernel parameters differ according to the products and components to be used.

Check PRIMECLUSTER Designsheets and edit the value if necessary.

Note

To enable modifications, you need to restart the operating system.

Set an appropriate kernel parameter as follows based on the type of "Characteristics" in each table.

The kernel parameter values differ depending upon:

Note

The values used by products and user applications that operate in the PRIMECLUSTER system must also be included in the kernel parameter values.

Described below is the procedure for changing the kernel parameters and setting new values. (Any other kernel parameters may be displayed in addition to the examples below.)

  1. Check the current values of the kernel parameters.

    To check the current effective values of the kernel parameters, execute the following command:

    # sysctl -a | grep sem
    kernel.sem = 20 90 10 20

    The displayed values represent the following kernel parameters:

    kernel.sem = SEMMSL value SEMMNS value SEMOPM value SEMMNI value

    # sysctl -a | grep shm
    kernel.shmmni = 4315
    kernel.shmmax = 4000000000
    
    # sysctl -a | grep msg
    kernel.msgmnb = 4194304
    kernel.msgmni = 8199
    kernel.msgmax = 32768
  2. Determine the kernel parameter values.

    The kernel parameter values are determined by the current effective values that were checked in step 1 and the values in the above table. If the example displayed in step 1 shows the current effective values of the kernel parameters, the edited line becomes the following:

    SEMMSL value: 20

    SEMMNS value: 131

    SEMOPM value: 10

    SEMMNI value: 42

    kernel.shmmni: 4345

    kernel.shmmax: 4000000000

    kernel.msgmnb: 4194304

    kernel.msgmni: 16391

    kernel.msgmax: 32768

  3. Change the kernel parameters.

    1. Edit the settings file.

      To set the kernel parameters, use an editor and edit the /etc/sysctl.conf file.

      Change the values in the following row to the values that were determined in step 2.

      If the example displayed in step 1 shows the current effective values of the kernel parameters, the edited line becomes the following:

      kernel.sem = 20 131 10 42

      kernel.shmmni = 4345

      kernel.shmmax = 4000000000

      kernel.msgmnb = 4194304

      kernel.msgmni = 16391

      kernel.msgmax = 32768

    2. Apply the settings.

      To change the kernel parameter values to the values in the settings file, execute the following command:

      # sysctl -p
  4. Check the setting changes in the kernel parameters.

    To check whether the kernel parameter values were changed correctly, execute the following commands and display the current values:

    # sysctl -a | grep sem
    kernel.sem = 20 131 10 42
    # sysctl -a | grep shm
    kernel.shmmni = 4345
    kernel.shmmax = 4000000000
    # sysctl -a | grep msg
    kernel.msgmnb = 4194304
    kernel.msgmni = 16391
    kernel.msgmax = 32768

    Check that the displayed values are the values that were determined in step 2.