|
|
HP-UX Reference > Kkmtune(1M)HP-UX 11i Version 2: December 2007 Update |
|
NAMEkmtune — query, set, or reset system parameters SYNOPSIS/usr/sbin/kmtune [-d] [-l] [[-q name]...] [-S system_file] /usr/sbin/kmtune [-u] [[-s name {=|+}value]...] [[-r name]...] [-c comment] [-S system_file] /usr/sbin/kmtune [[-e value]...] DESCRIPTIONkmtune is an obsolete command that is replaced by kctune(1M). Users are encouraged to migrate to kctune(1M). kmtune will be removed in a future release of HP-UX. The behavior of some of kmtune's options have changed and they are noted in the appropriate sections below. kmtune is used to query, set, or reset system parameters. kmtune displays the planned values of all system parameters when used without any options or with the -l option. kmtune gathers information on the running kernel using the tuneinfo2() system call. By default, kmtune's changes affect the currently running kernel configuration, marked to take effect at next boot. If the -u option is specified, kmtune's changes affect the current configuration, and take effect immediately. See kconfig(5) for more information on kernel configurations. OptionsThe following options are recognized by kmtune:
The expressions used with the -s and -e options are built of literal values, the upper case names of other kernel parameters, and the following operators: ( and ), the unary operators ~, !, -, and +, the binary operators *, /, %, +, -, <<, >>, <, <=, >, >=, &, ~, |, ==, !=, &&, and ||, and the ternary operator ?:. Using -s to create a circular dependency in the values of the kernel parameters is not allowed. NotesChanging kernel parameters dynamically is a fairly new feature. Programs using pstat(2), getrlimit(2), or sysconf(2) may have been written with the previously correct assumption that the returned values do not vary while the system is running. The use of kmtune to modify the running kernel may cause such programs to produce erroneous results or even abort. Some dynamic kernel parameters can be raised dynamically, but cannot be lowered without rebuilding the kernel and rebooting. See the manual pages for those parameters for details. When dynamically lowering per-process limits, processes that exceed the new limit will be "grandfathered". Such processes will retain the old limit. The old limit will also apply to any child processes they create after the change. Some parameters have exceptions to this general policy; see the manual pages for those parameters for details. It is possible to put multiple -s and -r options on a single kmtune command. kmtune will try to make all of the changes, in the order listed. If an error occurs with one of the changes, the state of the other changes is not defined. RETURN VALUEUpon completion, kmtune returns with one of the following exit values:
Results of query requests are sent to stdout. Error and warning messages are sent to stderr. SEE ALSOkclog(1M), kconfig(5), kctune(1M), settune(2), tuneinfo2(2), and the individual tunable parameter manual pages in section 5. |
|