Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Unfortunately in the AIX system that I'm uing top is unavailable and has topas. ps -eo pcpu,pid,args | sort -rk1 | head -6 does give the output, but the result doesn't match with the result of topas. Commented Oct 10, 2013 at 8:15
  • @debal Why must the result match topas? Commented Oct 10, 2013 at 8:16
  • both these commands tend to do the same thing, wouldn't it be surprising if the two results don't match? topas is giving a realtime view of the CPU usage, ps -eo pcpu,pid,args | sort -rk1 | head -6 is giving for a particular point of time, so at that instance it only makes sense if both these commands provide the same result. Which is not the case. Commented Oct 10, 2013 at 8:20
  • That's not exactly the contrast point -- ps gives you a weird process lifetime vs. CPU seconds which is not necessarily indicative of what's causing high CPU "recently". topas, like top, gives you the % over a much short reasonable that is intuitively usually what people want. Commented Apr 3, 2017 at 20:39