September 18

Linux: Determine which kernel processes are consuming your CPU

  1. Install perf:
    sudo apt-get install linux-tools-common linux-tools-generic linux-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 and linux-tools-generic

    then type “perf" to let it tell you which package it needs.)

  2. Record some 10 seconds of backtraces on all your CPUs:
    sudo perf record -g -a sleep 10
  3. Analyse your recording:
    perf report

By: Tanius and Nighthawk

Copyright 2021. All rights reserved.

Posted September 18, 2014 by Timothy Conrad in category "Linux

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. Securely email me using - PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B