Public bug reported:

During investigation of low-hanging fruit for improving boot speed, we
noticed that we can shave off a large portion of kernel boot time with:

  echo 'MODULES=dep' | sudo tee /etc/initramfs-tools/conf.d/modules-
dep.conf


Before:

$ systemd-analyze 
Startup finished in 1.435s (kernel) + 1.601s (userspace) = 2.936s

-rw-r--r-- 1 root root 7.4M Jun 15 09:32
/boot/initrd.img-4.4.0-24-generic


After:

$ systemd-analyze 
Startup finished in 762ms (kernel) + 1.706s (userspace) = 2.469s

-rw-r--r-- 1 root root 4.2M Jun 15 09:34 initrd.img-4.4.0-24-generic


We don't want to use MODULES=dep by default on real iron (server, desktop) to 
keep portability of root file systems (plugging them into different machines, 
changing hardware, etc.). But this is not relevant for virtual environments 
like QEMU or Hyper-V, so we can remove all these unused drivers from the initrd 
there. This saves time on unpacking the initrd and also avoids some useless hw 
probing.

So we propose that the cloud image build system should add this file.

** Affects: cloud-images
     Importance: Undecided
         Status: New

** Affects: ubuntu
     Importance: Wishlist
         Status: Triaged


** Tags: bootspeed

** Tags added: bootspeed

** Also affects: ubuntu
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1592684

Title:
  Add MODULES=dep initramfs configuration

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/1592684/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to