Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
System Administration
Showing results for 
Search instead for 
Did you mean: 

Kernel Reconfiguration In HP-UNIX 11.23

Occasional Contributor

Kernel Reconfiguration In HP-UNIX 11.23


Can anyone tell the step by step reconfiguration kernel in hp-ux 11.23.

Esteemed Contributor

Re: Kernel Reconfiguration In HP-UNIX 11.23


see in the attachment.
Michael Steele_2
Honored Contributor

Re: Kernel Reconfiguration In HP-UNIX 11.23

To modify kernel parameters:

Enter the sam command to start the System Administration Manager (SAM) program.
Double-click the Kernel Configuration icon.
Double-click the Configurable Parameters icon.
Double-click the parameter that you want to change and type the new value in the Formula/Value field.
Click OK.
Repeat these steps for all of the kernel configuration parameters that you want to change.
When you are finished setting all of the kernel configuration parameters, select Action --> Process New Kernel from the action menu bar.
Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: Kernel Reconfiguration In HP-UNIX 11.23

Ignore the first response = Its for Linux.

Kernel parms are easily changed via SAM. But if you want to make the changes from the command line and refer to the 11.xx section:

HP: Command line kernel creation/modification
Source: Chapter 1, System Admin Tasks, Reconfiguring the kernel
To use HP-UX commands to reconfigure the kernel:
1. Log in as superuser on the machine for which a new kernel is being generated. You can log in remotely from another location by using the /usr/bin/rlogin command.
2. Change directories to the build environment (/stand/build). There, execute a system preparation script, /usr/lbin/sysadm/system_prep, which extracts the system file from the current kernel, as follows:
# cd /stand/build
# /usr/lbin/sysadm/system_prep -v -s system
The system_prep script creates the system file /stand/build/system in your current directory. The -v option provides explanation as the script executes.
3. Update the kernel information:
a. (<= HPUX 10.X)Edit the /stand/build/system file to perform your task.
1. The system file contains configuration information. The first part of the file lists the driver specifications while the second part identifies modifiable kernel parameters. man config to get a more detailed description of the system file.
2. Consult HP's kernel parameters documentation to obtain valid parameters and associated ranges.
b. (>= HPUX 11.X) Update kernel modules and parameters:
1. Modules:
a. To display preselected kernel modules:
/usr/sbin/kmsystem -S /stand/build/system
b. To add additional kernel modules:
/usr/sbin/kmsystem -S /stand/build/system -c -Y ${driver}
2. Parameters:
a. To display existing kernel parameters:
b. /usr/sbin/kmtune -l -S /stand/build/system
c. To update kernel parameters:
/usr/sbin/kmtune -s ${name}=${param} -S /stand/build/system
4. Build the kernel:
# mk_kernel -s system
The mk_kernel command creates /stand/build/vmunix_test, a kernel ready for testing.
If you get this message when executing mk_kernel,
ERROR: Kernel is too large to boot.

Actual: 15605892 bytes

Limit: 13580288 bytes
eliminate optional subsystems or drivers and decrease the tunable parameters. The actual bytes will vary with each instance. The limit will also vary depending on the HP-UX release.
5. Copy the old system file and kernel so if anything goes wrong, you still have a bootable kernel.
# cp /stand/system /stand/system.prev
# cp /stand/vmunix /stand/vmunix.prev
6. Move the new kernel into place:
a. (<= HPUX 10.X) Move the new system file and new kernel into place, ready to be used when you reboot the system.
# mv /stand/build/system /stand/system
# mv /stand/build/vmunix_test /stand/vmunix
b. (>= HPUX 11.X) Execute /usr/sbin/kmupdate
7. Notify users that the system will be shut down. You can use the /usr/sbin/wall command and/or the interactive capabilities of the /usr/sbin/shutdown command to broadcast a message to users before the system goes down. For details, see wall(1M), shutdown(1M), and "Shutting Down the System" in Chapter 2 of this manual.
NOTE: You only need to do the next steps if you are changing hardware, such as adding new peripherals. If you are simply changing a kernel parameter, reboot the system to active the new kernel with shutdown -r.
8. Bring the system to a halt using the shutdown command.
9. Turn off the power to all peripheral devices and then to the SPU.
10. Install the hardware or remove interface cards or peripheral devices. Refer to the documents shipped with the products being installed and to Configuring HP-UX for Peripherals for specific instructions.
11. Turn on the power to all peripheral devices. Wait for them to become "ready", then turn on power to the SPU. The system will attempt to boot the new kernel.

Configurable Kernel Parameters
Certain kernel operating parameters can be configured to fit specific system needs, resulting in better performance or more effective allocation of resources. The ideal value for each parameter is often determined by the system's particular hardware configuration, the specific mix of applications the system runs, and the trustworthiness of system users; factors that vary widely from system to system.
HP attempts to provide reasonable default parameter settings, but you may find it necessary or beneficial to modify these settings to better suit the needs of your particular system's users. Use the list below to obtain detailed information about each configurable kernel parameter.
Note that individual parameters usually pertain to a specific subsystem; some are independent, but others are interrelated or interact with each other. The following list of online help topics for each parameter is grouped according to subsystem.
Changing kernel parameters to improper or inappropriate values or combinations of values can cause data loss, system panics, or other (possibly very obscure and/or difficult to diagnose) operating anomalies, depending on which parameters are set to what values.
â ¢ Before altering the value of any configurable kernel parameter, be sure you know the implications of making the change.
â ¢ Never set any system parameter to a value outside the allowable range for that parameter (SAM refuses to store values outside of the allowable range).
â ¢ Many parameters interact, and their values must be selected in a balanced way.
As technological advances expand system size and capabilities, it is not uncommon for maximum and/or default values of certain parameters to change between releases or to vary between 32-bit and 64-bit processors. The information provided in the documents associated with this web page are believed to be accurate as of the time they were produced. However, system changes may occasionally result in discrepancies between the document and what is actually present on your system.
If you encounter any such discrepancies in any stated default or limit values, consult the files in /etc/conf/master.d on your system to determine the actual values for your machine.
Accounting Subsystem
â ¢ Overview of Accounting Suspend and Resume
o Configurable Parameters for Accounting:
suspend accounting
resume accounting
o Tutorial: Specifying an Accounting Threshold Value
Asynchronous I/O Subsystem
â ¢ Asynchronous I/O Parameters Overview
Max number of AIO operations that can be specified in a lio_list() call
Maximum number of AIO operations that can be queued at any time
Maximum number of AIO operations that can be specified in a lio_list() call
Maximum slowdown factor; greatest priority reduction allowed in aiocb's aio_reqprio field
Dump Parameters
â ¢ Kernel-panic dump parameters overview
Bit-mask of kernel memory pages included in dumps
Bit-mask of kernel memory pages excluded from dumps
Maximum number of kernel modules saved by system-crash dump
Maximum size of the kernel-module savecrash table
Fiber Channel Subsystem
â ¢ Overview of Fiber Channel Kernel Parameters
Number of Tachyon adapters installed in the system
Maximum number of concurrent FCP requests allowed on a Tachyon FCP adapter
Mass-Storage Subsystem
â ¢ Overview of File System Kernel Parameters
â ¢ List of File System Kernel Parameters
â ¢ Configurable File System Buffer-Cache Parameters:
Pages of static buffer cache
Minimum dynamic buffer cache
Maximum dynamic buffer cache
Number of static buffer headers
â ¢ Configurable Open or Locked Files Parameters:
soft limit for open files
hard limit for open files
system-wide open-files limit
system-wide file-lock limit
Maximum open inodes in memory
â ¢ Configurable Asynchronous Write Parameter:
Enable/disable asynchronous disk writes
â ¢ Configurable VxFS (Journaled) File-System Parameter:
Memory space reserved for VxFS directory path-name cache
Logical Volume Manager (LVM)
â ¢ Overview of LVM Operation
o Configurable Parameters for Logical Volume Manager
maximum volume groups on system
no volume groups on system (Series 700 only)
Memory Swap Subsystem
â ¢ Overview of Memory Paging Parameters
o Configurable Parameters for Memory Paging:
fixed or dynamic swap-data-structure allocation
maximum swap space configurable on the system
number of available swap devices
number of file systems available for swap
enable/disable swap to remote NFS
enable/disable pseudo-swap reservation
client swap-chunk size
o Variable-Page-Size Parameters:
Maximum system-selected page size in Kbytes
Maximum chatr-selected page size in Kbytes
Default user page size in Kbytes
Process Management Subsystem
â ¢ Overview of Process Management Parameters
o Configurable Parameters for Process Management:
maximum process data segment size
maximum process storage segment size
maximum number of threads that one process can create
maximum process text segment size
maximum number of processes per user
maximum number of kernel threads allowed on the system at same time
maximum number of processes system-wide
time slice allocation between competing processes
Character-Mode I/O Streams Parameters
â ¢ Overview of Character-Mode I/O Streams Parameters
Factory use only. Do not change value.
Maximum number of outstanding streams bufcalls that are allowed to exist at any given time on the system.
Maximum number of streams modules that are allowed to exist in any single stream at any given time on the system.
Maximum number of streams scheduler daemons that are allowed to run at any given time on the system.
Maximum number of control bytes allowed in the control portion of any streams message on the system.
Maximum number of bytes that can be placed in the data portion of any streams message on the system.
System-wide maximum number of streams-based PTYs that are allowed on the system.
Force All Pipes to be Streams-Based
System V IPC Shared-Memory Subsystem
â ¢ System V Inter-Process Communication Mechanisms
o Overview of Message Queue Operation
ï § Allocating Memory Space for Messages
ï § Configurable IPC Message Parameters:
Enable/disable IPC messages (Series 700 only)
message free-space map size
maximum message size
maximum bytes in message queue
maximum message queues on system
number of segments in message queue
message segment size
maximum total messages on system
o Overview of Semaphore Parameters
ï § Configurable IPC Semaphore Parameters:
Enable/disable semaphores (Series 700 only)
Semaphore value-change limit
Size of free-semaphore resource map
Maximum semaphores system-wide
Maximum user-accessible semaphores system-wide
Maximum undos per semaphore
Maximum semaphore undos per process
Maximum allowed semaphore value
o Overview of Shared Memory Operation
ï § Configurable IPC Shared Memory Parameters:
Enable/disable shared memory (Series 700 only)
Maximum shared memory segment size
Maximum segments on system
Maximum segments per process
VME I/O Subsystem Parameters
â ¢ VME optional I/O subsystem parameters
Number of Kernel I/O Space Pages Needed by VME
Socket Domain AF_VME_LINK is Active (Boolean)
Maximum Number of DLPI PPAs
Maximum PPA transmission unit size in Kbytes
Maximum Number of VME Ports Open Concurrently
Number of 4-Kbyte kernel I/O space pages needed by VME
Miscellaneous Parameters
â ¢ Overview of Miscellaneous Parameters
o Miscellaneous Configurable Parameters:
Bytes of system memory to reserve for cluster interconnect
Create fast symbolic links
Immediate reporting for disk I/O
Enable/disable daylight-savings time
Size of equivalently mapped memory pool
System-wide limit of queued signals that can be allocated
Maximum number of queued signals that a process can send and have pending at one or more receivers
System-wide maximum number of ports to the asynchronous disk I/O driver that processes can have open at any given time
Maximum expected simultaneous system users
Maximum number of timeouts allowed
Maximum number of open CD-ROM FS nodes
Maximum number of cblocks available for tty/pty I/O
Maximum open files for Device I/O Library
Maximum ptys allowed system-wide
Number of Telnet Session Device Files
Enable or disable translation of O_SYNC to O_DSYNC in open() and fcntl() system calls
Enable power-fail recovery
Allow public protection IDs on shared libraries
Number of real-time scheduling priority levels
ITE scroll buffer size
Special parameter for web-servers
Spinlock Parameters (undocumented)
Specify timezone offset from Universal Coordinated Time
Memory size reserved for system use
Undocumented Parameters
Some parameters are not documented for any of various reasons. Some are obsolete, some are associated with independent software subsystems, some can result in severe system malfunctions if they are altered without proper understanding, and some are not supported by SAM

Support Fatherhood - Stop Family Law
Esteemed Contributor

Re: Kernel Reconfiguration In HP-UNIX 11.23

Michael: With respect to your advice, 'kmsystem' is no longer available in 11.23, even 'kmtune'is obsolete. You have probably overlooked that he was asking for 11.23 kernel configuration.
Michael Steele_2
Honored Contributor

Re: Kernel Reconfiguration In HP-UNIX 11.23


# kctune param # to check
# kctune param=value # to set

For example:

kctune parm=value

# to set

If you want to be used when the system reboots, use the following.

kctune -h parm=value

(* Bet sysdef still works - OOPS! IT DOES! *)

If you want to make a new kernel see mk_kernel and kconfig.

Sorry for the minunderstanding - :-)
Support Fatherhood - Stop Family Law
Michael Steele_2
Honored Contributor

Re: Kernel Reconfiguration In HP-UNIX 11.23

Don't forget to assign points to all of the responses
Support Fatherhood - Stop Family Law
James R. Ferguson
Acclaimed Contributor

Re: Kernel Reconfiguration In HP-UNIX 11.23


> Michael: (* Bet sysdef still works - OOPS! IT DOES! *)

Be careful. The 11.23 manpages note"

/* begin_quote */

sysdef is provided for compatibility purposes only and is no longer maintained since being marked for obsolescence in a future HP-UX release. The output from sysdef is known to be incorrect when report- ing values for some tunable parameters such as msgmap, sema, and shmem.

/* endof_quote */