Operating System - HP-UX
1834935 Members
2309 Online
110071 Solutions
New Discussion

Is there a command line method to obtain kernel parameters?

 
SOLVED
Go to solution
Russ Park
Frequent Advisor

Is there a command line method to obtain kernel parameters?

Here's an email from a user, we are a mostly Tru64 shop, but have a new rp5430 running 11i:

Russ,
The Oracle install guide requests the following HP-UX kernel parameter settings. In TRU64 I can use the "/sbin/sysconfig -q ipc" command to check the existing settings. Doesn't work for HP-UX. Can you check these parameters and update if necessary?


Shared Memory
SHMMAX 1 GB
SHMMIN 1
SHMMNI 100
SHMSEG 10

Semaphores
SEMMNI 70
SEMMNS 200

Threads
MAX_THREAD_PROC 256
12 REPLIES 12
Helen French
Honored Contributor
Solution

Re: Is there a command line method to obtain kernel parameters?

The command is this:

# kmtune
Life is a promise, fulfill it!
Dario_1
Trusted Contributor

Re: Is there a command line method to obtain kernel parameters?

Hi!

The command is kmtune

Regards,

DR
Uday_S_Ankolekar
Honored Contributor

Re: Is there a command line method to obtain kernel parameters?


use command kmtune -l

-USA..
Good Luck..
Hai Nguyen_1
Honored Contributor

Re: Is there a command line method to obtain kernel parameters?

To have more details, run:
# kmtune -l

Hai
Helen French
Honored Contributor

Re: Is there a command line method to obtain kernel parameters?

To add, unlike other flavors, HP-UX doesn't have a kernel parameter called "SHMMIN" as specified by Oracle. So, do not waste your time looking for that parameter.
Life is a promise, fulfill it!
A. Clay Stephenson
Acclaimed Contributor

Re: Is there a command line method to obtain kernel parameters?

kmtune or the more archaic sysdef.
If it ain't broke, I can fix that.
Russ Park
Frequent Advisor

Re: Is there a command line method to obtain kernel parameters?

Thanks to all for the quick responses, I got what I needed!

BTW, I'm not sure what to do about assigning points when I get 6 of the same answer, do I give freely to all, or just the 1st one that got it?
Dario_1
Trusted Contributor

Re: Is there a command line method to obtain kernel parameters?

Hi Russell!

I hate to be the one answering that question, I will like to answer a technical one instead of this one but I have seen so many 10 points on answers that did not resolve the problem. My point here is that you can assign as many points as you want but it is very nice to assign points to every answer. You are the judge, you will have to make the decision on how to proceed. You asked a question and got 6 GOOD answers that helped you to resolve your problem. That's one of the reasons why we are here, to help others.

Regards,
DR
H.Merijn Brand (procura
Honored Contributor

Re: Is there a command line method to obtain kernel parameters?

Attached kmtune.pl is a wrapper that shows not only the parameter and it's value, but also the value in hex, the formula, and the default value of the parameter. pass a part of the name of the parameter you want to examine and it'll show only the matching one's

a5:/u/usr/merijn 102 > kmtune.pl maxd
Parameter Value hex Value dec Function Default
-------------------- ------------ ----------- --------------------------- --------------------
maxdsiz 0x0010000000 268435456 0x10000000 0x04000000
maxdsiz_64bit 0x0040000000 1073741824 0x0000000040000000
a5:/u/usr/merijn 103 >


Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Jarle Bjorgeengen
Trusted Contributor

Re: Is there a command line method to obtain kernel parameters?

Maybe the answerer should consider NOT answering exactyy the same as someone earlier did just to get points ?

Rgs Jarle
H.Merijn Brand (procura
Honored Contributor

Re: Is there a command line method to obtain kernel parameters?

Jarle, did you look at the posting times? They were all answered within 2 minutes. Most likely none of the above ever could see the other answers before hitting the submit button.

My answer added some value, at least IMHO by adding a script that *uses* the correct answer to be even more usable.

I agree with you that people should read before answering, but in this case nobody has done anything wrong. It only shows how many people have knowledge in this forum.

No points please

Enjoy, have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Massimo Bianchi
Honored Contributor

Re: Is there a command line method to obtain kernel parameters?

Hi,
i know i'm the last, but there is also the *orrid* SAM in text-only format.

In the kernel subsection, tunable parameter, you have:
- standard value
- computed formulas
- description.

If you are not very familiar with hpux it can be helpful.

to start SAM, just digit
sam
at the promt.

HTH,
Massimo