30 Second Startup
Make Fedora boot and shut down faster. The goal is to be at the login screen in 30 seconds and be as fast as possible after the login (gnome-session).
- Targeted release: Fedora 10
- Last updated: 2008-09-07
- Percentage of completion: 95%
- readahead saves 10% boot time from init starting to gdm
- rhgb is plymouth now
- gdm not yet tackled
With the switch to upstart we have a lot of necessary pieces in place now to cut down on initscript bloat and use dependencies to parallelize the boot.
Some earlier comments on the problems related to device enumeration are discussed here
Harald has also compared bootcharts of several distributions .
Improvements with a modified readahead setup possible.
Benefit to Fedora
A faster boot makes for happy users.
Possibly involves all packages that are involved in the boot sequence, udev, module-init-tools, kernel, nash, upstart, readahead.
- install bootchart
- modify /sbin/bootchartd to exit on "firefox" not "gdm kdm" etc. and sleep 10-20 seconds after that
- reboot, login, start firefox, close firefox
- measure time until closing of firefox
Turn on computer, wait 30 seconds, select user on login screen.
- no regression in other parts of the system
This is an incremental feature. If we don't quite get down to 30 seconds, too bad, we can just take whatever improvements we have. If it turns out that readahead cannot be fixed to consistently improve boot speed, we will simply not reenable it.
TBD, when we have a working readahead solution.
Parallel to the boot process, readahead is now started. Udev may appear to be slower, but in fact readahead reads all disk buffers needed for the boot process in the background and shortens the whole boot process. Creation of the readahead file list will be done weekly and can be triggered manually by touching "/.readahead".