| United States-English |
|
|
|
![]() |
HP-UX Reference (Volume 3 of 9): Section 1M: System Administration Commands (A-M) > kkmtune(1M) |
|
NAMEkmtune — query, set, or reset system parameters SYNOPSIS/usr/sbin/kmtune [-l] [-d] [[-q name]...] [-S system_file] /usr/sbin/kmtune [-u] [[-s name {=|+}value]...] [[-r name]...] [-S system_file] DESCRIPTIONkmtune is used to query, set, or reset system parameters. kmtune displays the value of all system parameters when used without any options or with the -S or -l option. kmtune reads the master files and the system description files of the kernel and kernel modules. Information on the running kernel is gathered with the tuneinfo() system call. Changes to kernel parameters generally do not take effect until the kernel has been rebuilt and the system has been rebooted. Some kernel parameters can be changed in the running kernel. kmtune with the -u option will alter these parameters and avoid the need to rebuild and reboot. OptionsThe following options are recognized by kmtune:
If the -q query option is specified, kmtune displays the following format: Brief report without -l option Parameter Current Dyn Planned Module Version ============================================================ name value Y/- value module version Detailed report with -l option Parameter: name Current: current value from running kernel Planned: planned value from system file Default: default value from master file Minimum: minimum Module: module Version: version Dynamic: Yes/No If the -l option is specified without the -q query option, a detailed report on all the parameters is displayed. The information between the parameters is separated by blank lines. If the parameter has no minimum value specified in a master file, minimum will be displayed as '-'. If the parameter is not supplied by kernel modules, module will be displayed as '-'. In the brief listing the module and version fields are blank unless the parameter comes from a dynamically loadable kernel module. The Current field is an integer read from the running kernel. Some parameters are not stored in the running kernel and are displayed as '-'. The Value string is a copy of the default value or what is stored in a system file. The Dynamic field, in the -l output, is either Yes or No, and indicates whether the parameter can be changed using -u. This avoids rebuilding and rebooting. In the brief listing Y is used to indicate dynamic parameters. If the -s set option is specified with an equal (=) separator and the minimum value of the parameter is described in a master file, the value range is checked. If the minimum value or the specified value is a formula, the check is not made. More restrictive range checking may be done by the kernel whenever -u is used. If the -s set option with a plus (+) separator is specified and the original value is non numeric, an error is reported. NOTESSystem administrators are encouraged to use kmsystem and kmtune instead of editing description files manually. File format of description files are subject to change, and kmtune is intended to provide compatibility in case of format change. The -u option is new functionality that allows changes to values in the kernel that have always been constant before. Programs using pstat(), getrlimit(), or sysconf() may have been written with the previously correct assumption that the returned variables 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. When lowering system limits, processes that exceed the new limit will be "grandfathered". Such processes may not be able to reallocate a resource that had just been released and may fail in ways that were very unlikely before. After lowering maxfiles, a process may be in violation of the new limit. If it closes a file and then reopens it, the open may fail. See settune(2). 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. EXAMPLES# kmtune -q shmseg Parameter Current Dyn Planned Module Version ======================================================== shmseg 120 Y 120 # kmtune -s shmseg=155 # kmtune -l -q shmseg Parameter: shmseg Current: 120 Planned: 155 Default: 120 Minimum: - Module: - Version: - Dynamic: Yes # kmtune -u shmseg shmseg has been set to 155 (0x9b). # kmtune -r shmseg # kmtune -d Parameter Current Dyn Planned Module Version ======================================================== shmseg 155 Y 120 |
|||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||