Linux Kernel/Boot Time: Difference between revisions

From Yocto Project
Jump to navigationJump to search
No edit summary
No edit summary
Line 21: Line 21:


== Bootgraph Results ==
== Bootgraph Results ==
=== Initial State ===
=== Initial State: 2.6.34 (UP), USB ===
[[File:n450-2.6.34-usb.png|400px|thumb|right]]
* Yocto 1.0
* Yocto 1.0
* Intel N-450
* Intel N-450
Line 27: Line 28:
* linux-yocto 2.6.34
* linux-yocto 2.6.34
* Total boot time: 28.72s
* Total boot time: 28.72s
** Some 15 seconds is due to the default BIOS
* Bootgraph logged 12s
* Bootgraph logged 12s


=== 2.6.34 (SMT), SSD ===
[[File:n450-2.6.34-smt-ssd.png|400px|thumb|right]]
* Yocto 1.0
* Intel N-450
* SATA SSD boot media
* linux-yocto 2.6.34 w/ SMT
* Bootgraph logged 6.32s
** SSD saves some 6 seconds
=== 2.6.34 (SMT), SSD, NOKMS ===
[[File:n450-2.6.34-smt-ssd-nokms.png|400px|thumb|right]]
* Yocto 1.0
* Intel N-450
* SATA SSD boot media
* Boot parameters: i915.modeset=0
* linux-yocto 2.6.34 w/ SMT
* Bootgraph logged 3.98s
** NOKMS saves some 2.36s




== Journal ==
== Notes ==
=== Discussion w/ Arjan ===
=== Discussion w/ Arjan ===
* Establish a budget
* Establish a budget

Revision as of 17:29, 14 June 2011

Vision

Provide an example layer which demonstrates how to minimize the boot-time of the Intel N-450 Development platform. Using a core-image-minimal image, boot to a login prompt in 2.0 seconds.

Design

The current linux-yocto kernel configuration does not focus on minimal boot time. Eliminating necessary Linux kernel config options will reduce the image size as well as the boot time. Various boot parameters can also have a significant impact. Identify specific items through exploration of:

  • linux/scripts/bootgraph.pl
  • comparison with MeeGo .config
  • discussions with MeeGo leads
  • survey of talks and papers on the subject
  • research coreboot and other BIOS replacements for the N450

The boot-time budget follows:

  • BIOS: 0.5s
  • Kernel + Modules: 1s
  • Init to prompt: 0.5s

Resources

Bootgraph Results

Initial State: 2.6.34 (UP), USB

N450-2.6.34-usb.png
  • Yocto 1.0
  • Intel N-450
  • USB flash boot media
  • linux-yocto 2.6.34
  • Total boot time: 28.72s
    • Some 15 seconds is due to the default BIOS
  • Bootgraph logged 12s

2.6.34 (SMT), SSD

N450-2.6.34-smt-ssd.png
  • Yocto 1.0
  • Intel N-450
  • SATA SSD boot media
  • linux-yocto 2.6.34 w/ SMT
  • Bootgraph logged 6.32s
    • SSD saves some 6 seconds

2.6.34 (SMT), SSD, NOKMS

N450-2.6.34-smt-ssd-nokms.png
  • Yocto 1.0
  • Intel N-450
  • SATA SSD boot media
  • Boot parameters: i915.modeset=0
  • linux-yocto 2.6.34 w/ SMT
  • Bootgraph logged 3.98s
    • NOKMS saves some 2.36s


Notes

Discussion w/ Arjan

  • Establish a budget
  • Things to look at first
    • boot media
      • use SSD or MMC over Standard IO
      • avoid USB and spinning media
    • SATA
      • restrict ports to those being used
    • Kernel Mode Switching (KMS)
    • Eliminate UDEV