jacob Site Admin


Joined: 16 Mar 2006 Posts: 73 Location: USA
|
Posted: Mon Apr 03, 2006 7:43 pm Post subject: HowTo Speedup Boot Time on Linux |
|
|
Tested on Ubuntu Linux 6.04 (Dapper)
Summary:
apt-get install bootchart
apt-get install bum
reboot
mkdir ~/bootchart
cp -v /var/log/bootchart/*.png ~/bootchart
file browse to ~/bootchart
view the results with an image viewer
optimize afterwards using /usr/bin/bum
Then if you are lazy you can automate it by copying this into a shell:
Code: |
echo "
#!/bin/bash
# run BUM to reduce Boot Time
# apt-get install bum if you do not have it
# /usr/bin/bum
cp -v /var/log/bootchart/*.png ~/bootchart" >~/bootchart/copychart.sh
|
next time just run:
Code: |
sh ~/bootchart/copychart.sh
|
*You could also symlink this to a boot script and a web server if you are running apache for example:
To Symlink to a runlevel so that you can view your bootchart the next time you boot copy this into a shell:
Code: |
sudo ln -s /home/${USER}/bootchart/copychart.sh /etc/rcS.d/S99bootchart
chmod 770 /home/${USER}/bootchart/copychart.sh
|
To Symlink to apache (tested with apache 1.3.34)
Code: |
sudo ln -s /home/${USER}/bootchart/ /var/www/bootchart
|
Then you should be able to browse to http://localhost/bootchart
references:
* http://www.bootchart.org/
* James Hunt, Boot Linux faster. IBM developerWorks
http://www-128.ibm.com/developerworks/linux/library/l-boot.html?ca=dgr-lnxw82-obg-BootFast
* Amit Singh, Making An Operating System Faster. kernelthread.com
http://www.kernelthread.com/mac/apme/optimizations/
* Linux: Boot Time Speedups Through Precaching. KernelTrap.org
http://kerneltrap.org/node/2157
* Boot Process Speedup. Debian Wiki
http://wiki.debian.org/?BootProcessSpeedup
* Faster Boot Process. Ubuntu Wiki
https://wiki.ubuntu.com/FasterBootProcess
* thanks to christooss: http://www.ahacic.5gigs.com/blog/?p=21
enjoy !
 _________________ JB
--
"You only see what your eyes want you to see" |
|