Operating System - HP-UX
1752587 Members
4087 Online
108788 Solutions
New Discussion юеВ

Re: How to modify the kernal parameter on HP-UX

 
SOLVED
Go to solution
mrk_1
Frequent Advisor

How to modify the kernal parameter on HP-UX

Hi All,

How to modify the kernal parameter to match the new memory size on hp-ux using command.

Thanks in advance.
8 REPLIES 8
VK2COT
Honored Contributor

Re: How to modify the kernal parameter on HP-UX

Hello,

We would like to help you, but your question
is very ambiguous.

What kernel parameter do you have in mind?
Some of them are auto-tuned based on
physical resources you have on the server.

Please let us know what exactly are you trying
to resolve?

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Mark McDonald_2
Trusted Contributor

Re: How to modify the kernal parameter on HP-UX

You need to be sure what you are changing -

Check out:
man kctune

or kmtune for older versions.
SKR_1
Trusted Contributor

Re: How to modify the kernal parameter on HP-UX

mrk_1
Frequent Advisor

Re: How to modify the kernal parameter on HP-UX

Thanks for the reply.

I am going to install mq on hp-ux server. Before installing, I need to set some of the kernel parameter.
for example, need to change the maxfiles parameter to 1024.

Thanks.
Dennis Handly
Acclaimed Contributor

Re: How to modify the kernal parameter on HP-UX

>need to change the maxfiles parameter to 1024.

Have you checked to make sure it isn't already 1024 or larger?
mrk_1
Frequent Advisor

Re: How to modify the kernal parameter on HP-UX

No. The current value of maxfiles is 100 only.
VK2COT
Honored Contributor
Solution

Re: How to modify the kernal parameter on HP-UX

Hello,

Here is a simple plan:

a) For each of the kernel parameters check if
they are dynamic or static.

Static ones will require a rebuild of the
kernel and reboot.

For example:

# kctune -v maxfiles
Tunable maxfiles
Description Initial (soft) maximum number of file descriptors per process
Module fs
Current Value 2048 [Default]
Value at Next Boot Default (automatic)
Value at Last Boot 2048
Default Value 2048 (automatic)
Constraints maxfiles >= 32
maxfiles <= 1048576
maxfiles <= maxfiles_lim
Can Change At Next Boot Only
-----------------
||
\/
static parameter

For HP-UX versions <= 11.11 you can use:

# kmtune

and HP-UX versions >= 11.20

# kctune

In other words, on 11.11 and below, you can use the kmtune command:

# kmtune -q param # to check
# kmtune -s param=value # to set

On 11.20 and up you can use kctune:

# kctune -v param # to check
# kctune param=value # to set

b) Then, create a document with your
changes, write a Change Request and
get it approved. I would hope you
cannot make changes without proper change
management procedures in your company.

c) Then, either use command-line
kctune(1m) to change each parameter,
or simply use SAM or SMH to do it
via GUI interfaces (whatever makes
you comfortable).

In your specific case, if you use newer
version of the O/S, to set maxfiles:

# kctune maxfiles=4096 (or whatever)

d) If the changes require a reboot,
make sure that you are logged in at the
console (ILO, GSP, or whatever).

Cheers,

VK2COT
VK2COT - Dusan Baljevic
f. halili
Trusted Contributor

Re: How to modify the kernal parameter on HP-UX

Use kcweb, this will give you the gui which can guide you on the changes you want.

cheers,
f. halili
derekh