Comment 4 for bug 1615751

Revision history for this message
Scott Moser (smoser) wrote : Re: kernel boot (not userspace) on azure takes > 5 minutes

I just launched 1 instance of xenial and of trusty with the same user-data, both of these were 'Standard_D1_v2' type. They do not seem to have such bad performance. trusty does not have systemd-analyze, but i've included 'dmesg | grep sda1.*mounted' for each, which shows quite a difference to the point where sda1 is mounted (and then re-mounted rw).

I've also included the initramfs-tools version as xenial and yakkety are actually running the same kernel version. So something else is at play here.

# Trusty

uptime: 49.59 seconds
you launched me at: Mon, 22 Aug 2016 18:24:45 +0000
it is now : Mon, 22 Aug 2016 18:27:08 +0000
kernel booted : Mon, 22 Aug 2016 18:26:19 +0000
launch to kernel boot: 94 seconds
launch to user-data : 143 seconds

$ dmesg | grep sda1.*mounted
[ 3.860600] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 6.797368] EXT4-fs (sda1): re-mounted. Opts: discard

$ uname -r
4.4.0-34-generic

$ dpkg-query --show initramfs-tools
initramfs-tools 0.103ubuntu4.4

# xenial
uptime: 47.52 seconds
you launched me at: Mon, 22 Aug 2016 18:23:50 +0000
it is now : Mon, 22 Aug 2016 18:26:34 +0000
kernel booted : Mon, 22 Aug 2016 18:25:47 +0000
launch to kernel boot: 117 seconds
launch to user-data : 164 seconds
$ systemd-analyze
Startup finished in 7.597s (kernel) + 40.875s (userspace) = 48.472s

$ dmesg | grep sda1.*mounted
[ 5.795233] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 12.130461] EXT4-fs (sda1): re-mounted. Opts: discard

$ uname -r
4.4.0-34-generic
$ dpkg-query --show initramfs-tools
initramfs-tools 0.122ubuntu8.1

# yakkety
$ dmesg | grep sda1.*mounted[ 305.882955] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 306.921043] EXT4-fs (sda1): re-mounted. Opts: discard

$ uname -r
4.4.0-34-generic
$ dpkg-query --show initramfs-tools
initramfs-tools 0.125ubuntu2