Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: The 3min and 26sec of Terror: (L)ubuntu 20.04 Boot Time

  1. #1
    Join Date
    Nov 2015
    Location
    Brazil,RJ
    Beans
    42
    Distro
    Xubuntu

    Wink The 3min and 26sec of Terror: (L)ubuntu 20.04 Boot Time

    Don't you believe ? Check this out: https://youtu.be/of6qpvQWGj0

    Yes and yes I did.

    I've read all posts about slow booting time, but as I am not an expert in linux or even ubuntu, so I need some advice from the community.
    is there anything wrong ?

    before Lubuntu 20.04 this system booted Win10 in approximately 2:30-2:35 min

    ----------------------


    My system: Core 2 duo, 4 GB RAM, 140Gb HDD.

    Code:
    dell@dell-inspiron1525:~$ systemd-analyze time
    Startup finished in 7.220s (kernel) + 1min 15.729s (userspace) = 1min 22.950s 
    graphical.target reached after 1min 15.709s in userspace
    and


    Code:
    dell@dell-inspiron1525:~$ systemd-analyze blame
    35.220s systemd-journal-flush.service                  
    29.611s snapd.service                                  
    24.969s networkd-dispatcher.service                    
    22.286s accounts-daemon.service                        
    21.948s dev-sda1.device                                
    19.371s NetworkManager-wait-online.service             
    17.901s udisks2.service                                
    12.847s dev-loop0.device                               
    12.840s dev-loop3.device                               
    12.242s dev-loop6.device                               
    11.690s polkit.service                                 
    11.172s NetworkManager.service                         
    10.705s dev-loop5.device                               
    10.643s avahi-daemon.service                           
    10.612s dundee.service                                 
    10.575s ModemManager.service                           
    10.574s ofono.service                                  
    10.550s dev-loop4.device                               
    10.246s apparmor.service                               
     9.410s thermald.service                               
     9.402s wpa_supplicant.service                         
     9.398s systemd-logind.service                         
     9.372s dev-loop2.device                               
     7.811s gpu-manager.service                            
     6.007s dev-loop1.device                               
     5.827s apport.service                                 
     5.623s systemd-resolved.service                       
     5.232s grub-common.service                            
     4.904s rsyslog.service                                
     4.551s e2scrub_reap.service                           
     3.517s systemd-udevd.service                          
     2.988s systemd-rfkill.service                         
     2.792s snapd.apparmor.service                         
     2.150s lm-sensors.service                             
     2.127s grub-initrd-fallback.service                   
     2.090s setvtrgb.service                               
     1.859s systemd-modules-load.service                   
     1.523s pppd-dns.service                               
     1.324s systemd-sysusers.service                       
     1.281s alsa-restore.service                           
     1.208s snapd.seeded.service                           
     1.021s systemd-random-seed.service                    
      883ms snap-core-10823.mount                          
      815ms bluetooth.service                              
      806ms snap-gtk2\x2dcommon\x2dthemes-13.mount         
      788ms keyboard-setup.service                         
      779ms systemd-tmpfiles-setup.service                 
      771ms systemd-tmpfiles-setup-dev.service             
      763ms systemd-sysctl.service                         
      753ms snap-p7zip\x2ddesktop-220.mount                
      737ms upower.service                                 
      711ms kerneloops.service                             
      707ms systemd-journald.service                       
      673ms systemd-backlight@backlight:acpi_video0.service
      666ms sddm.service                                   
      557ms systemd-timesyncd.service                      
      550ms snap-gtk\x2dcommon\x2dthemes-1514.mount        
      524ms systemd-udev-trigger.service                   
      485ms snap-snapd-11036.mount                         
      398ms ufw.service                                    
      380ms snap-core20-904.mount                          
      375ms snap-core18-1988.mount                         
      340ms dev-hugepages.mount                            
      339ms dev-mqueue.mount                               
      337ms sys-kernel-debug.mount                         
      336ms sys-kernel-tracing.mount                       
      332ms blk-availability.service                       
      329ms kmod-static-nodes.service                      
      325ms lvm2-monitor.service                           
      292ms user@1000.service                              
      290ms systemd-update-utmp.service                    
      290ms console-setup.service                          
      243ms plymouth-quit.service                          
      187ms systemd-remount-fs.service                     
      107ms systemd-user-sessions.service                  
      102ms systemd-tmpfiles-clean.service                 
       98ms hddtemp.service                                
       66ms rtkit-daemon.service                           
       38ms user-runtime-dir@1000.service                  
       20ms plymouth-start.service                         
       13ms systemd-update-utmp-runlevel.service           
       13ms plymouth-read-write.service                    
       10ms sys-kernel-config.mount                        
        7ms sys-fs-fuse-connections.mount                  
        3ms snapd.socket

    and

    Code:
    dell@dell-inspiron1525:~$ systemd-analyze critical-chain
    The time when unit became active or started is printed after the "@" character.
    The time the unit took to start is printed after the "+" character.
    
    graphical.target @1min 15.709s
    └─multi-user.target @1min 15.709s
      └─snapd.seeded.service @1min 14.499s +1.208s
        └─snapd.service @44.884s +29.611s
          └─basic.target @43.285s
            └─sockets.target @43.285s
              └─snapd.socket @43.281s +3ms
                └─sysinit.target @43.171s
                  └─systemd-timesyncd.service @42.614s +557ms
                    └─systemd-tmpfiles-setup.service @41.575s +779ms
                      └─systemd-journal-flush.service @6.352s +35.220s
                        └─systemd-journald.service @5.626s +707ms
                          └─systemd-journald.socket @5.613s
                            └─-.mount @5.605s
                              └─system.slice @5.605s
                                └─-.slice @5.605s
    Code:
    dell@dell-inspiron1525:~$ uname -r
    5.8.0-43-generic

    and

    Code:
    dell@dell-inspiron1525:~$ free -m
                  total        used        free      shared  buff/cache   available
    Mem:           3926        1344        1253         169        1328        2178
    Swap:             0           0           0
    dell@dell-inspiron1525:~$



    Did I miss something ?

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: The 3min and 26sec of Terror: (L)ubuntu 20.04 Boot Time

    I prefer standard apps, not snaps.
    But it seems that Software Center uses snaps, now? I only use synaptic or command line.
    Snaps are not quite as slow as before, but still become part of boot process.

    See if some of these apply.
    https://ubuntuforums.org/showthread.php?t=2450783
    https://ubuntuforums.org/showthread....9#post13932499
    https://ubuntuforums.org/showthread.php?t=2417453 &
    https://ubuntuforums.org/showthread....2#post13857392 &
    https://www.dedoimedo.com/computers/...slow-boot.html
    https://askmeaboutlinux.com/2019/11/...-boots-slowly/
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,300

    Re: The 3min and 26sec of Terror: (L)ubuntu 20.04 Boot Time

    Boot times are so 20th Century, if you use Suspend.

  4. #4
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    4,896

    Re: The 3min and 26sec of Terror: (L)ubuntu 20.04 Boot Time

    My system: Core 2 duo, 4 GB RAM, 140Gb HDD.
    Your 4200 rpm laptop HDD has a lot to do wth how fast it boots. I have a direct comparison: booting first to the OS on 7200 rpm HDD, took 1 min 9 sec from grub screen to log in screen. Booting the same OS version, but installed on an SSD in the same computer, took 16 seconds measured the same way.

    If you want to improve your boot time, install an SSD in that laptop.

  5. #5
    Join Date
    Nov 2015
    Location
    Brazil,RJ
    Beans
    42
    Distro
    Xubuntu

    Re: The 3min and 26sec of Terror: (L)ubuntu 20.04 Boot Time

    Yeah, I agree with all of you, but something is strange.

    How can Win10 is faster than Lubuntu ?

    About snap: I read that we should not use snap and I removed some snap packages I had installed. But for my surprise, it seems that some other packages are installed by default in Lubuntu, this is because I did not install them !! So, I am afraid to remove them. Can I do it ?
    Last edited by angelo16; February 20th, 2021 at 09:30 PM.

  6. #6
    Join Date
    Nov 2015
    Location
    Brazil,RJ
    Beans
    42
    Distro
    Xubuntu

    Re: The 3min and 26sec of Terror: (L)ubuntu 20.04 Boot Time

    Hi fred, thank you.

    I will perform what you said in this post

    https://ubuntuforums.org/showthread....0#post13826670
    Last edited by angelo16; February 20th, 2021 at 09:30 PM.

  7. #7
    Join Date
    Jun 2019
    Location
    Dirndl-land
    Beans
    680
    Distro
    Lubuntu 20.04 Focal Fossa

    Re: The 3min and 26sec of Terror: (L)ubuntu 20.04 Boot Time

    When installing Lubuntu (20.04.1), the first thing I do is to kill snapd completely.

    That said, I'm running a machine with similar specs as yours: Core Duo, 4 GB.
    With my original HDD, boot time was around 1 min 35 sec. Your listing shows 1 min 23 sec, which is comparable.
    Installing an SSD brought down boot time to 26 sec.

    That's it.

    EDIT: reviewing your video, I see a boot time of 2 min 25 sec, which is unacceptable. The black screen after the "Lubuntu walking dots" is strange, from there you'd normally go directly to login. Do a fresh install and kick snapd to hell.
    Last edited by ml9104; February 20th, 2021 at 09:29 PM.

  8. #8
    Join Date
    Nov 2015
    Location
    Brazil,RJ
    Beans
    42
    Distro
    Xubuntu

    Re: The 3min and 26sec of Terror: (L)ubuntu 20.04 Boot Time

    Quote Originally Posted by ml9104 View Post
    Do a fresh install and kick snapd to hell.
    24h to kick snapd ass....

    First, I Gonna try to remove manually, as I already installed everything I wanted to.

  9. #9
    Join Date
    Jun 2019
    Location
    Dirndl-land
    Beans
    680
    Distro
    Lubuntu 20.04 Focal Fossa

    Re: The 3min and 26sec of Terror: (L)ubuntu 20.04 Boot Time

    Good lusk!
    My experience after dozens of "coming to a cropper" as newbie is, that a reinstall (including programs) is faster and easier than trying a (doubtful) repair.

    Let us know how you get along.

  10. #10
    Join Date
    May 2013
    Location
    Galiza
    Beans
    3,879
    Distro
    Ubuntu

    Re: The 3min and 26sec of Terror: (L)ubuntu 20.04 Boot Time

    Quote Originally Posted by angelo16 View Post
    Yeah, I agree with all of you, but something is strange.

    How can Win10 is faster than Lubuntu ?
    In almost all certainty isn't. Question: Do you have Fast Startup disabled in Windows? If not disabled you can't compare. Fast Startup is actually a form of hibernation implemented since Windows 8 with the purpose of give the impression Windows boots faster.
    Also of importance is the fact that a just installed Ubuntu will check for updates at boot time whereas a Windows that you've been using for some time (days) likely did all the updates in the background and a few optimizations.

Page 1 of 2 12 LastLast

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
  •