UNIX Process CPU time
5 pts.
0
Q:
UNIX Process CPU time
hello -

How can I report "current" CPU utilization for a given process on UNIX (AIX)? using ps -ef and grepping the process name and awking the C column (CPU Time) reports CPU util since boot - not current.

Thanks!
ASKED: Apr 14 2008  1:40 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
30 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Have you tried pidstat -p (pid) ? I believe it comes with the sysstat package.

You can also use it in time intervals: pidstat -p (pid) 1

-xCape
Last Answered: Apr 17 2008  8:32 PM GMT by Xcape   30 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0