Boot profiling on the RaspberryPi with bootchart

I have recently been playing with bootchart on my desktop and decided to try it out on the Raspberry Pi.

"Bootchart is a tool for performance analysis and visualization of the GNU/Linux boot process. Resource utilization and process information are collected during the boot process and are later rendered in a PNG, SVG or EPS encoded chart."

Using bootchart on the desktop, one simply has to install (apt-get/yum) and then enable it by substituting bootchart binary for init in '/boot/menu.lst' or '/boot/grub2/grub.cfg' on the kernel command line, by changing:





The process is similar with the Pi, however, due to some issues with both bootchart and the boot process with embedded devices, this can become a little more complicated, see the embedded Linux wiki on the subject. However, the guys over at Raspbian seem to have sorted these issues and as such, installation and setup is very easy. We install with:


sudo apt-get install bootchart


And then add the kernel command line parameters in the '/boot/cmdline.txt' file, simply append the following:


init=/sbin/bootchartd bootchart_init=/sbin/init


Once the setup is complete, restart the pi. Once it has restarted, login, and you should find a file called called 'bootchart.tgz' in your '/var/log' directory, this is the where bootchart stores all of the process information that it has logged during the boot process. This file can then converted to a diagram with the following command:


bootchart /var/log/bootchart.tgz


Once complete, either start a desktop session or ssh the resultant .png file out of there. It should look similar to the following:



Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <img>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Enter the characters shown in the image.
By submitting this form, you accept the Mollom privacy policy.