HP-UX System Administrator's Guide: Configuration Management

The first thing Susan does is save a copy of the initial kernel configuration, in case she
needs it later. She puts comments on all of her changes (with -C). She also puts a title
on the saved configuration (with -t) to remind herself of what it contains.
# kconfig -C "Save initial installation config" -s installed
* The currently running configuration has been saved as
installed.
# kconfig -t installed "Initial installation
* The title of the configuration installed has been set to
Initial installation.
The document for Prophet tells Susan to set the maxdsiz tunable to at least 0.5 TB,
to set the semmni tunable to 3000, and to add 50 to whatever value she’s using for
shmmni. She also decides to add 1000 to the current value of nproc. Susan starts by
looking at the current values of these tunables, and the descriptions of the ones she’s
unfamiliar with.
# kctune nproc maxdsiz
Tunable Value Expression Changes
maxdsiz 1073741824 Default Immed
nproc 4200 Default Immed
# kctune -d semmni shmmni
Tunable Value Expression Changes
Description
semmni 2048 Default
Maximum number of semaphore sets on the system
shmmni 400 Default Immed
Maximum number of shared memory segments on the system
Having done that, she sets the values as directed. She sets them all on the same
command line so that they will all take effect at the same time. Since one of the changes
cannot be made immediately, all of the changes are held for next boot.
# kctune -C Tunable settings for Prophet" "nproc+=1000" "maxdsiz>=512000000" \
"semmni=3000" "shmmni+=50"
NOTE: The requested changes could not be applied to the currently
running system, for the following reasons:
- The tunable semmni' cannot be changed without a reboot.
* The requested changes have been saved, and will take effect at
next boot.
NOTE: No change to the tunable 'maxdsiz' was needed.
Tunable Value Expression Changes
maxdsiz 1073741824 Default Immed
nproc (now) 4200 Default Immed
(next boot) 5200 5200
semmni (now) 2048 Default
(next boot) 3000 3000
shmmni (now) 400 Default Immed
(next boot) 450 450
Susan also decides to remove an unused LAN driver. First, she verifies which drivers
are currently in use.
# nwmgr
Name/ Interface Station Sub- Interface Related
ClassInstance State Address system Type Interface
202 Configuring the Kernel