Skip to content
2019 47 min linux.conf.au en YouTube

Stewart Smith https://2019.linux.conf.au/schedule/presentation/105/ Doing kernel and firmware development leaves you rebooting computers a *lot*. Modern computers (especially servers) take too long to boot. Since OpenPOWER systems have a fully open firmware stack (some even with an open BMC stack), we can now attack the problem from *all* angles. This talk covers efforts over the past several years into making POWER based systems boot faster. Is it Linux itself that takes the most time? Firmware? What part of firmware and why? Are the problems for a single socket desktop system different to those from an 8 socket enterprise one? Where have we gotten *worse* and why? Can we go from close to 10 minutes to less than 30 seconds? 10 seconds? At what point are we purely limited by peoples unreasonable expectations of having PCI, RAM, and output on a display? We go on a full stack deep dive into what it takes to cold (and warm) boot (and reboot) a system - or at least any part of that which takes time, as well as how we've measured it. We'll touch on code before the power button works, code from before the first instruction is executed, and code all the way up to being able to load a kernel off disk and beyond. When talking about future improvements, anyone stating "but you're already faster than a bunch of our other servers" will be subtly ssshhed. linux.conf.au is a conference about the Linux operating system, and all aspects of the thriving ecosystem of Free and Open Source Software that has grown up around it. Run since 1999, in a different Australian or New Zealand city each year, by a team of local volunteers, LCA invites more than 500 people to learn from the people who shape the future of Open Source. For more information on the conference see https://linux.conf.au/ #linux.conf.au #linux #foss #opensource

Chapters

  1. 0:00 Intro
  2. 0:34 Premature optimization is the root of all evil
  3. 0:45 Booting is a feature
  4. 2:12 login
  5. 6:09 Before the OS: Petitboot
  6. 8:37 Step 1: Use tricks of the distros
  7. 9:43 Step 2: "Faster" hardware?
  8. 11:21 quiet kernel = many seconds of boot saved
  9. 12:05 [ 4.899386] Run /init as init process
  10. 12:20 2.5 seconds for unxz initramfs!
  11. 16:59 3 = 17
  12. 20:19 MB / 1.75MB/sec = 9.14 seconds
  13. 21:59 PCI?
  14. 23:41 What about BIG systems?
  15. 26:06 Hostboot does on-demand paging...
  16. 26:43 Thrashing before there's RAM!
  17. 27:40 We read firmware from Flash via a daemon on the BMC
  18. 30:45 SBE = "20 second black hole"
  19. 32:10 How long do other computers take?
  20. 33:01 VGA
  21. 34:07 Boot progress on discreet graphics card
  22. 35:52 Fast Reboot
Channel
linux.conf.au
Views
49