Operating System - HP-UX
1833758 Members
2600 Online
110063 Solutions
New Discussion

Kernel tunning won't work

 
Tingli
Esteemed Contributor

Kernel tunning won't work

The system is rp3440 with hp-ux 11.23. When I tried to modify kernel parameter nproc I got the message as:

# # kctune nproc=4096
ERROR: The value 163840 is outside the range of valid values (min=1
max=32767) for the tunable msgseg

I don't see there is any relations between msgseg yet it won't allow me to modify nproc.

Over here, nproc is a dynamic one while msgseg is a static one.
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: Kernel tunning won't work

You may be dealing with an artifact of an earlier attempt to modify the kernel. Have a look at your current system file and check the value for msgseg. Someone may have "cowboy" directly edited the file.

You should also check to see if your kctune patches are current. PHCO_34195 is the most recent.
If it ain't broke, I can fix that.
Tim Nelson
Honored Contributor

Re: Kernel tunning won't work

Correct the error in the msgseg and then set nproc.

review current kernel with what is in /stand/system.. As noted there was a change made outside of using kctune.

Tingli
Esteemed Contributor

Re: Kernel tunning won't work

Found out the cause of the error.

Actually, the setting in kctune is:
Tunable Value Expression
.
.
.
msgseg 26560 (msgtql*4)
msgtql 6640 (nproc*10)
.
.
.
nproc 664 (((200)*3)+64)

That is why msgseg is out of its range.
Tim Nelson
Honored Contributor

Re: Kernel tunning won't work

I have notice with 11.23 and new 11.31 that the defaults and the recommendation of other is not to use formulas in the kernel parameters.

This is probably a good example of why.