When I execute topas
for a certain process, in the CPU% column it shows me 43% and jumping to 85%.
When I execute:
"ps aux | grep processName"
The same process is at 5%.
What is more accurate? I also made a loop that similar to the Linux "watch" command, and I see it's at %5.
What's the difference between topas and ps, and who is right?
Output of ps
:
[ttfai231:root]/root>ps aux | head -1; ps aux | sort -rn +2 | head -10
USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND
root 9306548 8.6 1.0 12880 12880 - A 13:35:33 41:20 MYDAEMON
root 1048868 2.0 0.0 448 448 - A 13:22:36 11:50 wait