Operating System - HP-UX
1832864 Members
2774 Online
110048 Solutions
New Discussion

how to know "Swap Util" without glance ?

 
yyghp
Super Advisor

how to know "Swap Util" without glance ?

With glance, I can check "Swap Util" like this:

Swap Util U UR R | 49% 49% 49%

but i can't use 'swapinfo' to get this number (49%), any other command I can use for "Swap Util" ?

Thanks!
3 REPLIES 3
Sundar_7
Honored Contributor

Re: how to know "Swap Util" without glance ?


# swapinfo -mt

gives you the swap utilization in percentage. Look at the fifth field in the last row.
Learn What to do ,How to do and more importantly When to do ?
Navin Bhat_2
Trusted Contributor

Re: how to know "Swap Util" without glance ?

If you are looking to get the current average and high you can try using measureware metrics. For current usage swapinfo will report that for you.
Geoff Wild
Honored Contributor

Re: how to know "Swap Util" without glance ?

swapinfo -tam

Also, I use this c program called memdetail:

# memdetail
Memory Stat total used avail %used
physical 10080.0 10033.9 46.1 100%
active virtual 11205.2 4307.8 6897.4 38%
active real 7522.5 2813.3 4709.2 37%
memory swap 7697.1 1701.5 5995.6 22%
device swap 26528.0 10794.8 15733.2 41%


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.