Changing kernel parameter values

This procedure describes how to change kernel parameter values from a text editor.

To change kernel parameter values:

  1. Add the following lines to the /etc/sysctl.conf file

    kernel.shmall = 2097152

    kernel.shmmax = 2147483648

    kernel.shmmni = 800

    kernel.sem = 250 32000 100 128

    fs.file-max = 65536

    net.ipv4.ip_local_port_range = 32768 61000

    If the file does not already exist, create it.

    kernel.sem assigns values to four semaphore parameters in the following order: semmsl, semmns, semopm, semmni. All four values must be specified.

  2. Type the following command:

    /sbin/sysctl -p

    The values in the /etc/sysctl.conf file take effect immediately.

Parent Topic

UNIX system parameter modification