Professional Documents
Culture Documents
TSM
TSM
HP-UX Kernel
Why Reconfigure the Kernel?
Tuning the HP-UX kernel allows you to customize your kernel configuration
to meet the needs of the devices, applications, and users on your system.
• To build a new kernel using pending selections, click Actions->Process New Kernel
• Allow SAM to immediately backup the current kernel and apply the new one, or...
• Manually apply the new kernel with kmupdate later
• In either case, a reboot is required if static modules or tunables were modified
/stand
build
• Before compiling a new kernel, SAM makes a backup of the existing kernel
• If the new kernel fails to boot, boot from the backup kernel instead
• Most configuration tasks may be performed via the new kcweb web interface, not sam
• All configuration tasks may also be performed via a streamlined command-line interface
• All kernel configuration commands can produce script-friendly formatted output
• Kernel configurations can be saved, restored, and moved between systems
• Admins can save multiple kernel configs, and can switch between them at will
• The running kernel configuration is automatically backed up before each config change
• The system automatically maintains a detailed log file of all kernel config changes
• Kernel module and tunable features and dependencies are better documented
• More kernel parameters are dynamically tunable
• More kernel modules are dynamically loadable
Configuring the
HP-UX Kernel
Part 4: Managing 11i v2 and
v3
Kernel Modules
Kernel Module Concept Review
Kernel
lvm static module Configuration
13
Kernel Module States
• A module’s state determines if/when the module will be accessible on the system
• HP-UX recognizes five different module states
State Description
static The module is statically bound into the vmunix kernel executable
auto The module will be dynamically loaded into the kernel when needed
loaded The module has been dynamically loaded into the kernel
• The system administrator can force a module state change via kcmodule
• Sometimes, HP-UX may change a module’s state automatically
• The kcmodule reports what caused each module to enter its current state
Cause Description
The system administrator chose to use the module, but didn’t choose a
best specific state, so the module is placed in its “best” state, as determined
by the module developer
The module was in the auto state, and was automatically loaded when
auto
something tried to use it (DLKMs only)
Type Description
• The Kernel Resource Monitor monitors kernel resource usage for selected tunables
• Use kcusage to monitor tunable usage patterns
View top consumers and usage over the last hour/day/month/year, for tunable parameters
# kcusage [-t] [–h|-d|-m|-y] [nproc ...]
Parameter: maxfiles_lim
Setting: 4096
Time Usage % Usage ID Name
=========================================================
Mon 12/29/06 08:00 CST 35 0.9
35 740 inetd
22 1241 pwgrd
20 1369 scopeux
19 544 netfmt
17 1109 dced
Learning More about Tunable Parameters
NAME
VALUES
Failsafe
Default
Allowed values
Recommended values
DESCRIPTION
Who Is Expected to Change This Tunable?
Restrictions on Changing
When Should the Value of This Tunable Be Raised?
What Are the Side Effects of Raising the Value of This Tunable?
When Should the Value of This Tunable Be Lowered?
What Are the Side Effects of Lowering the Value of This Tunable?
WARNINGS
AUTHOR
SEE ALSO
Configuring the
HP-UX Kernel
Part 6: 11i v2 and v3
Kernel Troubleshooting
Kernel Troubleshooting Overview
View the last five log entries for the current kernel
# kclog 5
View the last 5 entries for a specific named kernel configuration
# kclog –c weekendConfig 5
View the last 5 entries that contain a specified string
# kclog –f “Oracle” 5
View the last 5 entries associated with a specific tunable or module
# kclog –n “maxdsiz” 5
View the last 5 entries for all tunable changes (but not kernel module changes)
# kclog –t tunable 5
Add a general comment in the kernel log
Booting from an Alternate Kernel
• If the default kernel configuration won’t boot, specify an override kernel parameter
• Override parameters override parameter values in /stand/vmunix