Help In Reducing Plasma Boot Time

This appears to be a common question.
(I already referred the following links, albeit superficially:

But I have trouble understanding some technical-terms and in deciding what to disable.
I will like 'a little gentle hand-holding and step-by-step instructions.'
I used gnome before Plasma, and it booted comparatively faster (qualitative).
Below, I have posted the result of a few commands which I guess are useful in the context..

$ inxi -F
System:    Host: shubhaManjaro Kernel: 5.4.27-1-MANJARO x86_64 bits: 64 Desktop: KDE Plasma 5.18.3 Distro: Manjaro Linux 
Machine:   Type: Laptop System: LENOVO product: 81D2 v: Lenovo ideapad 330-15ARR serial: <root required> 
           Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <root required> UEFI: LENOVO v: 7VCN23WW date: 06/08/2018 
Battery:   ID-1: BAT0 charge: 9.5 Wh condition: 18.5/35.0 Wh (53%) 
CPU:       Topology: Quad Core model: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx bits: 64 type: MT MCP L2 cache: 2048 KiB 
           Speed: 2272 MHz min/max: 1600/2000 MHz Core speeds (MHz): 1: 2272 2: 2281 3: 1406 4: 1370 5: 1653 6: 1912 7: 1370 
           8: 1369 
Graphics:  Device-1: AMD Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] driver: amdgpu v: kernel 
           Display: x11 server: X.Org 1.20.7 driver: amdgpu FAILED: ati unloaded: modesetting resolution: 1366x768~60Hz 
           OpenGL: renderer: AMD RAVEN (DRM 3.35.0 5.4.27-1-MANJARO LLVM 9.0.1) v: 4.5 Mesa 19.3.5 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel 
           Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio driver: snd_hda_intel 
           Sound Server: ALSA v: k5.4.27-1-MANJARO 
Network:   Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter driver: rtl8821ce 
           IF: wlp1s0 state: up mac: b0:fc:36:a6:df:79 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet driver: r8169 
           IF: enp2s0 state: down mac: 8c:16:45:bc:54:70 
Drives:    Local Storage: total: 931.51 GiB used: 43.99 GiB (4.7%) 
           ID-1: /dev/sda vendor: Western Digital model: WD10SPZX-24Z10T0 size: 931.51 GiB 
Partition: ID-1: / size: 906.94 GiB used: 43.99 GiB (4.9%) fs: ext4 dev: /dev/sda2 
           ID-2: swap-1 size: 8.80 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda3 
Sensors:   System Temperatures: cpu: 46.8 C mobo: N/A gpu: amdgpu temp: 46 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 228 Uptime: 3h 06m Memory: 7.39 GiB used: 2.44 GiB (33.0%) Shell: bash inxi: 3.0.37 
$ systemd-analyze
Startup finished in 4.219s (firmware) + 10.946s (loader) + 4.510s (kernel) + 33.595s (userspace) = 53.272s reached after 32.946s in userspace
$ systemd-analyze blame                          
12.865s systemd-journal-flush.service                                            
11.048s mariadb.service                                                          
10.882s snapd.service                                                            
 9.354s lvm2-monitor.service                                                     
 8.197s dev-sda2.device                                                          
 6.745s udisks2.service                                                          
 6.652s polkit.service                                                           
 3.937s org.cups.cupsd.service                                                   
 3.147s systemd-tmpfiles-clean.service                                           
 3.022s ModemManager.service                                                     
 3.002s systemd-udevd.service                                                    
 2.921s avahi-daemon.service                                                     
 2.850s bluetooth.service                                                        
 2.837s NetworkManager.service                                                   
 2.477s apparmor.service                                                         
 2.474s upower.service                                                           
 2.327s systemd-logind.service                                                   
 1.312s var-lib-snapd-snap-core18-1705.mount                                     
 1.280s systemd-tmpfiles-setup-dev.service                                       
 1.276s var-lib-snapd-snap-mysql\x2dshell-1.mount                                
 1.218s systemd-fsck@dev-disk-by\x2duuid-1072\x2d9F5C.service                    
 1.089s var-lib-snapd-snap-snapd-6953.mount                                      
 1.064s snapd.apparmor.service                                                   
 1.043s systemd-modules-load.service                                             
 1.012s systemd-random-seed.service                                              
  771ms wpa_supplicant.service                                                   
  713ms systemd-tmpfiles-setup.service                                           
  651ms dev-disk-by\x2duuid-55930f47\x2df507\x2d4220\x2dad13\x2dd9c89b6c2c34.swap
  646ms tlp.service                                                              
  505ms linux-module-cleanup.service                                             
  383ms systemd-backlight@backlight:amdgpu_bl0.service                           
  357ms systemd-journald.service                                                 
  349ms systemd-sysctl.service                                                   
  348ms systemd-backlight@backlight:acpi_video0.service                          
  338ms kmod-static-nodes.service                                                
  335ms systemd-udev-trigger.service                                             
  206ms boot-efi.mount                                                           
  168ms systemd-binfmt.service                                                   
  138ms user@1000.service                                                        
  114ms dev-hugepages.mount                                                      
  114ms dev-mqueue.mount                                                         
  113ms sys-kernel-debug.mount                                                   
  108ms systemd-remount-fs.service                                               
   93ms systemd-update-utmp.service                                              
   59ms rtkit-daemon.service                                                     
   52ms modprobe@drm.service                                                     
   40ms systemd-user-sessions.service                                            
   19ms user-runtime-dir@1000.service                                            
   17ms proc-sys-fs-binfmt_misc.mount                                            
   13ms systemd-rfkill.service                                                   
    8ms systemd-backlight@backlight:acpi_video1.service                          
    6ms sys-fs-fuse-connections.mount                                            
    5ms tmp.mount                                                                
    2ms sys-kernel-config.mount                                                  
    1ms snapd.socket                                                             

i dont see haveged& service
can you add

sudo pacman -S haveged
sudo systemctl enable habeged.service

and try reboot ?

other check is your disk , check also smart status

You have to be aware this 2.5" HDD you have there is really slow by todays standards.

please post the result of:

journalctl --disk-usage

Uninstalling those will reduce boot time, if that is even a possibility

 journalctl --disk-usage
Archived and active journals take up 296.0M in the file system.

Okay, I wasn't aware about the HDD. :sweat_smile:

I need mariadb. Is snapd the file for snap store?

$ sudo smartctl -a /dev/sda    
[sudo] password for saavitra: 
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.27-1-MANJARO] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke,

Model Family:     Western Digital Blue
Device Model:     WDC WD10SPZX-24Z10T0
Serial Number:    WD-WXA1A482LJVV
LU WWN Device Id: 5 0014ee 6b350d65e
Firmware Version: 01.01A01
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision 5
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Tue Apr  7 22:26:09 2020 IST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00) Offline data collection activity
                                        was never started.
                                        Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever 
                                        been run.
Total time to complete Offline 
data collection:                (  840) seconds.
Offline data collection
capabilities:                    (0x71) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Suspend Offline collection upon new
                                        No Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine 
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        (  77) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x303d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   193   189   021    Pre-fail  Always       -       1325
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       829
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       447
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       735
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       341
193 Load_Cycle_Count        0x0032   196   196   000    Old_age   Always       -       13371
194 Temperature_Celsius     0x0022   103   095   000    Old_age   Always       -       40 (Min/Max 21/48)
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   100   253   000    Old_age   Offline      -       0
206 Flying_Height           0x0022   100   000   000    Old_age   Always       -       36
240 Head_Flying_Hours       0x0032   100   100   000    Old_age   Always       -       364

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

I have added it. Will reboot and update this post after rebooting.
Update ::

$ systemd-analyze 
Startup finished in 3.895s (firmware) + 10.996s (loader) + 5.021s (kernel) + 29.295s (userspace) = 49.208s reached after 28.648s in userspace

Some improvement, eh? :cowboy_hat_face:

How specifically? :sweat_smile:

I have no idea if it is needed for snaps or if it is optional, never dealt with snap.
I am pretty sure with this hdd it will always feel slow, i would replace it with a cheapo ssd.

time to change the disk for a SSD /nvme 1 To

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by