Myself and @kamalmostafa spoke and the issue is not obvious especially
as linux-azure is installed in the base image too which does not exhibit
the issue.

Although not obvious @kamalmostafa did suspect the issue to lie
somewhere with random number generation and a related package/kernel
patch.

One line of investigation is to check the package diff between the
minimal image with initramfs-tools installed and the image without that
installed. That diff is @ https://pastebin.canonical.com/p/7hJTSQHbyD/

Another possibility is to check the package diff between base and
minimal. That diff is @ https://pastebin.canonical.com/p/B9m7GbsFhs/

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-azure in Ubuntu.
https://bugs.launchpad.net/bugs/1795017

Title:
  linux-azure on cosmic minimal image boot speed

Status in linux-azure package in Ubuntu:
  New

Bug description:
  Hi,

  We're planning to share a new Cosmic minimal image for Azure including
  the linux-azure custom kernel.

  I have found boot speed increase from ~55s in non minimal image to
  over 6mins for minimal image.

  I have gathered boot log, systemd logs and cloud-init logs for this
  instance @ https://private-fileshare.canonical.com/~philroche/azure-
  cosmic-20180927/minimal/. You can see the same logs for the non
  minimal image @ https://private-fileshare.canonical.com/~philroche
  /azure-cosmic-20180927/base

  Most of the time seems to be spent in crng and "task swapper/0:1" (?)

  [    5.774760] sd 3:0:0:0: [sdc] Attached SCSI disk
  [   71.388989] random: crng init done
  [  242.656057] INFO: task swapper/0:1 blocked for more than 120 seconds.
  [  242.688434]       Not tainted 4.15.0-1018-azure #18-Ubuntu

  Source: https://private-fileshare.canonical.com/~philroche/azure-
  cosmic-20180927/minimal/iengal3seeSee-vm-imagedebug-boot.log

  Please let me know if you need any more information or would like me
  to launch an instance for testing.

  
  I understand that minimal images are intended to boot without initramfs but I 
did install initramfs-tools in another test image which did result in much 
better boot times.

  See https://private-fileshare.canonical.com/~philroche/azure-
  cosmic-20180928/ for logs.

  Minimal image boot time 48.784s

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1795017/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to