Results 1 to 7 of 7

Thread: Speed up boot time (dmesg included)

  1. #1
    Join Date
    May 2006
    Location
    Alberta, Canada
    Beans
    639
    Distro
    Ubuntu 15.04 Vivid Vervet

    Question Speed up boot time (dmesg included)

    Here's the skinny: I have installed Ubuntu 14.04.1 onto a brand new ADATA SSD; the /home directory is on a different drive.

    Basic specs: 8 core AMD; 16GB; GForce 450 GTS with proprietary driver.

    Here's my complete dmesg:
    http://paste.ubuntu.com/8185314/

    Points of interest:

    1. Line 713 to 1320 is a whole bunch of this line: [ 1.396226] AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0016 address=0x00000000ce9f9880 flags=0x0010]
      -- It only adds about 1 second to the boot time, so I am not overly concerned at this time; however, when a line is repeated that many times, I can't help but think there's something amiss.
    2. Line 1332 is this line: [ 19.020058] xhci_hcd 0000:02:00.0: can't setup: -110
      -- This adds 17 seconds to the boot time. I have tried turning XHCI off and on in the BIOS with no effect. Knocking 15+ seconds off the boot time is quite significant!
    3. Line 1583 is this line: [ 58.924735] audit_printk_skb: 132 callbacks suppressed
      -- This adds 27 seconds to the boot time. So far, Google searching has led me nowhere. 27 seconds is a very big deal.
    4. I'm not sure where the last line (1587) came from; I'm fairly certain I can resolve that one.


    As always, any and all suggestions are greatly appreciated. My son's Arch install can boot up in something ridiculous like 7 seconds ... I can't let him get away with that!!

    Cheers!

    UPDATE: SOLVED!! All three points above are solved by enabling software IOMMU and disabling BIOS IOMMU. Please review the solution:

    1. In a terminal, run the following command: gksudo gedit /etc/default/grub

    2. Edit the empty quotes in this line to read: GRUB_CMDLINE_LINUX="iommu=soft"

    3. Save changes, and close the file.

    4. Update GRUB with the changes: sudo update-grub

    5. Close the terminal, save all your work, and reboot your machine.

    6. Enter your BIOS/UEFI (most machines want you to hit DEL before the POST) and Disable IOMMU

    7. Save your changes, and restart. Check your dmesg to ensure all of the changes were effective.
    Last edited by em3raldxiii; September 1st, 2014 at 07:25 AM. Reason: SOLVED!
    • Note To Self:gksudo is safer than sudo for graphical apps!

  2. #2
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Please help speed up my boot time (dmesg included)

    Let me take a wild guess...

    Motherboard is a Gigabyte 990FXA-UD3 or similar, maybe?
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  3. #3
    Join Date
    May 2006
    Location
    Alberta, Canada
    Beans
    639
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: Please help speed up my boot time (dmesg included)

    Yes indeed! What gave it away? I can't remember the precise model number, but that's close, I am sure.

  4. #4
    Join Date
    May 2006
    Location
    Alberta, Canada
    Beans
    639
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: Please help speed up my boot time (dmesg included)

    Solved!!!

    Disabling IOMMU in my BIOS and then adding GRUB_CMDLINE_LINUX="iommu=soft" to grub reduced my boot time from 57 seconds to 11 seconds.

    It also stopped the error message AMD-Vi: Event logged [IO_PAGE_FAULT device=02:00.0 domain=0x0016 address=0x00000000ce9f9880 flags=0x0010] from showing up in my dmesg log a zillion times.

    It also stopped the error message audit_printk_skb: 132 callbacks suppressed from adding 27 seconds to the boot time.

    My total dmesg log went from 1609 lines to 1004 lines. This has been the single most effective method of reducing boot time issues for me. The fact that it also fixed my USB 3.0 issue (which I hadn't actually noticed because I always used my USB2.0 ports on the front of the case) is just some delicious icing on the cake.

    Full Details

    1. In a terminal, run the following command: gksudo gedit /etc/default/grub

    2. Edit the empty quotes in this line to read: GRUB_CMDLINE_LINUX="iommu=soft"

    3. Save changes, and close the file.

    4. Update GRUB with the changes: sudo update-grub

    5. Close the terminal, save all your work, and reboot your machine.

    6. Enter your BIOS/UEFI (most machines want you to hit DEL before the POST) and Disable IOMMU

    7. Save your changes, and restart. Check your dmesg to ensure all of the changes were effective.


    This solution came from
    http://ubuntuforums.org/showthread.php?t=2111223
    • Note To Self:gksudo is safer than sudo for graphical apps!

  5. #5
    Join Date
    May 2006
    Location
    Alberta, Canada
    Beans
    639
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: Please help speed up my boot time (dmesg included)

    I should point out that this is also why I could not install Ubuntu 14.04 with my USB stick in the USB3.0 socket. Strangely, partway through the Live boot process, it would stop with an error that it could not find an OS (or something similar). What makes it strange is that clearly the support for the USB3.0 socket stopped during the handover from BIOS to OS. So it may be possible to edit the Live boot process to enable the software IOMMU in order to boot live on a USB3.0 socket.
    • Note To Self:gksudo is safer than sudo for graphical apps!

  6. #6
    Join Date
    Jul 2008
    Location
    The Left Coast of the USA
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Please help speed up my boot time (dmesg included)

    I'm glad you figured it out... and yes, I was pretty sure so I asked.

    Common problem with that series.
    Please read The Forum Rules and The Forum Posting Guidelines

    A thing discovered and kept to oneself must be discovered time and again by others. A thing discovered and shared with others need be discovered only the once.
    This universe is crazy. I'm going back to my own.

  7. #7
    Join Date
    May 2006
    Location
    Alberta, Canada
    Beans
    639
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: Please help speed up my boot time (dmesg included)

    At least it turned out to be a rather minor problem! You'd think this would be something they could fix with a motherboard firmware update.
    • Note To Self:gksudo is safer than sudo for graphical apps!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •