LWN.net Logo

LPC: Booting Linux in five seconds

LPC: Booting Linux in five seconds

Posted Sep 25, 2008 8:34 UTC (Thu) by phillemann (guest, #49231)
Parent article: LPC: Booting Linux in five seconds

I don't quite unterstand what the "desktop environment" means in the context of boot time. It obviously gets 2 seconds in the 5 second boot time, so a large part.

Is it the initialization of xfce (or even KDE which should take even longer)? If so, using a window manager like, fluxbox/ion/xmonad could save even more time.


(Log in to post comments)

LPC: Booting Linux in five seconds

Posted Sep 25, 2008 14:24 UTC (Thu) by nix (subscriber, #2304) [Link]

As an example, X on my rather old 2001-vintage system takes seven seconds
from typing 'startx' through to the display stabilizing and .Xinitrc
beginning to be executed.

That's a *long* time to change video mode.

LPC: Booting Linux in five seconds

Posted Sep 25, 2008 14:56 UTC (Thu) by arjan (subscriber, #36785) [Link]

It's from the start of the desktop environment (in our case XFCE) until it's done (in the "screen painted, cpu and disk idle" sense).

Yes 2 seconds is very generous and more minimalistic desktops can go much faster than that. We decided to pick XFCE since, well, first of all, we could hack the code as kernel guys, and second, it has a feature set that at least is close to what the "big guys" do (which code we didn't feel we could hack as kernel guys).

Can XFCE go faster than 2 seconds? probably. We met our budget for it after one small patch so we stopped working on it and focused on other parts instead.

This may sound weird but our project really was about booting in 5 seconds, not about booting fast or fastest ;-).... we engineered it budget driven, which really helped us to spend our time effectively, specifically, on those parts of the boot process that were over budget, rather than getting bogged down in one part and spend 3 seeks making it go from 2.0 to 1.9 seconds.

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