Operating System - HP-UX
1822529 Members
2669 Online
109642 Solutions
New Discussion юеВ

Re: Sorting CPU utilization per process

 
Brian Brown_7
New Member

Sorting CPU utilization per process

What command can you use to sort the processes per CPU utilization from the
highest to the lowest in percent used?
The command on AIX is: ps gu
This will list out processes from highest to lowest on which ones are using the
most of the CPU time in percentage.

Thanks
3 REPLIES 3
Vitek Pepas_1
Occasional Advisor

Re: Sorting CPU utilization per process

Try "ps -el | sort -nr +5 | head" .
It will sort processes by the CPU usage, but not in percentage. If you really
want to use %, modify the output from 'ps' with -o option using %pcpu.
Alan Riggs_1
Regular Advisor

Re: Sorting CPU utilization per process

If you are using teh command interactively, then "top" will sort processes by
cpu utilization.
Randy Mather
Frequent Advisor

Re: Sorting CPU utilization per process

If your company wants to spend the money, the measureware/glance/perfview
openview product(s) are a great tool for performance tuning, process tracking,
etc. Call HP for a 60day demo to justify.