Operating System - HP-UX
1836636 Members
1616 Online
110102 Solutions
New Discussion

Re: HP-UX 11.23 ktune expression for setting min. to default

 
BSSG
Frequent Advisor

HP-UX 11.23 ktune expression for setting min. to default

I'd like to run a tool that will set certain kernel tunable parameters with non-Default, non-binary settings to have a value at least equal to the Default. That is if value is < Default, set value to "Default". Otherwise leave it be.

Based on the man pages for kctune, it looks almost as if the expression syntax could be used to perform this action. Unfortunately it's unclear whether a value of "Default" would be valid. For example:

kctune -h -c '(nproc
The option I'd like to have would be:

kctune -h -c 'nproc>=Default'

but that doesn't appear to be a viable option.

Does anybody know how to implement this in kctune? I'd rather not use bourne shell scripts to do this as they have problems with 64-bit integer math. (Although I could potentially do this using 'bc', but that would be messy.)

Thank you.
1 REPLY 1
Steven Roth
Occasional Advisor

Re: HP-UX 11.23 ktune expression for setting min. to default

Here's hoping that a reply after 6 months is better than no reply....

No, kctune cannot do what you are suggesting. I agree that it would be nice. I have filed an enhancement request for this feature. Thank you for the suggestion.
Kernel Configuration Architect