Kernel Reconfiguration In HP-UNIX 11.23 (1021 Views)
Reply
Occasional Contributor
PVM_2
Posts: 12
Registered: ‎04-06-2011
Message 1 of 8 (1,021 Views)

Kernel Reconfiguration In HP-UNIX 11.23

Hi,

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

......
PVM
Please use plain text.
Esteemed Contributor
g3jza
Posts: 313
Registered: ‎01-30-2008
Message 2 of 8 (1,021 Views)

Re: Kernel Reconfiguration In HP-UNIX 11.23

Hi:

see in the attachment.
Please use plain text.
Honored Contributor
Michael Steele_2
Posts: 4,934
Registered: ‎08-14-2002
Message 3 of 8 (1,021 Views)

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
Please use plain text.
Honored Contributor
Michael Steele_2
Posts: 4,934
Registered: ‎08-14-2002
Message 4 of 8 (1,021 Views)

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.
Warning
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.
Discrepancies
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:
acctsuspend
suspend accounting
acctresume
resume accounting
o Tutorial: Specifying an Accounting Threshold Value
Asynchronous I/O Subsystem
â ¢ Asynchronous I/O Parameters Overview
aio_listio_max
Max number of AIO operations that can be specified in a lio_list() call
aio_max_ops
Maximum number of AIO operations that can be queued at any time
aio_physmem_pct
Maximum number of AIO operations that can be specified in a lio_list() call
aio_prio_delta_max
Maximum slowdown factor; greatest priority reduction allowed in aiocb's aio_reqprio field
Dump Parameters
â ¢ Kernel-panic dump parameters overview
alwaysdump
Bit-mask of kernel memory pages included in dumps
dontdump
Bit-mask of kernel memory pages excluded from dumps
initmodmax
Maximum number of kernel modules saved by system-crash dump
modstrmax
Maximum size of the kernel-module savecrash table
Fiber Channel Subsystem
â ¢ Overview of Fiber Channel Kernel Parameters
num_tachyon_adapters
Number of Tachyon adapters installed in the system
max_fcp_reqs
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:
bufpages
Pages of static buffer cache
dbc_min_pct
Minimum dynamic buffer cache
dbc_max_pct
Maximum dynamic buffer cache
nbuf
Number of static buffer headers
â ¢ Configurable Open or Locked Files Parameters:
maxfiles
soft limit for open files
maxfiles_lim
hard limit for open files
nfile
system-wide open-files limit
nflocks
system-wide file-lock limit
ninode
Maximum open inodes in memory
â ¢ Configurable Asynchronous Write Parameter:
fs_async
Enable/disable asynchronous disk writes
â ¢ Configurable VxFS (Journaled) File-System Parameter:
vx_ncsize
Memory space reserved for VxFS directory path-name cache
Logical Volume Manager (LVM)
â ¢ Overview of LVM Operation
o Configurable Parameters for Logical Volume Manager
maxvgs
maximum volume groups on system
no_lvm_disks
no volume groups on system (Series 700 only)
Memory Swap Subsystem
â ¢ Overview of Memory Paging Parameters
o Configurable Parameters for Memory Paging:
allocate_fs_swapmap
fixed or dynamic swap-data-structure allocation
maxswapchunks
maximum swap space configurable on the system
nswapdev
number of available swap devices
nswapfs
number of file systems available for swap
remote_nfs_swap
enable/disable swap to remote NFS
swapmem_on
enable/disable pseudo-swap reservation
swchunk
client swap-chunk size
o Variable-Page-Size Parameters:
vps_ceiling
Maximum system-selected page size in Kbytes
vps_chatr_ceiling
Maximum chatr-selected page size in Kbytes
vps_pagesize
Default user page size in Kbytes
Process Management Subsystem
â ¢ Overview of Process Management Parameters
o Configurable Parameters for Process Management:
maxdsiz
maximum process data segment size
maxssiz
maximum process storage segment size
max_thread_proc
maximum number of threads that one process can create
maxtsiz
maximum process text segment size
maxuprc
maximum number of processes per user
nkthread
maximum number of kernel threads allowed on the system at same time
nproc
maximum number of processes system-wide
timeslice
time slice allocation between competing processes
Character-Mode I/O Streams Parameters
â ¢ Overview of Character-Mode I/O Streams Parameters
NSTRBLKSCHED
Factory use only. Do not change value.
NSTREVENT
Maximum number of outstanding streams bufcalls that are allowed to exist at any given time on the system.
NSTRPUSH
Maximum number of streams modules that are allowed to exist in any single stream at any given time on the system.
NSTRSCHED
Maximum number of streams scheduler daemons that are allowed to run at any given time on the system.
STRCTLSZ
Maximum number of control bytes allowed in the control portion of any streams message on the system.
STRMSGSZ
Maximum number of bytes that can be placed in the data portion of any streams message on the system.
nstrpty
System-wide maximum number of streams-based PTYs that are allowed on the system.
streampipes
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:
mesg
Enable/disable IPC messages (Series 700 only)
msgmap
message free-space map size
msgmax
maximum message size
msgmnb
maximum bytes in message queue
msgmni
maximum message queues on system
msgseg
number of segments in message queue
msgssz
message segment size
msgtql
maximum total messages on system
o Overview of Semaphore Parameters
ï § Configurable IPC Semaphore Parameters:
sema
Enable/disable semaphores (Series 700 only)
semaem
Semaphore value-change limit
semmap
Size of free-semaphore resource map
semmni
Maximum semaphores system-wide
semmns
Maximum user-accessible semaphores system-wide
semmnu
Maximum undos per semaphore
semume
Maximum semaphore undos per process
semvmx
Maximum allowed semaphore value
o Overview of Shared Memory Operation
ï § Configurable IPC Shared Memory Parameters:
shmem
Enable/disable shared memory (Series 700 only)
shmmax
Maximum shared memory segment size
shmmni
Maximum segments on system
shmseg
Maximum segments per process
VME I/O Subsystem Parameters
â ¢ VME optional I/O subsystem parameters
vmebpn_public_pages
Number of Kernel I/O Space Pages Needed by VME
vmebpn_sockets
Socket Domain AF_VME_LINK is Active (Boolean)
vmebpn_tcp_ip
Maximum Number of DLPI PPAs
vmebpn_tcp_ip_mtu
Maximum PPA transmission unit size in Kbytes
vmebpn_total_jobs
Maximum Number of VME Ports Open Concurrently
vme_io_estimate
Number of 4-Kbyte kernel I/O space pages needed by VME
Miscellaneous Parameters
â ¢ Overview of Miscellaneous Parameters
o Miscellaneous Configurable Parameters:
clicreservedmem
Bytes of system memory to reserve for cluster interconnect
create_fastlinks
Create fast symbolic links
default_disk_ir
Immediate reporting for disk I/O
dst
Enable/disable daylight-savings time
eqmemsize
Size of equivalently mapped memory pool
ksi_alloc_max
System-wide limit of queued signals that can be allocated
ksi_send_max
Maximum number of queued signals that a process can send and have pending at one or more receivers
max_async_ports
System-wide maximum number of ports to the asynchronous disk I/O driver that processes can have open at any given time
maxusers
Maximum expected simultaneous system users
ncallout
Maximum number of timeouts allowed
ncdnode
Maximum number of open CD-ROM FS nodes
nclist
Maximum number of cblocks available for tty/pty I/O
ndilbuffers
Maximum open files for Device I/O Library
npty
Maximum ptys allowed system-wide
nstrtel
Number of Telnet Session Device Files
o_sync_is_o_dsync
Enable or disable translation of O_SYNC to O_DSYNC in open() and fcntl() system calls
pfail_enabled
Enable power-fail recovery
public_shlibs
Allow public protection IDs on shared libraries
rtsched_numpri
Number of real-time scheduling priority levels
scroll_lines
ITE scroll buffer size
sendfile_max
Special parameter for web-servers
Spinlock Parameters (undocumented)
timezone
Specify timezone offset from Universal Coordinated Time
unlockable_mem
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
Please use plain text.
Esteemed Contributor
g3jza
Posts: 313
Registered: ‎01-30-2008
Message 5 of 8 (1,021 Views)

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.
Please use plain text.
Honored Contributor
Michael Steele_2
Posts: 4,934
Registered: ‎08-14-2002
Message 6 of 8 (1,021 Views)

Re: Kernel Reconfiguration In HP-UNIX 11.23

np


# 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
Please use plain text.
Honored Contributor
Michael Steele_2
Posts: 4,934
Registered: ‎08-14-2002
Message 7 of 8 (1,021 Views)

Re: Kernel Reconfiguration In HP-UNIX 11.23

Don't forget to assign points to all of the responses
Support Fatherhood - Stop Family Law
Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 8 of 8 (1,021 Views)

Re: Kernel Reconfiguration In HP-UNIX 11.23

Hi:

> 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 */

Regards!

...JRF...
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation