Linux: Determine which kernel processes are consuming your CPU
- Install
perf:sudo apt-get install linux-tools-common linux-tools-genericlinux-tools-3.13.0-35-generic(The second package must match your kernel version. (Find with: uname -a) You can also just first install
linux-tools-common andlinux-tools-genericthen type “
perf"to let it tell you which package it needs.) - Record some 10 seconds of backtraces on all your CPUs:
sudo perf record -g -a sleep 10 - Analyse your recording:
perf report
By: Tanius and Nighthawk