Mac OS X Activity Monitor - what does "CPU Time" tell me?

9

1

What does "CPU Time" tell me about the process? Is it the accumulated time the process has run? It sometimes jumps a few seconds and often nothing happens.

alt text

Andrew J. Brehm

Posted 2010-12-04T16:58:15.887

Reputation: 4 411

Answers

5

Yes, it is "Is it the accumulated time the process has run", and by "run" you mean "actually used the CPU". If you saw it jump and then stagnate, that means the process used the CPU for a few seconds, and then either stopped needing it, or was moved away by the scheduler while other processes used the CPU.

user31752

Posted 2010-12-04T16:58:15.887

Reputation:

Accepting this answer because the other one already got an up-vote. Both explain it well. Ta. – Andrew J. Brehm – 2010-12-06T09:47:02.700

10

You have lots of applications running in "parallel", competing for system resources, such as the CPU. CPU time tells you how long a particular process has actively used the CPU while it's been running.

Imagine a process constantly using 10% CPU, and running for 20 minutes. In that time, it will have used roughly 2 minutes of CPU time. If a process is computationally expensive, CPU time will rise much faster, since more "real time" will be spent by CPU on that particular process.

Daniel Beck

Posted 2010-12-04T16:58:15.887

Reputation: 98 421

So the reason it can go up faster than real time is because more than one core is used? – Andrew J. Brehm – 2010-12-06T09:46:04.777

1@Andrew Yes. You get 1 second CPU time per second real time if you have 100% CPU usage, and of course more, if you're above 100% CPU usage (i.e. multiple cores used for a total sum of "more than one core"). – Daniel Beck – 2010-12-06T10:22:18.793