Changing kernel parameters in HP-UX.
While Installing DB it failed due to below kernel parameters
Checking for maxssiz=134217728; maxssiz=8388608. Failed <<<<Checking for maxssiz_64bit=1073741824; maxssiz_64bit=268435456. Failed <<<<Checking for maxuprc=3687; maxuprc=3686. Failed <<<<Checking for semmns=8192; semmns=4096. Failed <<<<I resolved this issue by setting this parameters using kctune command as below.
For verifying the current Value
# kctune -v for maxssiz maxssiz_64bit maxuprc semmnsTunable maxssizDescription Maximum size of the stack segment of a 32-bit process (bytes)Module vmCurrent Value 8388608 [Default]Value at Next Boot 8388608 [Default]Value at Last Boot 8388608Default Value 8388608Constraints maxssiz >= 262144 maxssiz <= 401604608Can Change Immediately or at Next Boot
Tunable maxssiz_64bitDescription Maximum size of the stack segment of a 64-bit process (bytes)Module vmCurrent Value 268435456 [Default]Value at Next Boot 268435456 [Default]Value at Last Boot 268435456Default Value 268435456Constraints maxssiz_64bit >= 262144 maxssiz_64bit <= 2147483648Can Change Immediately or at Next Boot
Tunable maxuprcDescription Maximum number of processes for each non-root userModule pm_procCurrent Value 3686 [((nproc*9)/10)]Value at Next Boot 3687Value at Last Boot 3686Default Value 256Constraints maxuprc >= 3 maxuprc <= nproc - 5Can Change Immediately or at Next Boot
Tunable semmnsDescription Maximum number of semaphoresModule pm_usyncCurrent Value 4096 [Default]Value at Next Boot 4096 Value at Last Boot 4096Default Value 4096Constraints semmns >= 2 semmns <= 335534080 semmns >= semmni semmns >= semumeCan Change At Next Boot OnlyFor changing the Value:
# kctune maxssiz=134217728 ==> Update the automatic 'backup' configuration first? yes yes - Update backup before every change once - Update backup now; ask for each future change no - Don't update backup now; ask for each future change disable - Don't update backup before any change ==> Update the automatic 'backup' configuration first? yes * The automatic 'backup' configuration has been updated. * Future operations will update the backup without prompting. * The requested changes have been applied to the currently running configuration.Tunable Value Expression Changesmaxssiz (before) 8388608 Default Immed (now) 134217728 134217728
# kctune maxssiz_64bit=1073741824 * The automatic 'backup' configuration has been updated. * The requested changes have been applied to the currently running configuration.Tunable Value Expression Changesmaxssiz_64bit (before) 268435456 Default Immed (now) 1073741824 1073741824
# kctune maxuprc=3687 * The automatic 'backup' configuration has been updated. * The requested changes have been applied to the currently running configuration.Tunable Value Expression Changesmaxuprc (before) 3686 ((nproc*9)/10) Immed (now) 3687 3687
# kctune semmns=8192NOTE: The requested changes could not be applied to the currently running system, for the following reasons: - The tunable 'semmns' cannot be changed without a reboot. * The requested changes have been saved, and will take effect at next boot.NOTE: No change to the tunable 'semmns' was needed.Tunable Value Expressionsemmns (now) 4096 Default (next boot) 8192 8192After Changing the value using kctune command, it require a reboot of the system for some of the value to get effected. As show below output.
# kctune -v for maxssiz maxssiz_64bit maxuprc semmnsTunable maxssizDescription Maximum size of the stack segment of a 32-bit process (bytes)Module vmCurrent Value 134217728Value at Next Boot 134217728Value at Last Boot 134217728Default Value 8388608Constraints maxssiz >= 262144 maxssiz <= 401604608Can Change Immediately or at Next Boot
Tunable maxssiz_64bitDescription Maximum size of the stack segment of a 64-bit process (bytes)Module vmCurrent Value 1073741824Value at Next Boot 1073741824Value at Last Boot 1073741824Default Value 268435456Constraints maxssiz_64bit >= 262144 maxssiz_64bit <= 2147483648Can Change Immediately or at Next Boot
Tunable maxuprcDescription Maximum number of processes for each non-root userModule pm_procCurrent Value 3687Value at Next Boot 3687Value at Last Boot 3687Default Value 256Constraints maxuprc >= 3 maxuprc <= nproc - 5Can Change Immediately or at Next Boot
Tunable semmnsDescription Maximum number of semaphoresModule pm_usyncCurrent Value 8192Value at Next Boot 8192Value at Last Boot 8192Default Value 4096Constraints semmns >= 2 semmns <= 335534080 semmns >= semmni semmns >= semumeCan Change At Next Boot Only
Awesome Help ! Thanks for sharing !
ReplyDeleteAwesome Information ! Thanks for sharing !!!
ReplyDelete