Slow bootup in Linux Mint 20.3

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
ben44b
Level 1
Level 1
Posts: 2
Joined: Fri Feb 03, 2023 7:34 pm

Slow bootup in Linux Mint 20.3

Post by ben44b »

I've tried searching to reduce my boot time but I'm having difficulty. Any ideas?

Code: Select all

[code]
System:    Kernel: 5.4.0-137-generic x86_64 bits: 64 compiler: gcc v: 9.4.0 
           Desktop: Cinnamon 5.2.7 wm: muffin dm: LightDM Distro: Linux Mint 20.3 Una 
           base: Ubuntu 20.04 focal 
Machine:   Type: Laptop System: Acer product: Aspire E5-722G v: V1.11 serial: <filter> 
           Mobo: Acer model: Aspire E5-722G v: V1.11 serial: <filter> UEFI: Insyde v: 1.11 
           date: 03/10/2016 
Battery:   ID-1: BAT0 charge: 30.1 Wh condition: 30.1/37.0 Wh (81%) volts: 17.2/14.8 model: SANYO 
           serial: <filter> status: Not charging 
CPU:       Topology: Quad Core model: AMD A8-7410 APU with AMD Radeon R5 Graphics bits: 64 
           type: MCP arch: Puma rev: 1 L2 cache: 2048 KiB 
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 17567 
           Speed: 2466 MHz min/max: 1000/2200 MHz Core speeds (MHz): 1: 2396 2: 2425 3: 2448 
           4: 2471 
Graphics:  Device-1: AMD Mullins [Radeon R4/R5 Graphics] vendor: Acer Incorporated ALI 
           driver: radeon v: kernel bus ID: 00:01.0 chip ID: 1002:9851 
           Device-2: AMD Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430 / Radeon 520 Mobile] 
           vendor: Acer Incorporated ALI driver: radeon v: kernel bus ID: 01:00.0 
           chip ID: 1002:6660 
           Display: x11 server: X.Org 1.20.13 driver: ati unloaded: fbdev,modesetting,radeon,vesa 
           resolution: 1600x900~60Hz 
           OpenGL: renderer: AMD KABINI (DRM 2.50.0 5.4.0-137-generic LLVM 12.0.0) 
           v: 4.5 Mesa 21.2.6 direct render: Yes 
Audio:     Device-1: AMD Kabini HDMI/DP Audio vendor: Acer Incorporated ALI driver: snd_hda_intel 
           v: kernel bus ID: 00:01.1 chip ID: 1002:9840 
           Device-2: AMD FCH Azalia vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel 
           bus ID: 00:14.2 chip ID: 1022:780d 
           Sound Server: ALSA v: k5.4.0-137-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
           vendor: Acer Incorporated ALI driver: r8169 v: kernel port: 2000 bus ID: 02:00.1 
           chip ID: 10ec:8168 
           IF: enp2s0f1 state: down mac: <filter> 
           Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter vendor: Lite-On 
           driver: ath10k_pci v: kernel port: 2000 bus ID: 03:00.0 chip ID: 168c:0042 
           IF: wlp3s0 state: up mac: <filter> 
           IF-ID-1: tun0 state: unknown speed: 10 Mbps duplex: full mac: N/A 
Drives:    Local Storage: total: 931.51 GiB used: 58.39 GiB (6.3%) 
           ID-1: /dev/sda vendor: Western Digital model: WD10JPVX-22JC3T0 size: 931.51 GiB 
           speed: 6.0 Gb/s serial: <filter> 
Partition: ID-1: / size: 915.32 GiB used: 58.38 GiB (6.4%) fs: ext4 dev: /dev/sda2 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 chip ID: 1d6b:0002 
           Hub: 1-1:2 info: Advanced Micro Devices Root Hub ports: 4 rev: 2.0 chip ID: 0438:7900 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 chip ID: 1d6b:0002 
           Hub: 2-1:2 info: Advanced Micro Devices Root Hub ports: 4 rev: 2.0 chip ID: 0438:7900 
           Device-1: 2-1.1:3 info: Lite-On type: Bluetooth driver: btusb rev: 2.0 
           chip ID: 04ca:3015 
           Device-2: 2-1.2:4 info: Realtek type: Video driver: uvcvideo rev: 2.0 
           chip ID: 0bda:57cc 
           Hub: 3-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 chip ID: 1d6b:0002 
           Device-3: 3-2:2 info: Microsoft Nano Transceiver v1.0 for Bluetooth 
           type: Keyboard,Mouse,HID driver: hid-generic,usbhid rev: 2.0 chip ID: 045e:0745 
           Hub: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.0 chip ID: 1d6b:0003 
Sensors:   System Temperatures: cpu: 44.5 C mobo: N/A 
           Fan Speeds (RPM): N/A 
           GPU: device: radeon temp: 38 C device: radeon temp: 35 C 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list 
           1: deb [arch=amd64] http: //dl.google.com/linux/earth/deb/ stable main
           No active apt repos in: /etc/apt/sources.list.d/nordvpn.list 
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http: //mirror.scd31.com/mint una main upstream import backport
           2: deb http: //gpl.savoirfairelinux.net/pub/mirrors/ubuntu focal main restricted universe multiverse
           3: deb http: //gpl.savoirfairelinux.net/pub/mirrors/ubuntu focal-updates main restricted universe multiverse
           4: deb http: //gpl.savoirfairelinux.net/pub/mirrors/ubuntu focal-backports main restricted universe multiverse
           5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http: //archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/slgobinath-gcalendar-focal.list 
           1: deb http: //ppa.launchpad.net/slgobinath/gcalendar/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/spotify.list 
           1: deb http: //repository.spotify.com stable non-free
Info:      Processes: 218 Uptime: 7m Memory: 6.75 GiB used: 1.53 GiB (22.7%) Init: systemd v: 245 
           runlevel: 5 Compilers: gcc: 9.4.0 alt: 9 Client: Unknown python3.8 client inxi: 3.0.38 
[/code]

Code: Select all

$ systemd-analyze blame
13.075s systemd-journal-flush.service                        
11.737s networkd-dispatcher.service                          
 9.253s udisks2.service                                      
 9.082s accounts-daemon.service                              
 8.338s dev-sda2.device                                      
 7.642s lightdm.service                                      
 7.629s plymouth-quit-wait.service                           
 6.224s ModemManager.service                                 
 6.039s ubuntu-system-adjustments.service                    
 4.767s avahi-daemon.service                                 
 4.758s bluetooth.service                                    
 4.648s polkit.service                                       
 4.544s NetworkManager.service                               
 4.148s thermald.service                                     
 4.147s systemd-logind.service                               
 4.085s wpa_supplicant.service                               
 3.637s gpu-manager.service                                  
 3.187s grub-common.service                                  
 2.925s systemd-udevd.service                                
 2.701s systemd-resolved.service                             
 2.616s apparmor.service                                     
 2.481s secureboot-db.service                                
 2.370s colord.service                                       
 2.017s alsa-restore.service                                 
 1.607s hddtemp.service                                      
 1.592s e2scrub_reap.service                                 
 1.408s lm-sensors.service                                   
 1.337s rsyslog.service                                      
 1.261s upower.service                                       
 1.256s pppd-dns.service                                     
 1.010s dns-clean.service                                    
  930ms systemd-fsck@dev-disk-by\x2duuid-B9E4\x2d4937.service
  899ms systemd-modules-load.service                         
  827ms kerneloops.service                                   
  802ms networking.service                                   
  798ms systemd-tmpfiles-setup-dev.service                   
  794ms keyboard-setup.service                               
  769ms user@1000.service                                    
  606ms setvtrgb.service                                     
  580ms swapfile.swap                                        
  570ms systemd-backlight@backlight:radeon_bl0.service       
  549ms systemd-sysusers.service                             
  533ms systemd-rfkill.service                               
  532ms systemd-sysctl.service                               
  510ms systemd-random-seed.service                          
  452ms systemd-udev-trigger.service                         
  446ms systemd-journald.service                             
  404ms lvm2-monitor.service                                 
  366ms dev-hugepages.mount                                  
  364ms dev-mqueue.mount                                     
  362ms ifupdown-pre.service                                 
  362ms sys-kernel-debug.mount                               
  360ms sys-kernel-tracing.mount                             
  356ms blk-availability.service                             
  352ms kmod-static-nodes.service                            
  345ms modprobe@efi_pstore.service                          
  341ms modprobe@ramoops.service                             
  334ms grub-initrd-fallback.service                         
  313ms ufw.service                                          
  257ms openvpn.service                                      
  252ms systemd-user-sessions.service                        
  232ms console-setup.service                                
  231ms systemd-timesyncd.service                            
  225ms systemd-tmpfiles-setup.service                       
  166ms boot-efi.mount                                       
  134ms systemd-remount-fs.service                           
  105ms plymouth-read-write.service                          
   75ms systemd-update-utmp.service                          
   75ms rtkit-daemon.service                                 
   71ms modprobe@chromeos_pstore.service                     
   27ms user-runtime-dir@1000.service                        
   19ms plymouth-start.service                               
   15ms systemd-update-utmp-runlevel.service                 
   10ms modprobe@pstore_blk.service                          
    9ms modprobe@pstore_zone.service                         
    8ms sys-fs-fuse-connections.mount                        
    5ms finalrd.service                                      
    5ms sys-kernel-config.mount 

Code: Select all

systemd-analyze
Startup finished in 17.869s (kernel) + 33.686s (userspace) = 51.555s 
graphical.target reached after 33.663s in userspace
Thank you for any help!
Last edited by LockBot on Thu Aug 03, 2023 10:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
tomas_52
Level 1
Level 1
Posts: 45
Joined: Tue Apr 27, 2021 10:40 am

Re: Slow bootup in Linux Mint 20.3

Post by tomas_52 »

As far as I can see the processor is not very fast (by today's measures) and the system is running from HD.
Then there is not much to achieve.
I am trying to solve a similar problem, you can see that in my recent post.
On my desktop PC the systemd-analyze gives about 12s for kernel and 42s total and by what I have seen on the internet that is rather fast more so on my older PC.
I suppose that by slow boot up you mean from start to the login screen.
On my PC I use Mate desktop so do not know the exact way to settings, on Mate there is Control Center - Apps run at start up and there I disabled everything I do not use (but most of it is run only after login) then there are some services on the blame list:
- if you run the system already for a longer time the size of the journal could be the problem for flush service, "journalctl --disk-usage" gives you the size used, "journalctl --vacuum-size=xxxM" (or xG) reduces its size to given size (this helps just a bit)
- bluetooth, wpa_supplicant and pppd-dns (maybe dns-clean but I know nothing about it) could be disabled if you do not use the hardware that they support (bluetooth, wifi and modems) - in terminal "systemctl stop bluetooth" stops the bluetooth.service "systemctl disable bluetooth" disables it (if necessary you can restart them). Before you do that you can check by "systemd-analyze critical-chain" if that has a chance to speed up the boot - if they do not appear in red with time in seconds behind the + sign, there is little chance that it will bring much (it relieves a bit the processor but they do not slow down the boot process).
That is all I can see from the data supplied.
There is just one more step that could help "journalctl -b 0" displays several pages of output to the terminal. If you see there some lines in red those are the most relevant errors during the boot process and desktop start up. Some of them could have impact on the speed.
ben44b
Level 1
Level 1
Posts: 2
Joined: Fri Feb 03, 2023 7:34 pm

Re: Slow bootup in Linux Mint 20.3

Post by ben44b »

Thanks for your response tomas.

I guess my laptop is just too old.

Oh well.
mikeflan
Level 17
Level 17
Posts: 7143
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Slow bootup in Linux Mint 20.3

Post by mikeflan »

I recently changed a 15 year old HP Pavillion dv9700 from HDD to SSD. It actually has 2 disk bays, so I just moved the HDD over to the #2 position. Now the machine runs LM 20.1 much faster, but still a bit slow since it only has 4 GB RAM.

This computer came with Vista Home Premium installed.
Tosh
Level 3
Level 3
Posts: 111
Joined: Thu Aug 11, 2022 10:38 am

Re: Slow bootup in Linux Mint 20.3

Post by Tosh »

Boot up time is not the end of the world IMHO, if its slow simply wonder off and make a cuppa, an extra minute or 2 is not going to affect you life in reality but I have to admit there are time when it did become really annoying.

When bought in 2012 this Toshiba laptop was Windows 7 with a 4gb RAM and a 500gb HD. Compared to what we had before it was a Ferrari but over time it slowed down. From turning on to having a usable laptop was about 10 minutes, the make a cuppa idea was history, I could have cooked a full English. So after Windows 10 had been out a year or so I took advantage of the free upgrade and what a difference, back to having a new laptop. The following year I downloaded the Win10 image and did a new install (it kept some setting and personal directories) and this improved matter further. But by 2022 it was slowing down again so I added another 4gb memory SIMM, surprised it made little difference. Then I bought a Crucial 500gb SSD and cloned the old HD, now that did make a difference, back to having a new laptop.

Shame the laptop will not update past Win10 21H1 which is now EOL (that is why we have Mint Mate on it).

OP, suggest you try an internal SSD, it will make a huge difference.
tomas_52
Level 1
Level 1
Posts: 45
Joined: Tue Apr 27, 2021 10:40 am

Re: Slow bootup in Linux Mint 20.3

Post by tomas_52 »

I would slightly disagree with some things said in the preceding posts.
If you accept the idea of start up time getting longer over the years then what decides is the use of your PC.
Surfing the internet, writing text or doing simple calculations will never give you a reason to buy a new one.
On the other hand if you are editing large amount of photos, audio or video clips you will not want to lose time waiting for the job being finished.
Well the development goes in circles (or spiral if you wish).
New hardware is faster so the software developers use it and possibly do not care so much about the performance of their code.
I have seen this in Linux kernel that slowly grows in its size (because of new hardware) and now in start up time of Mint.
Though I try myself to cut it down I have not succeeded yet to find what makes the difference and what more I could disable to change that.
User avatar
deck_luck
Level 7
Level 7
Posts: 1577
Joined: Mon May 27, 2019 6:57 pm
Location: R-4808 North

Re: Slow bootup in Linux Mint 20.3

Post by deck_luck »

ben44b wrote: Fri Feb 10, 2023 9:05 pm Thanks for your response tomas.

I guess my laptop is just too old.

Oh well.
Too old for what? What is your normal work load or which applications are your key usage?

I can tell my experience with my used MacBook 2010. I bought it to get in to MacOS on the cheap, and it was dog slow. The internal hard disk was replaced with a quality SSD, and it was like getting a new laptop. The user experience was actually enjoyable. Eventually, I maxed out the memory to run a new digital photography application. Well, it was fine until I started using advance editing with multiple masks. It quickly ran out of memory. So, I continued using the machine to browse the web, youtube, develop bash script and C programs.

Eventually, I bought a clean 2012 MacBook Pro, and it had the same dog slow experience. After upgrading to a quality SSD and maxing out memory, I was able to do more advance digital photography editing.

Some older laptops can be brought back to life by upgrading the old spinning rust mechanical hard drives with a quality SSD. You would probably bust out laughing when I tell you I am on this forum using a HP G71-340-US laptop running Win10 22H2 with an upgraded SDD. It is my beater laptop for youtube and forum reading.
🐧Linux Mint 20.3 XFCE (UEFI - Secure Boot Enabled) dual boot with Windows 11

Give a friend a fish, and you feed them for a day. Teach a friend how to fish, and you feed them for a lifetime. ✝️
Locked

Return to “Installation & Boot”