1844875 Members
2750 Online
110233 Solutions
New Discussion

kernel parameter usage

 
SOLVED
Go to solution
yap
Regular Advisor

kernel parameter usage

Hi,
Is there a way to check current usage of a certain kernel parameter, say for example how to we check how many percents of shmem that has been used ?

regards,
tenghin
11 REPLIES 11
Emiel van Grinsven
Valued Contributor

Re: kernel parameter usage

If I'm not mistaken it depends on the version of your OS.

on 11.00 kmtune can give you some info.
Not sure if this goes for shmem
Cheryl Griffin
Honored Contributor

Re: kernel parameter usage

ipcs -mob allows you to check on shared memory processes.
"Downtime is a Crime."
Alzhy
Honored Contributor

Re: kernel parameter usage

ipcs -a will show you usage of all SysV SHM, SEM, MSG etc...

For kernel tables, "glance -t" if you have them will show a couple.
Hakuna Matata.
yap
Regular Advisor

Re: kernel parameter usage

Hi Emiel,
kmtune only show what is the value set for the parameter, right ? Does it shows the usage?

Hi Cherly, Nelson,

Can any one of you help me explains the output of "ipcs -a" and "ipcs -mob"? Not sure how does the output links to which kernel parameters?

Thank you all for replying my question!

regards
tenghinh
Geoff Wild
Honored Contributor

Re: kernel parameter usage

Here's a cool c program that outputs the following:

# memdetail
Memory Stat total used avail %used
physical 10080.0 8643.7 1436.3 86%
active virtual 9984.1 4385.2 5598.9 44%
active real 6302.8 2832.8 3470.0 45%
memory swap 7697.2 1922.2 5774.9 25%
device swap 26528.0 9696.8 16831.2 37%

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
yap
Regular Advisor

Re: kernel parameter usage

Hi Geoff,
Thanks for the scripts. Actually what I want is to checking the usage for kernel parameters, so that I can monitor it using scripts, before system give error such as number of open file exceeded so on and so fourth. Seems like glance is the answer so far, but I am not sure how to export the data to a file. Any idea ?

regards,
tenghin
Ermin Borovac
Honored Contributor
Solution

Re: kernel parameter usage

Here's one way to do it.

$ cat syntax
print "file lock util", tbl_file_lock_util
print "file table util", tbl_file_table_util
print "msg table util", tbl_msg_table_util
print "proc table util", tbl_proc_table_util
print "sem table util", tbl_sem_table_util
print "shmem table util", tbl_shmem_table_util

$ glance -iterations 2 -adviser_only -syntax syntax > file

Please note that number of iterations has to be at least 2, so you will get two numbers for each metric. For description of metrics please see /opt/perf/paperdocs/mwa/C/methp.txt.


Mic V.
Esteemed Contributor

Re: kernel parameter usage

Glance is what I use. You can install a trial version of Glance from HP's "application" CDs, or at least you could last I looked. I searched software.hp.com but didn't see a download for free/trial version.
What kind of a name is 'Wolverine'?
yap
Regular Advisor

Re: kernel parameter usage

Hi Ermin,
Thanks a lot. It works !.

Hi Vening,
Thanks for the advice.


regards,
tenghin
Saurav_1
Valued Contributor

Re: kernel parameter usage

Hi,

There is a software called kcweb. which uses EMS. it works on 11.11 & above. go to the link given below

http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=Casey

Saurav
Hemanth Gurunath Basrur
Honored Contributor

Re: kernel parameter usage

Hello Tenghin,

kcweb is available on 11.11 and onwards. The command "kcusage" can monitor and send alarm from following tunables:
dbc_max_pct 33 / 50
maxdsiz 67710976 / 1073741824
maxdsiz_64bit 8409088 / 4294967296
maxfiles_lim 84 / 4096
maxssiz 167936 / 8388608
maxssiz_64bit 45056 / 268435456
maxtsiz 3096576 / 100663296
maxtsiz_64bit 663552 / 1073741824
maxuprc 8 / 256
max_thread_proc 172 / 3000
msgmni 2 / 512
msgseg 0 / 8192
msgtql 0 / 1024
nfile 1277 / 65536
nflocks 21 / 4096
ninode 1049 / 4880
nkthread 600 / 8416
nproc 171 / 4200
npty 3 / 60
nstrpty 0 / 60
nstrtel 1 / 60
semmni 26 / 2048
semmns 76 / 4096
shmmax 17904720 / 1073741824
shmmni 9 / 400

Hope this helps.

Regards,
Hemanth