Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Tuning HP-UX 11.00 Kernel Parameters

SOLVED
Go to solution
Cliff Lim Kok Hwee
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
Vishwas Pai
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
Cliff Lim Kok Hwee
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
Vishwas Pai
Regular Advisor
Solution

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

Cliff Lim Kok Hwee
Regular Advisor

Re: Tuning HP-UX 11.00 Kernel Parameters

Thanks Pai,

It works....cheers cliff
Ted Buis
Honored Contributor

Re: Tuning HP-UX 11.00 Kernel Parameters

Life is simpler if you use 'sam' to tune your kernel parameters.
Mom 6
A. Clay Stephenson
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.
Steven E. Protter
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
Cliff Lim Kok Hwee
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
Ross Minkov
Esteemed Contributor

Re: Tuning HP-UX 11.00 Kernel Parameters