1826677 Members
2740 Online
109696 Solutions
New Discussion

kernel parameter tunning

 
SOLVED
Go to solution
madan_2
Advisor

kernel parameter tunning

I have to change kernel parameters of HP-UX B.11.11 server and the parameters are maxusers & maxfiles and this parameters are static parameters

Parameter Current Values New Values
maxfiles 256 512
maxusers 32 64

I am following below steps to change above parameters,

#/usr/lbin/sysadm/system_prep -s system

#kmtune -s maxfiles=512

#kmtune -s maxusers=64

#mk_kernel -s system

#mv /stand/system /stand/system.old

#mv /stand/vmunix /stand/vmunix.old

#mv /stand/dlkm /stand/dlkm.old

#mv /stand/build/system /stand/system

#kmupdate /stand/build/vmunix_test

#cd /
#shutdown -r 0

please give me suggestion that the above steps are right or anything missing
3 REPLIES 3
Jeeshan
Honored Contributor

Re: kernel parameter tunning

better to use sam to avoid any misspelled or mistakes.
a warrior never quits
Patrice Le Guyader
Respected Contributor
Solution

Re: kernel parameter tunning

hello,

Here is the "standard" kernel rebuilding steps.

1) In /stand/build
cd /stand/build

Create the file with kernel parameters.
2 )/usr/lbin/sysadm/system_prep -s system

Make changes in the system file.
3) vi system (and change whatever you want)

Build the new kernel
4) /usr/sbin/mk_kernel -s ./system

5)Backup old versions
mv /stand/system /stand/system.old
mv /stand/vmunix /stand/vmunix.old

6) Install new kernel
cp /stand/build/system /stand
cp /stand/build/vmunix_test /stand/vmunix

7) reboot the system
shutdown -ry 0

I think this can be easily find on itrc or by RTFM, but never mind ...

http://docs.hp.com/en/B2355-90950/ch03s10.html

Hope this helps
Kenavo
Pat.
Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement.
Ganesan R
Honored Contributor

Re: kernel parameter tunning

Hi,

SAM will do all for you and it is the preferred method to change the static kernel parameters. If you still find comfort to work with command line you can go ahead.

Thanks
Best wishes,

Ganesh.