We had a thread started on boot times in the upcomming release of Fedora Core 5. So I decided to create a new thead on how to install Bootchart and generate your own bootchart.
If you have issues installing the bootchart software PLEASE create a thread labeled unable to install Bootchart. or if one exists post your comments there.
Step 1 Obtain the software
To start create a folder in your home folder named bchart Next download the bootchart-0.9.tar.bz2 from BootChart Download If you would like to try to build the rpm then go ahead but it requires a bunch of useless packages most users will not need ( unless you develop in java)
Save the download to your bchart folder. If firefox saves the files to your desktop open your home folder in Nautilus or what file browser you use and drag the download to the bchart folder
Step 2
Now open a terminal window
Code:
cd /home/yourusername/bchart
next lets extract the archive
Now once it is done, you'll have a bootchart-0.9 folder and the archive you just extracted.
Now we need to switch to root since the install script has to write to the file system
now run the installer
Now When I installed it I ddn't have grubby installed and the install script bawked at this. This is completly ok. the installer will still install the file to correct location.
if you issue this command
you should see boochartd
also confirm it is in /etc/
Code:
cat /etc/bootchartd.conf
you will get the contents of the file printed to the terminal window.
If you get the error like so
[root@notebook bootchart-0.9]# ./install.sh
./install.sh: line 15: grubby: command not found
./install.sh: line 16: grubby: command not found
./install.sh: line 19: grubby: command not found
./install.sh: line 20: grubby: command not found
please continue to step 3
Step 3
*** PLEASE DO NOT COPY & PASTE FROM BELOW!!! This is just a example of what your looking AT *****
We need to edit your grub.conf
while your still root
Code:
gedit /boot/grub/grub.conf
Look for this section ( Please Note you may have rhgb after the =/ secion in your Grub Conf)
title Fedora Core (2.6.14-1.1653_FC4)
root (hd0,5)
kernel /vmlinuz-2.6.14-1.1653_FC4 ro root=LABEL=/
initrd /initrd-2.6.14-1.1653_FC4.img
Now what you want to do is copy this section and paste it above the "title Fedora Core... "
so that you now have 2 entries for the same kernel
so you should have something like so
hiddenmenu
title Fedora Core Boot Chart(2.6.14-1.1653_FC4)
root (hd0,5)
kernel /vmlinuz-2.6.14-1.1653_FC4 ro root=LABEL=/
initrd /initrd-2.6.14-1.1653_FC4.img
title Fedora Core (2.6.14-1.1653_FC4)
root (hd0,5)
kernel /vmlinuz-2.6.14-1.1653_FC4 ro root=LABEL=/
initrd /initrd-2.6.14-1.1653_FC4.img
So now we need to edit the first kernel section by adding the bootchartd command so when the system boots it records the processes.
add the follwoing to the =/ of the top kernel line
Code:
init=/sbin/bootchartd
So you have the following ( the section in blue I added to mine so I could tell the difference between the 2 )
title Fedora Core
Boot Chart(2.6.14-1.1653_FC4)
root (hd0,5)
kernel /vmlinuz-2.6.14-1.1653_FC4 ro root=LABEL=/
init=/sbin/bootchartd
initrd /initrd-2.6.14-1.1653_FC4.img
title Fedora Core (2.6.14-1.1653_FC4)
root (hd0,5)
kernel /vmlinuz-2.6.14-1.1653_FC4 ro root=LABEL=/
initrd /initrd-2.6.14-1.1653_FC4.img
Once you have your grub.conf set up correct, click save in gedit and close the file. confirm the changes with
Code:
cat /boot/grub/grub.conf
you should see your complete grub.conf and the changes you made.
Now reboot your system
Once you log back in open firefox and browse to this site
Render Boot Chart Here
scroll to the bottom of the page and click the browse button. Click Filesystem then in the right window click var then click log You should see a file in there name bootchart.tar.tgz See image below
Once the chart is rendered you can save the png file to your desktop. or where ever firefos saves your downloads. All you now need to do is open it up in your favorite image editor or image viewer and scroll to the top left corner to see how long it takes for your system to boot.
Attached is 2 charts from my notebook one is from a fresh install andthe other is after I made chages
if you ca nthink of any process that starts that should NOT be set to run for a generic install please send mt a PM so i can update DefaultServices wiki page
Happy Booting !