HP-UX Operating System kernel parameter recommendations
[bad parameter] [error parameter] [HP-UX] [invalid parameter] [parameter]
Related:
- Profile parameter of IGS as of Version 7.xSymptom Storage and values of the default settings of the...
- Special characters in parameter string of external commandsSymptom When you define an external command, you have the...
- MaxDB 7.5/7.6 Parameter recommendations for BW systemsSymptom This note describes the special settings for the database...
- SAP MaxDB Version 7.8: Parameter recommendationsSymptom This note provides recommendations for configuring the database parameters...
- Parameter values as of liveCache Versions 7.5, 7.6 and 7.7Symptom The settings for liveCache parameters in Versions 7.5, 7.6...
- ICM and SAP Web Dispatcher Timeout ParameterSymptom You want to configure the timeout settings of the...
- Parameter recommendations for OneDB systemsSymptom This note provides recommendations regarding configuration parameter settings for...
- Parameter check for liveCache/MaxDB instancesSymptom You want to use an automatic check to check...
Symptom
Recommendation for HP-UX kernel parameter settings for use with SAP (Database and SAP Instance).
Other terms
HP-UX, 11i, 11iv1, 11iv2, 11iv3, 11.11, 11.23, 11.31, kernel parameters, Installation, Consolidation, extended memory, 64-bit, SAP on HP-UX
Reason and Prerequisites
Preconditions: 64-bit HP-UX 11.x, 64-bit SAP Kernel (PA-RISC und Itanium)
Solution
The following kernel parameter settings are listed per HP-UX version and are a recommendation for those parameters which need changing from the OS defaults.For those parameters not explicitly listed, we recommend using the OS defaults for that HP-UX version. (Default values may be checked via the kernel parameter man pages or via the kmtune/kctune commands as described below)
These recommendations should fit most customer scenarios, however there may be cases where further tuning is required, e.g. for very large systems and/or consolidated systems with multiple SAP instances.
These recommendations are based on a single SAP system including Database and Central Instance. The consolidation of multiple databases and/or SAP instances on a single Operating System image may require certain parameters to be increased.
As a result of new “self-tuning” parameters and adequate default settings, the newer HP-UX Versions require fewer kernel parameters to be tuned for SAP. Thus each current HP-UX version is listed here separately.
HP-UX 11iv3 (11.31)
- CHECK a kernel parameter: “kctune <parameter name>”
- SET a kernel parameter: “kctune <parameter name>=<value>”
- check DEFAULT parameter value: “kctune -v <parameter name>”
- To check VxFS version use “swlist -l product |grep -i “base vxfs”
(If no version number is displayed then version 3.x is installed)
Message parameters
msgtql 4096
msgmnb 65535
msgmni 4096
Semaphores
semmns >=16384
semmni >=8192
semmnu 4092
Shared Memory
shmmax Set equal to installed system RAM (in bytes)
e.g. 16GB =17.179.869.184
shmmni >=512
Filesystem
maxfiles >=4096
nflocks 8192
vx_ninode 131072 (for VxFS 4.x and VxFS 5.x)
40000 (for VxFS 3.x)
vxfs_ifree_timelag -1
(only in combination with vx_ninode as above)
Process Management
maxdsiz_64bit >=17.179.869.184
maxssiz_64bit 1.073.741.824
maxuprc 4096
max_thread_proc >=3000 (Java dependent, see note 534867)
nkthread >=10.000 (Java dependent, see note 534867)
Miscellaneous
process_id_max default (30000)
(SAP PIDs are restricted to 8 digits.
process_id_max must not exceed “99999999″)
process_id_min default (0)
filecache_max 8 (Percent)
(or lower if using direct I/O, see note 1077887)
filecache_min 5 (Percent)
(or lower if using direct I/O, see note 1077887)
(If the HP-UX Server has >4GB RAM, then lower settings for
Filecache size could be more appropriate.)
base_pagesize 4 (Itanium >= 11.31 Update 3, see note 1329878)
lcpu_attr 1 (Itanium only, see note 1329360 for details)
HP-UX 11iv2 (11.23)
- CHECK a kernel parameter: “kctune <parameter name>”
- SET a kernel parameter: “kctune <parameter name>=<value>”
- check DEFAULT parameter value: “kctune -v <parameter name>”
- To check VxFS version use “swlist -l product |grep -i “base vxfs”
(If no version number is displayed then version 3.x is installed)
Message parameters
msgtql 4096
msgmap 4098
msgmnb 65535
msgmax 65535
msgmni 4096
msgseg 32767
Semaphores
semmns >=16384
semmni >=8192
semmnu 4092
Shared Memory
shmmax Set equal to installed system RAM (in bytes)
e.g. 16GB =17.179.869.184
shmmni >=512
Filesystem
maxfiles >=4096
nflocks 8192
nfile 65536 (see note 546006 for details)
vx_ninode 131072 (for VxFS 4.x and VxFS 5.x)
40000 (for VxFS 3.x)
vxfs_ifree_timelag -1
(only in combination with vx_ninode as above)
Process Management
maxdsiz_64bit >=17.179.869.184
maxssiz_64bit 1.073.741.824
maxuprc 4096
max_thread_proc >=3000 (Java dependent, see note 534867)
nkthread >=10000 (Java dependent,see note 534867)
Miscellaneous
dbc_max_pct 8
(or lower if using direct I/O, see note 1077887)
dbc_min_pct 5
(or lower if using direct I/O, see note 1077887)
(If the HP-UX Server has >4GB RAM, then lower settings for
Buffercache size could be more appropriate.)
Memory Management
swchunk 8192
HP-UX 11iv1 (11.11)
- CHECK a kernel parameter: “kmtune -q <parameter name>”
- SET a kernel parameter: “kmtune -s <parameter name>=<value>”
- check DEFAULT parameter value: “kmtune -q <parameter name> -l”
- To check VxFS version use “swlist -l product |grep -i “base vxfs”
(If no version number is displayed then version 3.x is installed)
Message parameters
msgtql 4096
msgmap 4098
msgmnb 65535
msgmax 65535
msgmni 4096
msgseg 32767
msgssz 32
Semaphores
semmns >=16384
semmni >=8192
semmnu 4092
semume 100
Shared Memory
shmmax Set equal to installed system RAM (in bytes)
e.g. 16GB =17.179.869.184
shmmni 512
shmseg >=200
Filesystem
maxfiles >=4096
maxfiles_lim >=4096
nflocks 8192
ninode 34816
nfile 65536 (see note 546006 for details)
vx_ninode 40000 (for VxFS 3.x)
Process Management
maxdsiz 1.073.741.824
maxdsiz_64bit >=17.179.869.184
maxssiz_64bit 1.073.741.824
maxuprc 4096
max_thread_proc >=3000 (Java dependent, see note 534867)
nkthread >=10000 (Java dependent, see note 534867)
nproc 4200
Miscellaneous
maxusers 128
dbc_max_pct 8
(or lower if using direct I/O, see note 1077887)
dbc_min_pct 5
(or lower if using direct I/O, see note 1077887)
(If the HP-UX Server has >4GB RAM, then lower settings for
Buffercache size could be more appropriate.)
Memory Management
maxswapchunks 16384
swchunk 8192