Operating System - HP-UX
1834709 Members
2589 Online
110069 Solutions
New Discussion

Re: show % of use or % free of CPU (that he is not top)

 
SOLVED
Go to solution
Daniel Caçador
Regular Advisor

show % of use or % free of CPU (that he is not top)

Exists some command to show % of use or % free of CPU (that he is not top)?


Thanks!
5 REPLIES 5
RAC_1
Honored Contributor
Solution

Re: show % of use or % free of CPU (that he is not top)

sar -uM 1 5
glance -a
There is no substitute to HARDWORK
Robert-Jan Goossens_1
Honored Contributor

Re: show % of use or % free of CPU (that he is not top)

Hi Daniel,

# UNIX95= ps -eo pcpu,pid,args

Regards,
Robert-Jan
James R. Ferguson
Acclaimed Contributor

Re: show % of use or % free of CPU (that he is not top)

Hi Daniel:

If you want this on a per-process basis:

# UNIX95= ps -ef -o pid= -o pcpu= -o args=|sort -bk2nr|more

UNIX95= ps -ef -o pid= -o time= -o args=|sort -bk2r|more

See the manpages for more details.

Regards!

...JRF...
Antonio Cardoso_1
Trusted Contributor

Re: show % of use or % free of CPU (that he is not top)

also

export UNIX95=1
ps -ef -o pid,pcpu,vsz,stime,comm,args
Daniel Caçador
Regular Advisor

Re: show % of use or % free of CPU (that he is not top)

Thanks!