Operating System - HP-UX
1834047 Members
2487 Online
110063 Solutions
New Discussion

HOw to chnage a bunch of kernel parameters on 11i

 
SOLVED
Go to solution
Hanry Zhou
Super Advisor

HOw to chnage a bunch of kernel parameters on 11i

Without using SAM. What files I should modify, and if I can put decimal digits in? and detailed steps?

Thanks,
none
7 REPLIES 7
Vitek Pepas
Valued Contributor

Re: HOw to chnage a bunch of kernel parameters on 11i

1. Create template parameters file:
cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system

2. Modify parameters :
kmtune â S /stand/build/system â s parameter=value

3. Build the kernel:
/usr/sbin/mk_kernel -s system

4. Save current kernel and replace it with updated version:
mv /stand/system /stand/system.prev
mv /stand/vmunix /stand/vmunix.prev
mv /stand/dlkm /stand/dlkm.prev
mv /stand/build/system /stand/system
kmupdate /stand/build/vmunix_test

5. Reboot the s
Vitek Pepas
Valued Contributor
Solution

Re: HOw to chnage a bunch of kernel parameters on 11i

Sorry, my copy+paste got messed up/

1. Create template parameters file:
cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system

2. Modify parameters:
kmtune -S /stand/build/system -s parameter=value

3. Build the kernel:
/usr/sbin/mk_kernel -s system

4. Save current kernel and replace it with updated version:
mv /stand/system /stand/system.prev
mv /stand/vmunix /stand/vmunix.prev
mv /stand/dlkm /stand/dlkm.prev
mv /stand/build/system /stand/system
kmupdate /stand/build/vmunix_test

5. Reboot the system.

And yes you can use decimal numbers.
Hanry Zhou
Super Advisor

Re: HOw to chnage a bunch of kernel parameters on 11i

Thanks for your quick response

On step 2:

a). does that mean I have to run the same command on all parameters I need to tune?

kmtune -S /stand/build/system -s parameter=value


b). Can I use decimal number to set the "value" here?
none
Steven E. Protter
Exalted Contributor

Re: HOw to chnage a bunch of kernel parameters on 11i

Yes, you can use digital values in intruction 2.

As you use the kmtune -S command, you need to monitor the output response codes. If you violate formula values, you may not get your epxected changes.



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
Hanry Zhou
Super Advisor

Re: HOw to chnage a bunch of kernel parameters on 11i

What about my question a)

If I run the command kmtune -S many times on the bunch of parameters, that would be not as convinient as I expect, and that won't bring me any better than use SAM.

Right?
none
Vitek Pepas
Valued Contributor

Re: HOw to chnage a bunch of kernel parameters on 11i

a) Yes.
b) Yes.
Vitek Pepas
Valued Contributor

Re: HOw to chnage a bunch of kernel parameters on 11i

In 10.20 the procedure was simply to modify /stand/build/system file and rebuild the kernel. It is not recommended in 11.x (see 'man kmtune'), but I don't see a reason why it wouldn't work.
You could also build a file in 'parameter=value' format and use 'for' command to speed up the process.