1833144 Members
3044 Online
110051 Solutions
New Discussion

Tuning Kernel Parameters

 
Cliff Lim Kok Hwee
Regular Advisor

Tuning Kernel Parameters

Gd Day Forum,

OS: HP-UX 11.00

I would like to tune the kernel parameter,

nkthread(((NPROC*7)/4)+16)to ((NPROC*7)+16)
ninode from ((NPROC+16+MAXUSERS)+32+(2*NPTY)) to (3*nproc+2048)

Query: Correct me if I am wrong is the kmtune format stated below correct?

kmtune -s nkthread=NPROC*7+16
kmtune -s ninode=3*nproc+2048

Do we just remove the bracket will do?

Need your advise?
4 REPLIES 4
Vishwas Pai
Regular Advisor

Re: Tuning Kernel Parameters


I think it is just fine, but if want to be
sure about the expression evaluvation you
can execute the commands in the following
manner.

# kmtune -s nkthread="(NPROC*7)+16"
# kmtune -s ninode="(3*nproc)+2048"

HTH -vishwas
Cliff Lim Kok Hwee
Regular Advisor

Re: Tuning Kernel Parameters

Gd Day Guys,

If for long expression eg
ninode:((NPROC+16+MAXUSERS)+32+(2*NPTY))

Will kmtune -s ninode=NPROC+16+MAXUSERS+32+2*NPTY

OR

As suggested kmtune -s ninode="((NPROC+16+MAXUSERS)+32+(2*NPTY))"

Need advise...thanks/cliff
Vishwas Pai
Regular Advisor

Re: Tuning Kernel Parameters

One of the following is fine (according to
me of course)

1. (your soln.)
# kmtune -s ninode="((NPROC+16+MAXUSERS)+32+(2*NPTY))"

2. My take.

# kmtune -s ninode=2*NPTY+NPROC+16+MAXUSERS+32
OR
# kmtune -s ninode="(2*NPTY)+NPROC+16+MAXUSERS+32"

See the re-ordered variables.

HTH - vishwas
Nguyen Anh Tien
Honored Contributor

Re: Tuning Kernel Parameters

Do not foget to run those command. If you want to update your server's kernel


#cp system build
(build is a directory under /stand)
#mk_kernel -o /stand/vmunix
#kmupdate
#cd /
#shutdown -r y now

HP is simple