Linux boot times 2-3 times than Windows. Wth?

Hey guys. I keep on installing Linux and have a good times learning lots. I'm not a fan of the boot times though.

*all boot times were found to be consistent
Linux Power On: 70 seconds
Linux Power Off: 13 seconds
Windows Power On: 22 seconds
Windows Power Off: 9 seconds

Linux = Ubuntu 15.1 with GNOME 3 on 850 EVO SSD
Windows = Windows 8.1 on 849 EVO SSD

Linux is supposed to be lightweight/ fast and its on the better SSD. I don't understand what's happening and would appreciate some suggestions. Is this normal? Is there a log I should post for the linux boot to help us work out the problem?

you should look at grub usally they default to 10 seconds or more and you can cut that down to say 2 seconds. Are you running this on a laptop or a desktop because I remember back in 14.04 they had a wired issue if you were connected to wifi it would take a very long time to boot saying network not found where as if you were plugged into a hard line this issue wouldn't occur.

I'm using GRUB 2.02 on my capable desktop. My motherboard has wifi but I haven't enabled it. Doesn't even have a driver yet irrc. I don't use it.

I had an idea. Brb with the results of loading Linux with no peripherals (1 monitor only).

It was shorter: 40 seconds. Minus about 15 seconds for GRUB to autoload and to display no keyboard screen.

Boot log.

Type in a terminal

man systemd-analyze

And go from there. More specifically, you will be interested in

systemd-analyze
systemd-analyze blame

From your log, there is a problem with your keyboard.

1 Like

13.156993] hid-generic 0003:1B1C:1B11.0005: usb_submit_urb(ctrl) failed: -1

It took 10 seconds to confirm one of your usb devices isn't working.

23.207184] hid-generic 0003:1B1C:1B11.0006: timeout initializing reports

It took another 10 seconds probably not being able to record the generic device. Not sure on this one.

33.201389] hid-generic 0003:1B1C:1B11.0007: usb_submit_urb(ctrl) failed: -1

It took another 10 seconds with another failed usb device.

38.532638] usb 1-9: New USB device found, idVendor=040d, idProduct=3417

It took 5 seconds, appears to have located the driver for the device, or the usb powered up, or you plugged something in.

I found this article, and I can see you're using Asus.
http://www.pcl-developers.org/xhci-hcd-I-hate-you-USB-3-0-and-Primesense-Asus-Xtion-td5707949.html

Beyond that it took 3 seconds checking your internet, 5 seconds checking your cores, and 4 seconds on your bluetooth.

With this I would try unplugging all of your usb devices (especially 3.0 [blue ones]), just to see if that works. Then I would try to work around the XHCI using the recommendations in that article.

Hope that helps,

Beam

2 Likes

Try this: https://bbs.archlinux.org/viewtopic.php?id=192969

You should use

usbhid.quirks=0x1B1C:0x1B11:0x20000000

in your case. This should fix some of it.

I had a problem with my keyboard and Linux and this cut my boot times by 25 sec. It's now noticeably faster than windows without doing anything else.

1 Like

Thats actually a misconception from back in the days where it was just a shell on top of a command line. Now that they are trying to make it very user friendly. it can now sometimes be slower

1 Like

GRUB_CMDLINE_LINUX_DEFAULT="usbhid.quirks=0x1B1C:0x1B11:0x20000000 quiet splash"

Thanks martlart. That has cut my boot time from 70s to 40s. Great start.

1 Like