Question

  Asked: Apr 14 2008   1:40 AM GMT
  Asked by: Ntg2000


UNIX Process CPU time


AIX, Unix, Linux, Grep, Awk

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!

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



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
  • AddThis Social Bookmark Button

Browse more Questions and Answers on DataCenter and Linux.

Looking for relevant DataCenter Whitepapers? Visit the SearchDataCenter.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register