Apparently the reason my computer has been taking 2 minutes to boot was a faulty network mount

  • @[email protected]
    link
    fedilink
    92 years ago

    Dang had no idea this was a thing, but this looks very useful! I’ve been meaning to troubleshoot slow startup on one of my servers.

    • @[email protected]
      link
      fedilink
      202 years ago

      The top/1st line is the first service and it cascaded down as each subsequent service starts. Left to right is time elapsed. Bright red line is time to start that service. Shorter is better.

      Does that help?

  • @[email protected]
    link
    fedilink
    452 years ago

    You can use systemd-analyze blame if you want raw numbers:

    This command prints a list of all running units, ordered by the time they took to initialize. This information may be used to optimize boot-up times.

    Good way to see if your systemd also waits 2 minutes for a network connection which already exists but it can’t see it because systemd doesn’t do the networking (lxc containers on proxmox in my case) lol.

    Also see systemd-analyze.

    • @[email protected]
      link
      fedilink
      4
      edit-2
      2 years ago

      systemd also waits 2 minutes for a network connection which already exists but it can’t see it because systemd doesn’t do the networking

      Any way to speed this up? On my system in every boot it waits for network for 30s.

      • @[email protected]
        link
        fedilink
        12 years ago

        In my case i masked the service because like i said, inside the lxc container there is no networking to do, it’s done on the host (proxmox). Note that disabling the service in my case was not enough since it could be invoked by other services, and then you would have to wait again.

        See this for further info and maybe arguments why you shouldn’t do it.

    • Random Dent
      link
      fedilink
      1
      edit-2
      2 years ago

      My main offender is something called updatedb.service, whatever that is.

  • @[email protected]
    link
    fedilink
    272 years ago

    I wrote a long-ish comment in another thread explaining why lots of people don’t like systemd.

    Stuff like this is why people do like systemd.

    The massive, un unixy and complex tools allow for very powerful and somewhat knowledge agnostic approaches to all sorts of problems.

    One of the nicest things about systemds toolset is that it allows a person who relies on finding the problem and googling it to resolve thing much faster than their alternative, learn what’s going on and figure it out.

    I don’t mean that as a pejorative, plenty of computer work is maintenance as opposed to engineering and there’s nothing wrong with that.

  • @[email protected]
    link
    fedilink
    82 years ago

    the only “bottleneck” i currently have is plymouth-quit-wait.service, which takes 3.9 seconds. i can live with that

    • @[email protected]
      link
      fedilink
      92 years ago

      I know you put bottleneck is quotes but just to explain… apparently this service is simply the splash screen that waits on a ready environment. It doesn’t actually delay anything.

  • @[email protected]
    link
    fedilink
    72 years ago

    this is interesting! if i had a two minute boot time, I’d look for ways to figure out what’s going on.

    i remember init messages used to be printed to the console, but nowadays all i get is Manjaro branding. anyone know how to get my console messages back from systemd?

    • ⸻ Ban DHMO 🇦🇺 ⸻
      link
      fedilink
      English
      142 years ago

      If you hit a key when the Manjaro logo is up (or maybe just ESC) it will go away and you’ll get your messages back. Hit it again and you’ll get the logo back. The splash screen is due to a program called Plymouth if you want to remove it permanently

    • Melllvar
      link
      fedilink
      English
      12 years ago

      Sysinternals Process Monitor can do boot logging.

    • qazOP
      link
      fedilink
      22 years ago

      You can use the Windows Performance Recorder to capture the boot time and then use Windows Performance Analyzer to view the results. It should also be able to show the results as a timeline.

  • @[email protected]
    link
    fedilink
    132 years ago

    It tells me that my system boots in 7 seconds. That’s pretty cool, considering that it’s installed on a plain old sata SSD.

    POST, however…

    • ProtonBadger
      link
      fedilink
      22 years ago

      11s on my laptop which i boot once a day, but it is useful for diagnostics. I had something hanging once during boot and it’s pinpointed it right away.

      • @[email protected]
        link
        fedilink
        122 years ago

        If you go far enough, everything is.

        But SVGs are one of the few image types that can be human readable and editable

        • @[email protected]
          link
          fedilink
          182 years ago

          If you go far enough, everything is.

          No, SVG are text files, it’s XML. You can write an SVG file representing a square using only a text editor relatively easily.

        • halva
          link
          fedilink
          92 years ago

          No, not really. Most image formats produce completely unreadable jumbo only meant to be parsed with clever maths.

    • qazOP
      link
      fedilink
      4
      edit-2
      2 years ago

      Thanks for the article, I’ve already spotted a few utilities that can come in useful. I’ve heard a lot of criticism about systemd too, but never really actively used it myself until a few weeks ago. I actually quite like it from what I’ve seen so far.

    • qazOP
      link
      fedilink
      42 years ago

      No, there currently isn’t

      And it’s not as easy to add actually. Note that systemd only keeps units loaded as long as they are referenced by something else that is loaded, are running, have failed, or have a job queued. That means if a service is terminated at shutdown there’s a very good chance it is GC’ed away pretty quickly. Now, while systemd keeps timestamping info around for services that tell us how long a service was running, took to start or took to shut down all that info is lost the instant the unit is GC’ed away…

      Source