System Administration
Showing results for 
Search instead for 
Do you mean 

Tuning HP-UX 11.00 Kernel Parameters

SOLVED
Go to Solution
Regular Advisor

Tuning HP-UX 11.00 Kernel Parameters

Gd Day Forum,

I just performed kernel tuning on the following parameters,

ksh > kmtune -s nproc=maxusers*3+64
ksh > kmtune -s bufpages=0
ksh > kmtune -s dbc_max_pct=20
ksh > kmtune -s maxfiles=120
ksh > kmtune -s maxfiles_lim=2048
ksh > kmtune -s nfile=5*nproc+2048
ksh > kmtune -s nflocks=nproc
ksh > kmtune -s ninode=3*nproc+2048
ksh > kmtune -s msgtql=nproc
ksh > kmtune -s msgmnb=65535
ksh > kmtune -s msgmni=nproc
ksh > kmtune -s msgssz=128
ksh > kmtune -s msgseg=msgtql*4
ksh > kmtune -s semmni=nproc
ksh > kmtune -s semmns=semmni*2
ksh > kmtune -s semmnu=semmni/2
ksh > kmtune -s semume=64
ksh > kmtune -s shmmax=0x08000000
ksh > kmtune -s shmmni=200
ksh > kmtune -s shmseg=32
ksh > kmtune -s maxvgs=20
ksh > kmtune -s nswapdev=25
ksh > kmtune -s swapmem_on=0
ksh > kmtune -s unlockable_mem=maxusers*10
ksh > kmtune -s maxuprc=nproc*8/10
ksh > kmtune -s timeslice=1
ksh > kmtune -s npty=60
ksh > kmtune -s nstrtel=maxusers

Issue: While performing the command,
ksh > mk_kernel -o /stand/vmunix

A lot of error messages were reported as mentioned below.

Compiling /stand/build/conf.c...
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 97: error 1588: "nproc" undefined.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 97: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 102: error 1584: Inconsistent type declaration: "nproc".
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 102: error 1588: "maxusers" undefined.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 102: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 113: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 144: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 150: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 223: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 293: error 1502: Array size must be a constant expression.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 294: error 1502: Array size must be a constant expression.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 295: error 1502: Array size must be a constant expression.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 297: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 300: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 302: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 303: error 1588: "msgtql" undefined.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 303: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 332: error 1502: Array size must be a constant expression.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 333: error 1588: "semmni" undefined.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 333: error 1502: Array size must be a constant expression.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 334: error 1502: Array size must be a constant expression.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 347: error 1502: Array size must be a constant expression.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 350: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 351: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 352: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 353: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 405: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 428: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 429: error 1502: Array size must be a constant expression.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 515: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 515: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 516: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 516: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 619: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 620: error 1502: Array size must be a constant expression.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 623: error 1521: Incorrect initialization.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 624: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 624: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 624: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: "/usr/conf/space.h.d/core-hpux.h", line 624: error 1552: First expression of ?: must be arithmetic.
(Bundled) cc: Panic 2161: Maximum allowed number of errors exceeded.
*** Error exit code 1

Stop.
config: make did an exit(1)

/usr/conf/space.h.d/core-hpux.h

Query: Is there something wrong starting from my first kmtune -s nproc=maxusers*3+64?

The original value nproc=(20+8*MAXUSERS)

Need forumers advise/cliff
9 REPLIES
Regular Advisor Regular Advisor

Re: Tuning HP-UX 11.00 Kernel Parameters


use capital variables NPROC,MAXUSERS etc in
your tunable set (kmtune -s) commands. I think
they are predefined C MACROs, which get
modified after kmtune is executed.

HTH -vishwas
Regular Advisor

Re: Tuning HP-UX 11.00 Kernel Parameters

Gd Day Forum,

Using capital does not seem to work....

ksh > kmtune -s NPROC=MAXUSERS*3+64
kmtune: Cannot identify parameter name NPROC

SGP rootunix @ devdfs04 | /stand >
ksh > kmtune -l -q NPROC
kmtune: Cannot identify parameter name NPROC

Please advise/thanks cliff
Regular Advisor Regular Advisor

Re: Tuning HP-UX 11.00 Kernel Parameters


Sorry for being not very clear ...

I meant the following..

# kmtune -s nproc=MAXUSERS*3+64
# kmtune -s msgmni=NPROC

and not the following..

>> ksh > kmtune -s NPROC=MAXUSERS*3+64
>> kmtune: Cannot identify parameter name NPROC

HTH - vishwas

Regular Advisor

Re: Tuning HP-UX 11.00 Kernel Parameters

Thanks Pai,

It works....cheers cliff
Honored Contributor Honored Contributor

Re: Tuning HP-UX 11.00 Kernel Parameters

Life is simpler if you use 'sam' to tune your kernel parameters.
Mom 6
Acclaimed Contributor Acclaimed Contributor

Re: Tuning HP-UX 11.00 Kernel Parameters

Go directly to jail. Do not pass go. Do not collect $200.00.

Immediately (if not sooner) set timeslice back to 10. Your setting will lead to context switching (and very little else) when the box sees any significant load.
If it ain't broke, I can fix that.
Exalted Contributor Exalted Contributor

Re: Tuning HP-UX 11.00 Kernel Parameters

Please read this doc carefully.

http://www1.itrc.hp.com/service/cki/search.do?category=c0&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty&searchString=UPERFKBAN00000726&search.y=8&search.x=28&mode=id&admit=-682735245+1102350851284+28353475&searchCrit=allwords

Then do what A. Clay says immediately.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Regular Advisor

Re: Tuning HP-UX 11.00 Kernel Parameters

Hi Steven n A.Clay,

Dun seem to be able to retrieve the document as advised by Steven....

Thanks/cliff
Esteemed Contributor Esteemed Contributor

Re: Tuning HP-UX 11.00 Kernel Parameters