HowToForums.net Forum Index HowToForums.net
An Open Source of Knowledge
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HowTo Speedup Boot Time on Linux

 
Post new topic   Reply to topic    HowToForums.net Forum Index -> Linux Tips & Tricks
View previous topic :: View next topic  
Author Message
jacob
Site Admin
Site Admin


Joined: 16 Mar 2006
Posts: 73
Location: USA

PostPosted: Mon Apr 03, 2006 7:43 pm    Post subject: HowTo Speedup Boot Time on Linux Reply with quote

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 !
Wink
_________________
JB
--
"You only see what your eyes want you to see"
Back to top
Display posts from previous:   
Post new topic   Reply to topic    HowToForums.net Forum Index -> Linux Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group