Operating System - HP-UX
1753448 Members
6109 Online
108794 Solutions
New Discussion юеВ

Re: how to set the kernel parameters in hpux

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

how to set the kernel parameters in hpux

Hi

I am using hpux 11.00 and 11.11.

I knew "how to set the kernel parameters in linux".

The file "/etc/sysctl.conf" is used to set the kernel parameters in linux.

Like this how to set the kerner parameters in hpux 11.00 and 11.11.

1) what is the file is used to set the kernel parameters?
2) how to view all current kernel parameter settings?
3) How to set the new kernel parameter with out restarting the server?
29 REPLIES 29
George_Dodds
Honored Contributor

Re: how to set the kernel parameters in hpux

Do a man on kmtune.

Cheers

George
avizen9
Esteemed Contributor

Re: how to set the kernel parameters in hpux

Hello Senthil,
please refer below good doc,

http://docs.hp.com/en/939/KCParms/KCparams.OverviewAll.html
Suraj K Sankari
Honored Contributor

Re: how to set the kernel parameters in hpux

Hi,

You can change kernel parameter through SAM.
from command line also you can change the parameter.

"Overview of Kernel Configuration Parameters"
See the below link your all answers are there.

http://docs.hp.com/en/B8725-90143/ch13s03.html

or Download the pdf file

http://docs.hp.com/en/B8725-90143/B8725-90143.pdf

See the attache file how to change kernel parameter through command line.

Suraj
Pete Randall
Outstanding Contributor

Re: how to set the kernel parameters in hpux

Actually this is one of the cases where I prefer to use SAM. The SAM interface has valuable help sections which can explain some of the more obscure kernel parameters and their relationships to other parameters - potentially valuable help in my opinion.


Pete

Pete
Sunny123_1
Esteemed Contributor

Re: how to set the kernel parameters in hpux

Hi Senthil

Best way to use SAM

go to sam > Kernel Configuration > Configurable Parameters.

Or use kmtune.

Regards
Sunny
Sajjad Sahir
Honored Contributor

Re: how to set the kernel parameters in hpux

Dear Senthil

Please check the following link, it is an excellent one

http://docs.hp.com/en/1219/tuningwp.html

thanks and regards

Sajjad Sahir
johnsonpk
Honored Contributor

Re: how to set the kernel parameters in hpux

Hi Senthil,
>>1) what is the file is used to set the kernel parameters?
/stand/system is used to create /set kernal tunables.(changing the system file entries doesnt mean that you have set the kernal tunables on the kernel)
>>2) how to view all current kernel parameter settings?
#kmtune (till 11iv2)
#kctune (v2
and v3)
>>>3) How to set the new kernel parameter with out restarting the server?
Reboot is required for tunables that are static
You can use SAM or change it as belo
(if you are tuning the dynamic parameters using kmtune -s = it will have immediate effect(not reboor required))
1)Modify the system file either by vi or by command
# kmtune ├в s dbc_max_pct=35

2)Generate the kernel
after you modified the system file as needed you can generate the new kernel using the
mk_kernel script. The name of the new kernel will be /stand/build/vmunix_test
unless explicitely specified through the -o option. The -s option specifies the system
file to use, /stand/system is the default:
# mk_kernel

3)Schedule kernel update
kmupdate is used to initiate the move of the new kernel (/stand/build/vmunix_test)
and the corresponding files to their appropriate places at the next shutdown or startup.
The current kernel will be copied to /stand/vmunix.prev
# kmupdate

4)the new kernel will be activated by restarting the system:
# cd /
# shutdown ├в r 0


Rgds
Johnson
Rahul Rai_1
Frequent Advisor

Re: how to set the kernel parameters in hpux

Hello Senthil,

Before changing Kernel Parameter be sure there is two type of Kernel Parameter

1) static, where reebot require, to make effective.
2) Dynamic where no need to reebot.

well, sam is the best way to change the kernel parameter, there is some dependencys with other kernel parameters, and it will simply display the formula.

sam > Kernel Configuration > Configurable Parameters

Regards,
Rahul Rai.

Don Morris_1
Honored Contributor

Re: how to set the kernel parameters in hpux

Note that 11.0 had no Dynamic tunables, only Static. (11.11 introduced Dynamic tunables).