Operating System - HP-UX
1837260 Members
2938 Online
110115 Solutions
New Discussion

Determining Kernel Parameter Settings and Utilization Values

 
Steve Miller_17
New Member

Determining Kernel Parameter Settings and Utilization Values

High level, I'm looking for a command-line way to determine the "calculated" setting (not the OTHER_KERNEL_PARM*SOME_VALUE formula) for certain kernel parameters and also the current utilization of that kernel parm. For example:

Parm Settting Utilized Free
---------------------------------
nproc 3000 1234 1766
nfiles 60000 34567 25433
...

Does anyone know of an HP-UX command or freeware utility that will do this?

EMD comes with "resls" which will give me a percent used values for certain parms, but there are others I'd like to monitor as well. The other rub is in getting the current "setting" which can sometimes be a formula coming from sysdef or kmtune. For example, here's the ouput from :

kmtune -q semmns

Parameter Value
=================================
semmns (SEMMNI*2)

Thanks in advance!
2 REPLIES 2
Sundar_7
Honored Contributor

Re: Determining Kernel Parameter Settings and Utilization Values

You can get this information from the kernel and use sar to get the usage information on certain kernel parameters.

# sar -v

# adb -k /stand/vmunix
$>/tmp/somefile
$e
$q
#

refer /tmp/somefile - you wil have the current value of most of the kernel parameters.
Learn What to do ,How to do and more importantly When to do ?
Steve Miller_17
New Member

Re: Determining Kernel Parameter Settings and Utilization Values

# sar -v 1 1

HP-UX XXXXXX B.11.00 U 9000/800 02/15/05

13:46:05 text-sz ov proc-sz ov inod-sz ov file-sz ov
13:46:06 N/A N/A 246/3220 0 4904/27808 0 5338/60010 0

What is inod-sz? This is very limited. There must be a better way. your adb -k /stand/vmunix did not give me any kernel data that I needed. I also tried strings /stand/vmunix | grep -i semmns but it shows the fomula and not the calculated value.