Operating System - HP-UX
1830350 Members
1807 Online
110001 Solutions
New Discussion

Uping a Tunable Kernel parameter without SAM

 
Richard Ace
Frequent Advisor

Uping a Tunable Kernel parameter without SAM

Does anyone know how to up MAXPROC Tunable without SAM???

Any sugguestion.

Cheers

Rich
7 REPLIES 7
Helen French
Honored Contributor

Re: Uping a Tunable Kernel parameter without SAM

Hi Rich,

Not sure about a Kernel Parameter called - MAXPROC. However, any kernel parameter can be tuned by using this method:

1) make copy of /stand/system and /stand/vmunix
2) edit /stand/system
3) Add the new value in the file
4) Rebuild new kernel with mk_kernel ( see man pages)
5) move new kernel from /stand/build
6) restart the system.

I think you are talking about max_thread_proc

HTH,
Shiju
Life is a promise, fulfill it!
Richard Ace
Frequent Advisor

Re: Uping a Tunable Kernel parameter without SAM

Yes that is the one.

And thanks for the info

I looks pretty straight forward

Cheers

Rich
Steve Steel
Honored Contributor

Re: Uping a Tunable Kernel parameter without SAM

Hi

What OS

On 11.x


kmtune(1M) kmtune(1M)

NAME
kmtune - query, set, or reset system parameters

SYNOPSIS
/usr/sbin/kmtune [-l] [[-q name]...] [-S system_file]

/usr/sbin/kmtune [[-s name {=|+} value]...] [[-r name]...]
[-S system_file]


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Helen French
Honored Contributor
Richard Ace
Frequent Advisor

Re: Uping a Tunable Kernel parameter without SAM

Yes

11.0

cheers

Rich
David Burgess
Esteemed Contributor

Re: Uping a Tunable Kernel parameter without SAM

Do you mean maxuprc?

I prefer to use SAM as it checks that you are not tuning the parameter out of range. If you wrongly tune certain parameters you could end up with a system that won't boot!

The following will build you a new kernel :-

# cd /stand/build
# /usr/lbin/sysadm/system_prep -s system
# vi system (make your changes and save the file)

Under the section Tunable parameters add your entry for maxuprc

* Tunable parameters

maxuprc 75

# mk_kernel -s system
# kmupdate (HPUX 11 only)
# cd /stand (HPUX 10.20 only)
# mv vmunix vmunix.prev (HPUX 10.20 only)
# mv /stand/build/vmunix_test /stand/vmunix (HPUX 10.20 only)
# cd /
# shutdown -r -y 0

Also I'd try it on a test server first.

Good luck!
Richard Ace
Frequent Advisor

Re: Uping a Tunable Kernel parameter without SAM

Thanks all

cheers

Rich