Operating System - HP-UX
1834441 Members
2509 Online
110067 Solutions
New Discussion

Re: running kernel, parametres

 
SOLVED
Go to solution
CPHVF-U Guard
Advisor

running kernel, parametres

Hi.
I want the value of "semmap" and "sema" in the running kernel. How do I get it?

kmtune -q maxusers : 400
kmtune -q nproc : ((10*maxusers)/3)+128 = 1461
kmtune -q semmni : (NPROC*2) = 2922

kmtune -q semmap : (SEMMNI+2) = 2924
sysdef | grep semmap : 191430656

kmtune -q sema : 1
sysdef | grep sema : 0

Which command should I use?
6 REPLIES 6
Rainer von Bongartz
Honored Contributor
Solution

Re: running kernel, parametres


sysdef is an 'old' 10.20 tool.

you should use kmtune as the manual says:

sysdef will not be supported in
the future releases of HP-UX. So users are advised to use kmtune(1M)
utility which provides additional information on kernel tunable

Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Praveen Bezawada
Respected Contributor

Re: running kernel, parametres

Hi
Use kmtune or adb or use SAM. We earlier got wrong values from sysdef

...BPK...
T. M. Louah
Esteemed Contributor

Re: running kernel, parametres

Moreover, you can always try this command to check for Kernel params values:
#more /stand/build/tune.h |grep -i semmap
Little learning is dangerous!
Praveen Bezawada
Respected Contributor

Re: running kernel, parametres

you can use adb as

`echo "physmem/D" | adb /stand/vmunix /dev/kmem
CPHVF-U Guard
Advisor

Re: running kernel, parametres

I were to fast ....

# echo "semmap/D" | adb /stand/vmunix /dev/kmem
Error from elf64_getehdr(application core file)
Not an Elf file: No Elf header
semmap:
semmap: 191430656

#echo "sema/D" | adb /stand/vmunix /dev/kmem
Error from elf64_getehdr(application core file)
Not an Elf file: No Elf header
sema:
sema: 0

If these values are correct, then I can't trust kmtune, or?
The values match sysdef.
(By the way, it is HP-UX 11.00)
Praveen Bezawada
Respected Contributor

Re: running kernel, parametres

Hi
Sorry i missed -k , the command is
`echo "physmem/D" | adb -k /stand/vmunix /dev/kmem