Results 1 to 5 of 5

Thread: Slow Userspace Startup

  1. #1
    Join Date
    Jan 2022
    Beans
    4

    Slow Userspace Startup

    For the past couple months I've had an unusually slow startup time. Windows is actually faster for me right now. I'm a little out of my depth on this.
    The results of my systemd-analyze are as follows:

    Code:
    tartup finished in 13.544s (firmware) + 13.901s (loader) + 4.031s (kernel) + 59.183s (userspace) = 1min 30.661s 
    graphical.target reached after 47.670s in userspace
    A list of my snaps:
    Code:
    bare                                  1.0                         5      latest/stable    canonical✓     base
    core18                                20231027                    2812   latest/stable    canonical✓     base
    core20                                20240111                    2182   latest/stable    canonical✓     base
    core22                                20240111                    1122   latest/stable    canonical✓     base
    cups                                  2.4.7-3                     1024   latest/stable    openprinting✓  -
    flutter                               0+git.2149a81               145    latest/stable    flutter-team✓  classic
    gnome-3-28-1804                       3.28.0-19-g98f9e67.98f9e67  198    latest/stable    canonical✓     -
    gnome-3-38-2004                       0+git.efb213a               143    latest/stable    canonical✓     -
    gnome-42-2204                         0+git.510a601               172    latest/stable    canonical✓     -
    gtk-common-themes                     0.1-81-g442e511             1535   latest/stable    canonical✓     -
    kde-frameworks-5-96-qt-5-15-5-core20  5.96.0                      7      latest/stable    kde✓           -
    kde-frameworks-5-core18               5.67.0                      35     latest/stable    kde✓           -
    kf5-5-104-qt-5-15-8-core22            5.104                       9      latest/stable    kde✓           -
    kf5-5-108-qt-5-15-10-core22           5.108                       5      latest/stable    kde✓           -
    kf5-5-111-qt-5-15-11-core22           5.111                       7      latest/stable    kde✓           -
    kf5-5-113-qt-5-15-11-core22           5.113                       1      latest/stable    kde✓           -
    krita                                 5.2.2                       100    latest/stable    krita✓         -
    nightmayr-kf5-qt-5-15-2-core20        5.85.0                      30     latest/stable    nightmayr      -
    snapd                                 2.61.2                      21184  latest/stable    canonical✓     snapd
    software-boutique                     0+git.0fdcecc               57     latest/stable/…  flexiondotorg  classic
    ubuntu-mate-welcome                   22.04.0-d3d4bb1a            726    latest/stable/…  flexiondotorg  classic

    I'm running Ubuntu 20.04.6. CPU is Intel i5-4430 and GPU is NVIDIA GeForce GTX 1060 (I know these are a bit old, but I am skeptical that it's a hardware issue given how well Windows 10 is running.)

    Apologies for any ignorance of this forum's etiqutte.

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,644
    Distro
    Ubuntu

    Re: Slow Userspace Startup

    You can dig a little deeper into the analyze output by running with blame and/or critical-chain
    Code:
    systemd-analyze blame
    systemd-analyze critical-chain
    press down to scroll (or enter key)
    press q to exit
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Jan 2022
    Beans
    4

    Re: Slow Userspace Startup

    Thank you for your reply! The top results from blame are:

    Code:
    7min 3.622s dev-loop36.device                                                 
        52.445s apt-daily.service                                                 
        31.254s man-db.service                                                    
        25.144s snapd.seeded.service                                               
        23.995s snapd.service                                                      
        17.121s dev-sda2.device
    The result from systemd-analyze critical-chain

    Code:
     
    graphical.target @47.670s
    └─multi-user.target @47.670s
      └─snapd.seeded.service @22.525s +25.144s
        └─basic.target @22.254s
          └─sockets.target @22.254s
            └─snapd.socket @22.253s +852us
              └─sysinit.target @22.225s
                └─snapd.apparmor.service @21.319s +905ms
                  └─apparmor.service @20.537s +780ms
                    └─local-fs.target @20.536s
                      └─run-snapd-ns-cups.mnt.mount @38.691s
                        └─run-snapd-ns.mount @32.561s
                          └─local-fs-pre.target @4.896s
                            └─systemd-tmpfiles-setup-dev.service @4.413s +482ms
                              └─systemd-sysusers.service @3.588s +823ms
                                └─systemd-remount-fs.service @3.473s +102ms
                                  └─systemd-journald.socket @3.262s
                                    └─-.mount @3.259s
                                      └─system.slice @3.259s
                                        └─-.slice @3.259s

  4. #4
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Slow Userspace Startup

    I use Kubuntu which is a bit more lightweight that standard Ubuntu.
    And do not install any snaps. And bit older system, that had early M.2 support now has NVMe type SSD. Not really noticeably faster than previous M.2 SSD, but main issue for slow system is between keyboard & chair.

    fred@Z170-jammy:~$ systemd-analyze
    Startup finished in 4.150s (kernel) + 5.574s (userspace) = 9.724s
    graphical.target reached after 5.529s in userspace

    Some settings to review, I started changes with 20.04, in 22.04 and still using changes in 24.04 test install:
    https://ubuntuforums.org/showthread.php?t=2450783
    https://ubuntuforums.org/showthread....9#post13932499
    https://ubuntuforums.org/showthread....6#post14183456
    https://ubuntuforums.org/showthread.php?t=2417453 &



    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  5. #5
    Join Date
    Apr 2008
    Location
    Southern California, USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Slow Userspace Startup

    Quote Originally Posted by oldfred View Post
    I use Kubuntu which is a bit more lightweight that standard Ubuntu.
    And do not install any snaps. And bit older system, that had early M.2 support now has NVMe type SSD. Not really noticeably faster than previous M.2 SSD, but main issue for slow system is between keyboard & chair.

    fred@Z170-jammy:~$ systemd-analyze
    Startup finished in 4.150s (kernel) + 5.574s (userspace) = 9.724s
    graphical.target reached after 5.529s in userspace

    Some settings to review, I started changes with 20.04, in 22.04 and still using changes in 24.04 test install:
    https://ubuntuforums.org/showthread.php?t=2450783
    https://ubuntuforums.org/showthread....9#post13932499
    https://ubuntuforums.org/showthread....6#post14183456
    https://ubuntuforums.org/showthread.php?t=2417453 &
    Thanks oldfred! I applied the systemctl disables on must of them, and shocking how much seconds were removed. I'm guessing most are started after the desktop is up. It doesn't feel as though I'm gaining several seconds, as my desktop appears almost instantly anyway with nvme's that I have.

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
  •