HP-UX 11.0 Kernel Parameters

Source: Internet
Author: User
Tags semaphore code
HP-UX 11.0 Kernel Parameters
1.1 Kernel configuration Concept
Abstract, kernel configurations are a collection of all administrator options and settings that are used to determine kernel behavior and functionality in the HP-UX.
1.1.1 kernel configurations include:
1. A set of kernel adjustable parameter value allocation
2. A set of kernel modules, each of which has the desired status
1.1.2 Kernel configuration name and option description:
Physically, the Kernel configuration is a directory in the/stand directory, including the files required to implement specific actions. This directory includes:
1. HP-UX kernel executable program
2. A set of HP-UX kernel module files
3. kernel registry database, including all the above settings
4. The system file describes the above settings in a user-readable manner.
5. Various other files specific to the implementation
6. In addition to the running Kernel configuration, you can also save any number of HP-UX system kernel configurations, which are limited by disk space in the/stand directory.
1.2 files in which Hp core parameters are stored
The information in these two files is comprehensive:
/Usr/CONF/master. d/Core-HPUX.
/Var/SAM/boot. config.
/STAND/vmunix is a kernel file. The parameter is contained in the file, but it is not a text file. You can only indirectly view the system kernel parameters (such as sysdef/SAM ).
/STAND/system is a text file for modifying kernel parameters. After editing the file as required, run kmtune to re-compile the kernel based on the system value to modify kernel parameters. This is a method for modifying kernel parameters through the command line method. It is much easier if Sam is used for modification. If you don't believe it, you can try to modify the Pty value of/STAND/system. If you don't use kmtune, you can open Sam and check the Pty value.
1.3 Kernel Parameter Modification for HP-UX
/Usr/CONF/master. d/Core-HPUX
Set the core environment of the HP-UX and manage the core environment. However, the core parameters cannot be managed immediately after modification.
Because the system will read the parameters from boot. config, only boot. config is removed and then getkinfo is used.
Rebuild the boot. config file. In Sam -- "Kernel configuration --> parameter will automatically run
The getkinfo command.
First Modify/usr/CONF/master. d/Core-HPUX:
* Range maxfiles <= 60000
* Range maxfiles_lim <= 60000
Convert the/var/SAM/boot. config file mV to boot. config. Bak.
MV/var/SAM/boot. config/var/SAM/boot. config. Bak
Then run
/Usr/SAM/lbin/getkinfo-B
To recreate the boot. config file.
1.4 Kernel Parameter Modification steps
Note that this is just a "backup.
Enter Sam
---> Kernel configuration
---> Retriable Parameters
Select the kernel parameters to be modified.
---> Actions
---> Monify retriable parameter...
Save the modification in process now kernel in actions and reboot the machine.
If the machine cannot be restarted immediately due to special circumstances, enter the following content in the command line:
CD/stand
# Cp/STAND/system/STAND/system_prev
# Cp/STAND/build/system. Sam/STAND/System
# Kmupdate/STAND/build/vmunix_test
Shutdown-ry 0
You can.
If the new kernel cannot be booted or is faulty, enable the original kernel:
Enter the following content in isl:
Isl> HPUX/STAND/vmunix. Prev
Then reset the original kernel:
# Cd/stand
# Mv system. Prev System
# Kmupdate/STAND/vmunix. Prev
# Shtdown-ry 0
You can.
* Note: After modification in Sam, the original vmunix will be automatically backed up to vmunix. Prev without manual backup like system.
1.5 HP-UX 11.0 Kernel Parameters description
1.5.1 accounting subsystem (Accounting subsystem)
Acctsuspend
Minimum:-1, 100
# Maximum: 100
Default: 2
Acctresume resume Accounting
Minimum:-1, 100
# Maximum: 101
Default: 4

1.5.2 asynchronous I/O subsystem (asynchronous I/O subsystem)
Aio_listio_max can be used to specify the maximum number of AIO operations in a lio_list () call.
Minimum: 2
Maximum: 0x10000
Default: 256
Maximum number of AIO operations queried by aio_max_ops at any time
Minimum: 1
Maximum: 0x100000
Default: 2048
Aio_physmem_pct can lock the maximum percentage of the total physical memory used for POSIX asynchronous I/O operations in the system
Minimum: 5
Maximum: 50
Default: 10
Aio_prio_delta_max maximum speed reduction factor. The maximum priority in aiocb's aio_reqprio domain is reduced.

Minimum: 0
Maximum: 20
Default: 20

1.5.3 dump Parameters)
Alwaysdump Core Memory Page mask included in the dump
Minimum: 0
Maximum: None
Default: 0
Dontdump does not store the page bit mask in the core of the dump.
Minimum: 0
Maximum: None
Default: 0
Initmodmax maximum number of core modules saved by the system crash dump
Minimum: 0
Maximum: None
Default: 50
Maximum length of the savecrash table of the modstrmax Core Module
Minimum: 500
Maximum: None
Default: 500

1.5.4 Fiber Channel subsystem (Fiber Channel subsystem)
Number of num_tachyon_adapters tachyon adapters
Minimum: 0
Maximum: 5
Default: 0
Maximum number of concurrent FCP requests allowed by max_fcp_reqs
Minimum: 0
# Maximum: 1024
Default: 512

1.5.5 mass-storage subsystem (massive storage subsystem)
* Retriable File System Buffer-Cache parameters (configurable file system high-speed buffer parameters ):
Bufpages static cache page count
Minimum: 0 or 6 (nbuf * 2 or 64 pages)
Maximum: limited memory
Default: 0
Dbc_min_pct minimum Dynamic High-Speed Buffer
Minimum: 2
Maximum: 90
Default: 5
Dbc_max_pct maximum dynamic high-speed buffer
Minimum: 2
Maximum: 90
Default: 50
Nbuf static buffer header count
Minimum: 0 or 16
Maximum: limited memory
Default: 0
* Retriable open or locked files parameters (configurable parameters for opening or locking files ):
Maxfiles soft restrictions on opening files
Minimum: 30
# Maximum: 60000
Default: 60
Maxfiles_lim
Minimum: 30
# Maximum: 60000
Default: 1024
Nfile file system-wide file opening restrictions
Minimum: 14
Maximum: limited memory
Default: (16 * (nproc + 16 + maxusers)/10) + 32 + 2 * (npty + nstrpty ))
Nflocks full system file lock restrictions
Minimum: 2
Maximum: limited memory
Default: 200
Maximum number of nodes opened in ninode memory
Minimum: 14
Maximum: limited memory
Default: nproc + 48 + maxusers + (2 * npty)
* Retriable asynchronous write parameter (configurable asynchronous write parameters ):
Fs_async start/Close asynchronous disk write
Minimum: 0 (only synchronous disk write is used)
Maximum: 1 (asynchronous disk write allowed)
Default: 0
* Retriable vxfs (journaled) file-system parameter (configurable parameters of the vxfs file system ):
Vx_ncsize is the path name of the vxfs directory, and the memory space reserved by the high-speed buffer (in bytes)
Minimum: 0
Maximum: None
Default: 1024

* Filesystem performance parameters (file system performance parameter ):
Hfs_ra_per_disk sets the pre-read volume of the file system (in K bytes)
Minimum :-
Maximum :-
Default: 64
Hfs_max_ra_blocks (the maximum number of unfinished pre-read blocks allowed by the core of a single HFS File System (in the unit of file system blocks ))
Minimum :-
Maximum :-
Default: 8
Vxfs_ra_per_disk sets the pre-read volume of the file system (in K bytes)
Minimum :-
Maximum:-the maximum pre-reading value is one of the smaller values:
Vxfs_ra_per_disk * (number of disks in the logical volume)
Or
Vxfs_max_ra_kbytes

Default: 1024
Vxfs_max_ra_kbytes the maximum number of uncompleted pre-reads allowed by a vxfs File System (in K bytes ))
Minimum :-
Maximum:-see vxfs_ra_per_disk
Default: 1024

1.5.6 logical volume manager (LVM) subsystem (logical volume group manager (LVM) subsystem)
Maximum number of volume groups in maxvgs System
Minimum: 1
# Maximum: 256
Default: 10
No_lvm_disks system does not have a volume group (only used for the 700 series ))
Minimum: 0 (check the LVM disk)
Maximum: 1 (the system does not have an LVM disk)
Default: 0

1.5.7 memory swap subsystem (memory switching subsystem)
* Memory paging parameters (Memory Page parameters ):
Allocate_fs_swapmap fixed or dynamic exchange data structure Allocation
Minimum: 0 (allocate swap data structure as needed)
Maximum: 1 (pre-Allocate necessary core data structures)
Default: 0
Maxswapchunks provides the maximum swap space for customers.
Minimum: 1
# Maximum: 16384
Default: 256
Number of switch devices available for nswapdev
Minimum: 1
Maximum: 25
Default: 10
Number of files used for interchange in the nswapfs System
Minimum: 1
Maximum: 25
Default: 10
Page_text_to_local start/Close text exchange on the client
Minimum: 0 (File System server is used independently or by a customer)
Maximum: 1 (use local exchange)
Default: 1 (use local customer exchange)
Remote_nfs_swap enable/disable remote NFS Switching
Minimum: 0
Maximum: 1
Default: 0
Swapmem_on enable/disable Virtual Switch reservation
Minimum: 0 (disable reserved virtual swap)
Maximum: 1 (enable virtual switch to retain)
Default: 1
Swchunk customer swap block size
Minimum: 2048
# Maximum: 16384
Default: 2048
* Variable-page-size parameter:
Vps_ceiling is in K bytes and the maximum page size selected by the System
Minimum: 4
# Maximum: 65536
Default: 16
Vps_chatr_ceiling is in the unit of K bytes, and the maximum page size selected by chrecognition
Minimum: 4 Kbytes
Maximum: 65536 Kbytes
Default: 65536 Kbytes
Vps_pagesize is in K bytes, default user page size
Minimum: 4
# Maximum: 65536
Default: 4

1.5.8 Process Management Subsystem (Process Management Subsystem)
Maxdsiz maximum process data segment size (32-bit)
Minimum: 0x400000 (4 Mbytes)
Maximum: 0x7b03a000 (about 2 gbytes)
Default: 0x4000000 (64 Mbytes)
Maxdsiz_64bit maximum process data segment size (64-bit)
Minimum: 0x400000 (4 Mbytes)
# Maximum: 4396972769279
Default: 0x4000000 (64 Mbytes)
Maxssiz maximum process storage segment size (32-bit)
Minimum: 0X4000 (16 Kbytes)
Maximum: 0x17f00000 (approx 200 Mbytes)
Default: 0x800000 (8 Mbytes)
Maximum size of maxssiz_64bit process storage segment (32-bit)
Minimum: 0X4000 (16 Kbytes)
# Maximum: 1073741824
Default: 0x800000 (8 Mbytes)
Max_thread_proc the maximum number of threads a process can create
Minimum: 64
# Maximum: 30000
Default: 64
Maxtsiz maximum process text segment size (32-bit)
Minimum: 0x40000 (4 Mbytes)
Maximum: 0x7b033000 (about 2 gbytes)
Default: 0x4000000 (64 Mbytes)
Maxtsiz_64bit maximum process text segment size (64-bit)
Minimum: 0x40000 (4 Mbytes)
Maximum: 4398046511103 (about 4 gbytes)
Default: 0x4000000 (64 Mbytes)
Maxuprc maximum number of processes per user
Minimum: 3
Maximum: nproc-4
Default: 50
Maximum number of core threads allowed by nkthread simultaneously on the System
Minimum: 50
# Maximum: 30000
Default: (nproc * 2) + 16
Maximum number of nproc System Processes
Minimum: 10
Maximum: limited memory
Default: 20 + (8 * maxusers)
Timeslice time slice allocation between competing processes
Minimum:-1
Maximum: 2147483647 (about 8 months)
Default: 10 (10 10 ms)

1.5.9 character-mode I/O streams parameters (Character Mode I/O Stream parameters)
Nstrblksched is used by manufacturers. Do not change this value.
Nstrevent allows the maximum number of unfinished streams in the system for a specified period of time.
Minimum: None
Maximum: None
Default: 50
Nstrpush is the maximum number of stream modules allowed to exist in any single stream within a given period of time on the system.
Minimum: None
Maximum: None
Default: 16
The maximum number of daemon processes allowed by nstrsched in a given period of time on the system.
Minimum: 0
Maximum: 32
Default: 0.
In the strctlsz system, the maximum number of bytes allowed in the control part of any stream message
Minimum: 0
Maximum: limited memory
Default: 1024 bytes
In the strmsgsz system, the maximum number of bytes that can be placed in the data part of any stream message.
Minimum: 0
Maximum: limited memory
Default: 8192 bytes
Maximum number of stream-based ptys allowed by nstrpty IN THE SYSTEM
Minimum: 0
Maximum: Memory Limite
Default: 0
Streampipes forces all pipelines to be stream-based.
Minimum: 0 (create HP-UX File System Pipeline)
Maximum: 1 (create a basic Stream pipeline)
Default: 0

1.5.10 System v ipc shared-memory subsystem (System v ipc shared memory subsystem)
* Retriable IPC message parameters (configurable IPC message parameters ):
Mesg starts/disables IPC messages (only for the 700 series)
Minimum: 0 (excluding System v ipc message parameters from the core)
Maximum: 1 (including System v ipc message parameters in the core)
Default: 1
Msgmap message idle space ing size
Minimum: 3
Maximum: limited memory
Default: msgtql + 2
Maximum Message Size of msgmax
Minimum: 0
Maximum: 65535 bytes
Default: 8192 bytes
Maximum number of bytes in msgmnb Message Queue
Minimum: 0
Maximum: 65535 bytes
Default: 16384 bytes
Maximum message queue in msgmni System
Minimum: 1
Maximum: limited memory
Default: 50
Number of msgseg segments in the Message Queue
Minimum: 1
# Maximum: 32767
Default: 2048
Msgssz message segment size
Minimum: 1
Maximum: limited memory
Default: 8 bytes
Maximum number of msgtql messages in the system
Minimum: 1
Maximum: limited memory
Default: 40

* Retriable IPC semaphore parameters (configurable IPC semaphore parameters ):
Sema start/Close semaphores (only used for the 700 series)
Minimum: 0 (exclude the System v ipc semaphore code from the core)
Maximum: 1 (including the System v ipc semaphore code in the core)
Default: 1
Semaem signal value variation limit
Minimum: 0
Maximum: semvmx or 32767, with a smaller
Default: 16384
Semmap idle semaphore resource ing size
Minimum: 4
Maximum: limited memory
Default: semmni + 2
Semmni maximum semaphores throughout the system
Minimum: 2
Maximum: limited memory
Default: 64
Maximum semaphore accessible to users throughout the semmns System
Minimum: 2
Maximum: limited memory
Default: 128
Semmnu maximum of each semaphore
Minimum: 1
Maximum: nproc-4
Default: 30
Semume
Minimum: 1
Maximum: semmns
Default: 10
Maximum number of signals allowed by semvmx
Minimum: 1
# Maximum: 65535
Default: 32767

* Retriable IPC shared memory parameters (configurable IPC shared memory parameters ):
Shmem starts/disables the shared memory (only for the 700 series)
Minimum: 0 (excluding the System v ipc Shared Memory code from the core)
Maximum: 1 (the core contains the System v ipc Shared Memory code)
Default: 1
Maximum size of shmmax shared memory segments
Minimum: 2 Kbytes
Maximum: 1792 Mbytes
Default: 0x04000000 (64 Mbytes)
Maximum Segment on shmmni System
Minimum: 3
Maximum: limited memory
Default: 200 identifiers
Shmseg maximum segment of each process
Minimum: 1
Maximum: shmmni
Default: 120

1.5.11 vme I/O subsystem parameters (Vme I/O subsystem parameters)
Number of core I/O space pages required by vmebpn_public_pages VME
Minimum: 0
Maximum: 32
Default: 1
Vmebpn_sockets socket field af_vme_link is activated (Boolean)
Minimum: 0 (af_vme_link sleep)
Maximum: 1 (af_vme_link activated)
Default: 1 (af_vme_link activated)
Maximum number of vmebpn_tcp_ip dlpi PPAs
Minimum: 0
Maximum: 1
Default: 1
Vmebpn_tcp_ip_mtu is measured in K bytes and the maximum PPA sending unit size
Minimum: 0
Maximum: 64
Default: 8
Maximum number of Vme ports simultaneously opened by vmebpn_total_jobs
Minimum: 0
# Maximum: 8096
Default: 16
Vme_io_estimate Number of 4 K bytes of core I/O space pages required by vme_io_estimate VME
Minimum: 0
Maximum: 0x800
Default: 0x800

1.5.12 miscellaneous parameters (Miscellaneous parameters)
The number of bytes of the system memory retained by the cluster interconnection.
Minimum: 0
Maximum: None
Default: 0
Create_fastlinks
Minimum: 0 (do not create HFS quick connection)
Maximum: 1 (create HFS quick connection)
Default: 0
Immediate Report of default_disk_ir disk I/O
Minimum: 0 (off)
Maximum: 1 (on)
Default: 0 (off)
DST start/Close daytime backup time
Minimum: 0 (disable daytime backup time)
Maximum: 5 (set the daytime backup time to Eastern European style)
Default: 1 (set the daytime backup time to the U.S. Style)
Eqmemsize is equivalent to the size of the mapped memory zone.
Minimum: 0
Maximum: limited memory
Default: 15 pages
Limits on Signal Distribution of ksi_alloc_max in the entire system
Minimum: 32
Maximum: limited memory
Default: nproc * 8
Ksi_send_max: Maximum number of pairs that can be sent by a process and that are waiting on one or more receivers
Minimum: 32
Maximum: limited memory
Default: 32
Max_async_ports maximum number of ports on the asynchronous disk I/O drive that can be opened by a process at any given time
Minimum: 1
Maximum: limited memory
Default: 50
Max_mem_window start/configure the number of memory windows in the system
Minimum: 0
Maximum: limited memory
Default: 0
Maxusers maximum number of simultaneous users
Minimum: 0
Maximum: limited memory
Default: 32
Maximum number of ncallout timeouts allowed
Minimum: 6
Maximum: limited memory
Default: 16 + nproc + using_array_size + serving_array_size
Maximum number of cd_rom FS nodes enabled by ncdnode
Minimum: 14
Maximum: limited memory
Default: 150
Nclist obtains the maximum number of cblocks s for tty/ptyi/o.
Minimum: 132
Maximum: limited by available memory
Default: (100 + 16 * maxusers)
Maximum number of files opened by ndilbuffers for the device I/O Library
Minimum: 1
Maximum: limited memory
Default: 30
Maximum allowed by npty throughout the system
Minimum: 1
Maximum: limited memory
Default: 60
Number of device files in the nstrtel Telnet task
Minimum: 60
Maximum: limited memory
Default: 60
O_sync_is_o_dsync in open () and fcntl () system calls, start/Close o_sync to o_dsync Translation
Minimum: 0
Maximum: 1
Default: 0
Pfail_enabled start power supply fault recovery
Minimum: 0
Maximum: 1
Default: 0
Public_shlibs on the shared library, allowing public protection of IDS
Minimum: 0
Maximum: 1 (or non-zero)
Default: 1
Rtsched_numpr
Minimum: 32
# Maximum: 512
Default: 32
Scroll_lines ite scroll buffer size
Minimum: 60
# Maximum: 999
Default: 100
Special parameters of sendfile_max network server
Minimum: 0
Maximum: 0x40000
Default: 0
Bufcache_hash_locks high-speed buffer spinlock Library
Minimum: 64
# Maximum: 4096
Default: 128
Chanq_hash_locks goes to the queue's spinlock Library
Minimum: 64
# Maximum: 4096
Default: 256
Ftable_hash_locks file table spinlock Library
Minimum: 64
# Maximum: 4096
Default: 64
Io_ports_hash_locks I/O port spinlock Library
Minimum: 64
# Maximum: 4096
Default: 64
Pfdat_hash_locks pfdat spinlock Library
Minimum: 64
# Maximum: 4096
Default: 128
Region_hash_locks Processing Zone spinlock Library
Minimum: 64
# Maximum: 4096
Default: 128
Sysv_hash_locks System V inter-process communication spinlock Library
Minimum: 64
# Maximum: 4096
Default: 128
Vnode_cd_hash_locks vnode cleaning/dirty spinlock Library
Minimum: 64
# Maximum: 4096
Default: 128
Vnode_hash_locks vnode spinlock Library
Minimum: 64
# Maximum: 4096
Default: 128
Timezone from Coordinated Universal Time to local time, set the time delay
Minimum: 0
# Maximum: 1440
Default: 420
Unlockable_mem indicates the memory size reserved by the system application.
Minimum: 0
Maximum: the memory size that can be obtained when the instance is powered on.
Default: 0 (the system is set to an appropriate value)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.