Operating System - HP-UX
1834752 Members
2787 Online
110070 Solutions
New Discussion

Conditional kernel values

 
SOLVED
Go to solution
Jeff Carlin
Frequent Advisor

Conditional kernel values

Could someone please explain this statement:

((NPROC<=30000)?30000:(NPROC*5/4))

If this is what I think it is, I would like to deploy more conditional parms like this for my builds.

JC
Where wisdom is called for, force is of little use. --Of course, a hammer does wonders for relieving stress.
3 REPLIES 3
John Poff
Honored Contributor
Solution

Re: Conditional kernel values

Hi,

It says, if NPROC is less than or equal to 3000, set the value to 30000, else set the value to (NPROC*5/4).

Actually, I don't like these formulas. I prefer to put in the actual value I need for a parameter, and I don't like having to worry about changing one parameter and having a dozen other parameters get changed also.

JP
Zafar A. Mohammed_1
Trusted Contributor

Re: Conditional kernel values

Jeff Carlin
Frequent Advisor

Re: Conditional kernel values

Thanks John! I kind of thought that was what it was doing, but wanted to be sure before I attempt to use some variations of it.
Where wisdom is called for, force is of little use. --Of course, a hammer does wonders for relieving stress.