This script is run instead of init during the boot process after the kernel is loaded and measures the time during this process. It generates nice charts which show when each daemon started and stopped.
You can install app-benchmarks/bootchart2 with the following command:
Then add the daemon to the default runlevel. This is needed to stop the bootchart process and generate the image:
|svg||No||Adds support for SVG (Scalable Vector Graphics)|
To get more verbose information:
How to enable bootchart2 during boot and access the generated charts.
- For any GRUB based bootloader, the kernel commandline can be changed during boot by pressing e in the boot menu, then edit the kernel commandline and press F10 to boot with changed parameters. The following options should be added:
- 'initcall_debug' - append timing data to each initcall
- 'printk.time=y' - append timing data to each message during initialization
- 'init=/sbin/bootchartd' - replace the default command for initialization with /sbin/bootchartd to start our benchmark
- To change the entry static for GRUB2 (bootchart on every boot):
In GRUB2 the parameters can be added to the variable GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub.
Those are the options to view the chart. Per default the images are stored in /var/log/bootchart.tgz as a compressed tarball.
Just running it without any arguments will generate a .png image of the bootchart in the current directory.