sidux.com
Menu

News

Give back
Last 3 Contributions
16-11-2008 10.00
02-11-2008 20.00
31-10-2008 20.00

Donate


Sponsor
hetzner.de

Languages
Preferred language:



Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
CopperCAT
Post subject: Faster bootup  PostPosted: Oct 03, 2008 - 08:42 PM



Joined: Aug 06, 2007
Posts: 11

Status: Offline
Yes, I know sidux boots up quite fast already Smile But after reading the article below, it would be nice to see some ideas/stuff brought over to future sidux releases.

LPC: Booting Linux in five seconds
http://lwn.net/Articles/299483/
Quote:
At the Linux Plumbers Conference Thursday, Arjan van de Ven, Linux developer at Intel and author of PowerTOP, and Auke Kok, another Linux developer at Intel's Open Source Technology Center, demonstrated a Linux system booting in five seconds. The hardware was an Asus EEE PC, which has solid-state storage, and the two developers beat the five second mark with two software loads: one modified Fedora and one modified Moblin. They had to hold up the EEE PC for the audience, since the time required to finish booting was less than the time needed for the projector to sync.
 
 View user's profile Send private message  
Reply with quote Back to top
kelmo
Post subject: RE: Faster bootup  PostPosted: Oct 03, 2008 - 09:33 PM



Joined: Dec 19, 2006
Posts: 1029

Status: Offline
This has already been posted: http://sidux.com/PNphpBB2-viewtopic-t-12838.html
 
 View user's profile Send private message  
Reply with quote Back to top
CopperCAT
Post subject: Re: RE: Faster bootup  PostPosted: Oct 04, 2008 - 07:24 AM



Joined: Aug 06, 2007
Posts: 11

Status: Offline
kelmo wrote:
This has already been posted: http://sidux.com/PNphpBB2-viewtopic-t-12838.html


Ah, just 1 hour difference Very Happy

But this post makes it a feature request then Wink
 
 View user's profile Send private message  
Reply with quote Back to top
kelmo
Post subject: RE: Re: RE: Faster bootup  PostPosted: Oct 05, 2008 - 09:52 AM



Joined: Dec 19, 2006
Posts: 1029

Status: Offline
Okay, it is a good feature to request too, and one I am very interested in. So maybe we can discuss a few things here.

We have already delivered on one change to enhance system boot speed, using dash as /bin/sh:
http://sidux.com/PNphpBB2-viewtopic-t-10547.html

The soc2006 project dedicated to improving Debian boot speed highlighted this as a hotspot:
http://initscripts-ng.alioth.debian.org ... harts.html

The Linux Plumber conference inspired nice discussion from a variety of sources, one of the best summaries of how a distribution can deliver some boot time improvements was made by the Mandriva guys:
http://blog.crozat.net/2008/09/improvin ... linux.html

All of the mentioned sources (soc2006, LPC presentation, Mandriva) use a readahead tool of some description. There are quite a few readahead solutions existing in the wild today, all of them with different pros and cons. This is an area of opportunity for our distribution, but some more in depth discussion and calculations need to take place to decide if a readahead solution is worth the effort, and does it deliver really deliver an advantage. I have some further information on this specific topic, but more on that later.

The soc2006 project also discussed the issue of dynamic initscript sequencing to optimise boot/shutdown, we plan to deliver this in pontos release with insserv activated per default:
http://sidux.com/PNphpBB2-viewtopic-t-12724.html

One of the most important factors for maintaining excellent boot speed is management of installed initscripts. Removing software that installs a boot script and is not used is common sense, but quite often not done for a variety of reasons. One reason which comes immediately to mind, is that the end user may not know if a piece of software is critical to the system or not.

The LSB information in almost all initscripts goes a little way to improving this situation:
http://wiki.debian.org/LSBInitScripts

Scripts with the LSB information often contain a description about the purpose of the script/service (however some have really lousy descriptions, or none at all). A really good service manager is lacking on Debian though, in my opinion.

There is also a lack of API for disabling initscripts, which makes it very difficult to manage scripts installed by packages you would like to use, but do not want the package to do anything at boot time. We have made some work at trying to deliver on this area of opportunity:
http://lists.debian.org/debian-devel/20 ... 00623.html

Unfortunately, after proposing that solution to the Debian Developers, there is no clear answer if it is the correct solution, though everyone agrees that a solution is needed (and has been needed for years already).
 
 View user's profile Send private message  
Reply with quote Back to top
kelmo
Post subject: RE: Re: RE: Faster bootup  PostPosted: Oct 05, 2008 - 09:53 AM



Joined: Dec 19, 2006
Posts: 1029

Status: Offline
Can anyone help identify other areas of opportunity in the boot process that are realistically deliverable?
 
 View user's profile Send private message  
Reply with quote Back to top
CopperCAT
Post subject:   PostPosted: Oct 05, 2008 - 11:02 AM



Joined: Aug 06, 2007
Posts: 11

Status: Offline
If I understand it correctly, the use of an initrd or initramfs also slows down the booting of the kernel, while not adding a lot of additional "compatibility". Would it not be an option to drop initramfs or make it optional at install?
 
 View user's profile Send private message  
Reply with quote Back to top
kelmo
Post subject:   PostPosted: Oct 05, 2008 - 05:34 PM



Joined: Dec 19, 2006
Posts: 1029

Status: Offline
You really _must_ use an initramfs if your Linux kernel configuration is modular, which it is unless you hand craft your own image for your specific hardware set (and build in all required support).

The size of the initramfs can be reduced dramatically, and reducing its size might shave up to 1 second from your boot time (roughly), but you lose a lot of benefits. For example, a universal initramfs allows you to make wholesale changes to local hardware configuration without rendering the system unbootable.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2006-2008 by sidux e.V., 10407 Berlin, Kniprodestr. 104. sidux e.V. is a Berlin, Germany based non-profit foundation. Consult Impressum and Legal Terms for details. sidux™ is Free Software released under the GNU/GPL license and other compatible licenses.
powered by Zikula & Zafenio