LWN.net Logo

LPC: Booting Linux in five seconds

LPC: Booting Linux in five seconds

Posted Sep 22, 2008 19:25 UTC (Mon) by flewellyn (subscriber, #5047)
In reply to: LPC: Booting Linux in five seconds by jzbiciak
Parent article: LPC: Booting Linux in five seconds

I suppose so. Even so, I'm wondering "what about regular runtime performance? Any benefit there?"


(Log in to post comments)

LPC: Booting Linux in five seconds

Posted Sep 22, 2008 19:55 UTC (Mon) by Yorick (subscriber, #19241) [Link]

Any serious effort to bring down boot times will inevitably scrutinise each and every daemon and service started and likely do away with a few less essential ones. As a side-effect, that may very well make a system use less resources and be more stable and secure once the system has been brought up.

I also believe that faster boots give us happier and more productive kernel hackers, because they reboot more often than anyone else. That alone makes it worth the trouble.

LPC: Booting Linux in five seconds

Posted Sep 23, 2008 7:40 UTC (Tue) by michaeljt (subscriber, #39183) [Link]

> Any serious effort to bring down boot times will inevitably scrutinise
> each and every daemon and service started and likely do away with a few
> less essential ones.

Or profile how much users of a system use a particular service and start it by default if they use it a lot, or on demand if they use it occasionally.

LPC: Booting Linux in five seconds

Posted Sep 22, 2008 19:58 UTC (Mon) by jzbiciak (✭ supporter ✭, #5246) [Link]

Probably not, as it stands.

I suppose a complex application that takes a long time to start in its own right (OpenOffice, I'm looking at you) might take some hints from the methodology and try to parallelize and optimize its startup tasks. I'm not sure how far you get with a userspace app like that though.

I suppose if you have an embedded device that actually gets powered off and on semi-regularly (media player, cell phone), this work directly impacts the user experience. Those devices could actually boot from scratch rather than dumping state to flash for suspend when they power off. That extends flash lifetime, and it makes startup and shutdown quicker.

My current cellphone takes a good 15 seconds to boot. Booting in 5 would be a noticeable improvement. Granted, I only shut it off when I'm flying somewhere or when the battery gets obnoxiously low, but still, it could make you a favorite with the jet setters. Seeing as there's already interesting Linux distributions running on OpenMoko, I'm sure there's plenty of opportunity for cross-pollination. (Check out this one: http://mobile.slashdot.org/article.pl?sid=08/09/21/1730256 )

LPC: Booting Linux in five seconds

Posted Sep 22, 2008 20:10 UTC (Mon) by flewellyn (subscriber, #5047) [Link]

Of course, I didn't even think of the impact for an embedded environment. You're right, there's a lot of value there for devices that need to turn on and off regularly.

LPC: Booting Linux in five seconds

Posted Sep 23, 2008 3:26 UTC (Tue) by mrshiny (subscriber, #4266) [Link]

Also, suspending is not the same as booting when it comes to your
applications. I can suspend my notebook by closing its lid, and when I
come back every single program is exactly where I left it (except for
those that depend on network sockets). This is way better than shutting
down and rebooting; even apps that support session management don't do
that well compared to a nice suspend/resume.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds