HP-UX HB v13.00 Ch-07 - Kernel Configuration
HP-UX Handbook – Rev 13.00 Page 20 (of 33)
Chapter 07 Kernel Configuration
October 29, 2013
kmpath invokes kcpath
config obsolete
kmadmin obsolete
kminstall obsolete
kmmodreg obsolete
kmsystem obsolete
kmupdate obsolete
Overview of changes
HPUX 11.11 and before
HPUX 11.23 & 11.31
Use SAM to configure kernel
Use kcweb to configure the kernel
System files
Kernel configurations
Recompile and link the kernel
Reconfigure the kernel
Configure the kernel by editing /stand/system
and run mk_kernel
KC commands (kconfig) automatically update
the running kernel or relink it, if necessary
Always reboot after kernel changes
Use KC commands or kcweb to tune the
kernel; changes will be dynamic, if possible.
Use cp to make a backup kernel executable
Use kconfig –c to copy a kernel
configuration
Copy vmunix to another system
Use kconfig to import a kernel configuration
Use system_prep to create a current system file
System file is kept up to date automatically.
Use kconfig –e to create a system file from a
saved configuration
Manage DLKMs with kminstall, kmsystem,
kmmodreg, kmupdate and config.
Manage DLKMs using kcmodule or kcweb.
Header, master and space files in /usr/conf
Metadata built into modules
Examples of changes
Task
HPU UX 11.11
HPUX 11.23 & 11.31
Tunables
List all tunables
kmtune (no options)
kctune
List all tunables detailed
kmtune -l
kctune -v
Query a tunable
kmtune -q maxuprc
kctune maxuprc
Set a tunable to value
kmtune -u –s
maxuprc=512
kctune maxuprc=512
Increment tunable by value
kmtune -u -s
maxuprc+128
kctune maxuprc+=128
Set a value using a formula
kmtune -u -s
maxuprc=nproc/30
kctune
maxuprc=nproc/30
Set tunable to default value
kmtune -r maxuprc
kctune maxuprc=default
Set tunable to at least n
not possible
kctune maxuprc>=512
Hold for next boot
kmtune –s maxuprc=512
kctune -h maxuprc=512
List values held for next boot
kmtune -d
kctune –D
Set a tunable in a saved
configuration
not possible
kctune –c
WeekendConfig
maxuprx=512