How I can speed up booting time and loading userspace on Manjaro KDE

Hi!
I have a Manjaro Kde Plasma 5.21.3 installed dual boot with windows 10
I would like to use manjaro as my primary system but while I working on it and after installing some Tools(VS Code Gimp FreeOffice Composer MySQL PHP apache…) I have now a slow booting time
the first time, I measure the boot time:

  • ~ 1:45 for manjaro
  • ~ 0:50 ~ 1:00 for windows 10(a lot of software installed on it)

now the booting time up to 2:30 for manjaro

Please how I can improve the boot time I am new in manjaro but I love using Linux & I want to make the system performance better for development and blogging.

systemd-analyze

   Startup finished in 5.960s (kernel) + 39.511s (userspace) = 45.472s 
graphical.target reached after 37.572s in userspace

systemd-analyze blame


16.710s snapd.service                                                                            
 9.947s udisks2.service                                                                          
 9.728s polkit.service                                                                           
 8.078s dev-loop7.device                                                                         
 7.979s dev-loop4.device                                                                         
 7.760s dev-loop8.device                                                                         
 7.633s dev-loop6.device                                                                         
 7.121s dev-loop3.device                                                                         
 7.032s dev-loop5.device                                                                         
 7.032s upower.service                                                                           
 6.304s avahi-daemon.service                                                                     
 6.294s NetworkManager.service                                                                   
 6.215s systemd-logind.service                                                                   
 6.067s dev-loop2.device                                                                         
 5.975s dev-sda8.device                                                                          
 5.680s dev-loop0.device                                                                         
 5.661s dev-loop1.device                                                                         
 5.559s snapd.apparmor.service                                                                   
 4.657s systemd-fsck@dev-disk-by\x2duuid-0f3f3a97\x2d9d67\x2d4f05\x2d94ba\x2dc82438d8a048.service
 3.469s ModemManager.service                                                                     
 3.196s apparmor.service                                                                         
 3.167s cups.service                                                                             
 2.109s systemd-fsck@dev-disk-by\x2duuid-dd95a45d\x2d013e\x2d4ae3\x2d8b39\x2da188875d79d2.service
 1.929s tlp.service                                                                              
 1.775s systemd-udevd.service                                                                    
 1.418s systemd-fsck-root.service                                                                
 1.234s user@1000.service                                                                        
 1.000s wpa_supplicant.service                                                                   
  954ms dev-disk-by\x2duuid-83b11a9a\x2d09e7\x2d4aea\x2d8e79\x2ddd8e1b052992.swap                
  947ms systemd-tmpfiles-setup.service                                                           
  939ms var-lib-snapd-snap-android\x2dfile\x2dtransfer\x2dlinux-199.mount                        
  851ms systemd-tmpfiles-setup-dev.service                                                       
  816ms modprobe@drm.service                                                                     
  800ms var-lib-snapd-snap-chromium-1523.mount                                                   
  778ms systemd-tmpfiles-clean.service                                                           
  773ms systemd-modules-load.service                                                             
  682ms systemd-udev-trigger.service                                                             
  605ms var-lib-snapd-snap-code-59.mount                                                         
  556ms home.mount                                                                               
  500ms var-lib-snapd-snap-core18-1988.mount                                                     
  453ms var-lib-snapd-snap-core-10908.mount                                                      
  450ms var-lib-snapd-snap-gnome\x2d3\x2d28\x2d1804-145.mount                                    
  401ms systemd-journald.service                                                                 
  396ms systemd-backlight@backlight:acpi_video0.service                                          
  372ms var-lib-snapd-snap-gtk\x2dcommon\x2dthemes-1514.mount                                    
  338ms systemd-random-seed.service                                                              
  328ms modprobe@fuse.service                                                                    
  326ms linux-module-cleanup.service                                                             
  227ms systemd-sysctl.service                                                                   
  225ms var-lib-snapd-snap-snapd-11402.mount                                                     
  218ms boot.mount                                                                               
  208ms dev-hugepages.mount                                                                      
  206ms dev-mqueue.mount                                                                         
  204ms sys-kernel-debug.mount                                                                   
  202ms sys-kernel-tracing.mount                                                                 
  198ms kmod-static-nodes.service                                                                
  197ms modprobe@configfs.service                                                                
  181ms var-lib-snapd-snap-notable-3.mount                                                       
  178ms systemd-binfmt.service                                                                   
  142ms rtkit-daemon.service                                                                     
  106ms systemd-remount-fs.service                                                               
   80ms systemd-update-utmp.service                                                              
   75ms systemd-journal-flush.service                                                            
   37ms user-runtime-dir@1000.service                                                            
   32ms systemd-user-sessions.service                                                            
   13ms systemd-backlight@backlight:radeon_bl0.service                                           
   10ms tmp.mount                                                                                
    6ms sys-kernel-config.mount                                                                  
    4ms snapd.socket                                                                             
    4ms proc-sys-fs-binfmt_misc.mount                                                            
    3ms sys-fs-fuse-connections.mount 

systemd-analyze critical-chain

graphical.target @37.572s
└─multi-user.target @37.570s
  └─snapd.service @20.859s +16.710s
    └─basic.target @20.773s
      └─sockets.target @20.773s
        └─snapd.socket @20.768s +4ms
          └─sysinit.target @20.720s
            └─systemd-update-utmp.service @20.639s +80ms
              └─systemd-tmpfiles-setup.service @19.687s +947ms
                └─local-fs.target @19.683s
                  └─boot.mount @19.464s +218ms
                    └─systemd-fsck@dev-disk-by\x2duuid-dd95a45d\x2d013e\x2d4ae3\x2d8b39\x2da188875d79d2.service @17.321s +2.109s
                      └─dev-disk-by\x2duuid-dd95a45d\x2d013e\x2d4ae3\x2d8b39\x2da188875d79d2.device @17.317s

Hi, do you use snaps? Because it really slows down boot time.

If not you can disable snap service with sudo systemctl disable snapd.service and sudo systemctl disable snapd.apparmor.service

But if you won’t ever use snaps, you can uninstall snapd and pamac-snap-plugin packages.

There, you should have an enhanced boot time after reboot.

1 Like

Thanks, now I disable them.
I have tried using hibernate & it makes the booting time faster.
but with some problems (I am trying to fix them at this moment).