Ubuntu – How to diagnose what process is using CPU time

cpucpu loadfan

It's a "problem" that i have since 11.10, now I've upgraded to 12.04 (fresh install).
Even while ondemand governor is set, and the computer is idle, fan goes on and doesn't want to shut down.

Images below:



Best Answer

Open up the terminal, do a

sudo apt-get install dstat

and type in:

dstat -c -y -l --proc-count --top-cpu

dstat is a system monitoring tool (like vmstat) and will show you the processes which consume the most CPU resources.