Operating System - HP-UX
1834395 Members
1697 Online
110066 Solutions
New Discussion

Re: Kernel Parameter Modification Error

 
Tamer Shaalan
Regular Advisor

Kernel Parameter Modification Error

Hi all,

When I try to modify some kernerl parameters in an hp-ux 11.11 box, I have the following error :

Error: One or more tunable parameters violates an interdependency
rule. SAM expects the following expression(s) to be true:

max_thread_proc <= nkthread

What is that ? and how to fix it ?

Thanks in advance.

Tamer.
Success is a journey, not a destination
7 REPLIES 7
A. Clay Stephenson
Acclaimed Contributor

Re: Kernel Parameter Modification Error

This means that you must increase nkthread (combined maximum global number of threads) before you increase max_thread_proc. Max_thread_proc limits the number of threads that a single process can create.
If it ain't broke, I can fix that.
Tamer Shaalan
Regular Advisor

Re: Kernel Parameter Modification Error

Thanks for reply,

The parameter nkthread value is calucalted as :

(((NPROC*7)/4)+16)

how to increse it? it should be updated automatically from the mathematical form?

Right?????

Tamer.
Success is a journey, not a destination
Vitek Pepas
Valued Contributor

Re: Kernel Parameter Modification Error

You can either increase nproc or overwrite formula with explicit value.
Patrick Wallek
Honored Contributor

Re: Kernel Parameter Modification Error

NKTHREAD will only be updated if you modify NPROC.

NPROC is NOT the same as MAX_THREAD_PROC.

A good document on the tunable kernel parameters is here:
http://docs.hp.com/en/TKP-90202/index.html
It is also available as a PDF file here:
http://docs.hp.com/en/TKP-90202/TKP-90202.pdf
A. Clay Stephenson
Acclaimed Contributor

Re: Kernel Parameter Modification Error

Experienced admins usually decouple many tunables from the HP formulae and insert a direct numeric value. In your case, you can increase NPROC but that will have other side effects as well but if you are a little unsure, stick with the formulae. Typically, the formulae are safe but often wasteful of resources.
If it ain't broke, I can fix that.
Nguyen Anh Tien
Honored Contributor

Re: Kernel Parameter Modification Error

It mean max_thread_proc dependence on nkthread.
YOU MUST SET nkthread FIRST, THEN SET max_thread_proc.THEN PROCESS NEW KERNEL.
tienna
HP is simple
Ravi_8
Honored Contributor

Re: Kernel Parameter Modification Error


Hi,

max_thread_proc value must be less than or equal to nkthread.

nkthread value depend on the value of nproc.

hence increasing the value of nproc would solve your problem ( for database db2 and oracle we normally set the value of nproc to 4096)
never give up