Operating System - HP-UX
1754311 Members
3052 Online
108813 Solutions
New Discussion

Script to to find CPU and memory utilization.

 
SOLVED
Go to solution
Hakki Aydin Ucar
Honored Contributor

Re: Script to to find CPU and memory utilization.

Use 'swapinfo -tm' to get a complete/total picture of swap usage. Pay particular attention to the total line as it indicates how much swap space has been actually reserved for swap. When this percentage gets near 100%, processes will not start up (unable to fork process) and new shared memory segments can not be created.
swapinfo -tm example and explanation :

Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 288 83 205 29% 0 - 1 /dev/vg00/lvol2
reserve - 141 -141
memory 102 41 61 40%
total 390 265 125 68% - 0 -

o dev line(s):
+ are the actual physical swap device(s)
o reserve line(s)
+ indicate how much of the swap device(s) has(have) been set aside for memory should it need to be swapped.
o memory line:
+ indicative of how much of pseudo-swap has been reserved
o total line:
+ the PCT USED value shown in the total line indicates how much swap space has been actually reserved for swap. When this percentage gets near 100%, processes will not start up (unable to fork process) and new shared memory segments can not be created.
jeevarajkn
Frequent Advisor

Re: Script to to find CPU and memory utilization.

Dear Guru's


Thanks fopr your repply.Iam closing this query.