Configure kernel parameters temporarily with sysctl

You can use the sysctl command to temporarily set kernel parameters at runtime. The command is also useful for listing and filtering tunables.

Before you begin

  • You have root permissions on the system.

Procedure

  1. List all parameters and their values.
    # sysctl -a
    Note

    The sysctl -a command displays kernel parameters, which can be adjusted at runtime and at boot time.

  2. To configure a parameter temporarily, enter:
    # sysctl <TUNABLE_CLASS>.<PARAMETER>=<TARGET_VALUE>

    This sample changes the parameter value while the system is running. The changes take effect immediately and it does not require system reboot.

    Note

    The changes return back to default after your system reboots.