3    Displaying and Modifying Kernel Subsystem Attributes

The operating system includes various subsystems that define or extend the kernel. Kernel subsystem attributes are used to set kernel variables, which control subsystem behavior or track subsystem statistics. Attributes are assigned default values at boot time. If the default values of some attributes are not appropriate for your system, you must modify these values to provide optimal performance.

To display and modify kernel subsystem attributes, follow these steps:

  1. Determine the operating system support for an attribute (Section 3.1)

  2. Display the attribute values (Section 3.2)

  3. Modify the attribute values (Section 3.3)

3.1    Operating System Support for Attributes

To determine if your version of the operating system supports a particular kernel subsystem attribute, use the following method:

See sysconfig(8) and dbx(1) for more information.

3.2    Displaying Attribute Values

There are various methods that you can use to display the current value of a kernel subsystem attribute and other descriptive information. Use:

The following example shows how to use the dbx p (print) command to display the current value of a kernel variable, instead of an attribute. For example:

# dbx -k /vmunix 
dbx version 5.1
Type 'help' for help. 
 
(dbx) p ipport_userreserved 
5000  
(dbx)

See dxkerneltuner(8), sysconfig(8), and dbx(1) for more information.

3.3    Modifying Attribute Values

There are various methods that you can use to modify attribute values. The method you use depends on the version of the operating system you are running and whether you want to modify the current (run-time) value of an attribute or modify an attribute's permanent value. You must be root to modify attribute values.

The following sections describe how to modify the current and permanent values.

3.3.1    Current Value

In some cases, you can modify the current (run-time) value of an attribute. This allows you to determine if modifying an attribute will improve your system performance without rebooting the system. Not all attributes can be tuned at run time, and the temporary modifications are lost when you reboot the system. Use the sysconfig -Q command to determine whether an attribute can be tuned at run time.

To modify an attribute's current (run-time) value, use one of the following methods:

The following example shows how to use the dbx assign command to modify the current value of a kernel variable, instead of an attribute. However, modifications made with the dbx assign command are lost when you reboot the system. Use the following command syntax:

dbx assign attribute=value

For example:

# dbx -k /vmunix 
dbx version 5.1 
Type 'help' for help. 
 
(dbx) assign ipport_userreserved=60000 
60000 
(dbx)

See dxkerneltuner(8), sysconfig(8), and dbx(1) for more information.

3.3.2    Permanent Value

To modify an attribute's permanent (boot-time) value, the sysconfigtab file must contain the subsystem name, the attribute name, and the value of the attribute. Do not manually modify the sysconfigtab file. To make these modifications, use one of the following methods:

In addition, you can use the dbx patch command to modify the value of a variable, as well as the on-disk /vmunix image value.

See dxkerneltuner(8), sysconfig(8), and sysconfigdb(8) for more information. See the System Administration manual for information about modifying the system configuration file.