TIME+ column in top command is inaccurate
I just ran the top command to observe the following process
chown -r me:me allMyMusic
And it's been running for about 5 minutes, however the TIME+ column in the top command has reported it as running for about 0:12.10
seconds. It's also incrementing quite slowly.
Has anyone experienced the TIME+ column of the top command incorrectly report the time elapsed?
Solution 1:
The column displays CPU time spent per process rather than real time. I can't see if this is specified in the man page but here is some copy-pastage from about.com:
"TIME Total CPU time the task has used since it started. If cumulative mode is on, this also includes the CPU time used by the process's children which have died. You can set cumulative mode with the S command line option or toggle it with the interactive command S. The header line will then be changed to CTIME. "
Solution 2:
The manual describes the TIME column as:
TIME
Total CPU time the task has used since it started. If cumulative mode is on, this also includes the CPU time used by the process's children which have died. You can set cumulative mode with the S command line option or toggle it with the interactive command S. The header line will then be changed to CTIME.
Solution 3:
to see the Time that a process has taken so far use (as root)
ps aux |grep (processName)
at least on linux should be similar on Mac, but this will show you the start time and the following grep process will give you the current time although you could run 'date' command