Slow boot on my laptop, KDE

Hi,

I just checked some infos and got this:

[marko@marko-hpenvyx360convertible13ar0xxx ~]$ systemd-analyze
Startup finished in 12.575s (firmware) + 12.441s (loader) + 696ms (kernel) + 5min 53.453s (userspace) = 6min 19.167s 
graphical.target reached after 1.945s in userspace

Few more :

[marko@marko-hpenvyx360convertible13ar0xxx ~]$ systemd-analyze blame
5min 52.222s man-db.service                                                                           
      1.077s systemd-random-seed.service                                                              
       970ms tlp.service                                                                              
       788ms systemd-swap.service                                                                     
       725ms lvm2-monitor.service                                                                     
       584ms dev-nvme0n1p2.device                                                                     
       570ms systemd-logind.service                                                                   
       433ms upower.service                                                                           
       307ms systemd-udevd.service                                                                    
       292ms systemd-journald.service                                                                 
       180ms polkit.service                                                                           
       132ms systemd-journal-flush.service                                                            
       129ms NetworkManager.service                                                                   
       128ms avahi-daemon.service                                                                     
       116ms thermald.service                                                                         
       112ms ldconfig.service                                                                         
       105ms systemd-rfkill.service                                                                   
       100ms user@1000.service                                                                        
        96ms boot-efi.mount                                                                           
        64ms systemd-modules-load.service                                                             
        64ms systemd-tmpfiles-clean.service                                                           
        55ms systemd-udev-trigger.service                                                             
        52ms systemd-fsck@dev-disk-by\x2duuid-2626\x2d639F.service                                    
        52ms logrotate.service                                                                        
        51ms udisks2.service                                                                          
        48ms systemd-fsck@dev-disk-by\x2duuid-cb514ec5\x2dc327\x2d4b9d\x2d9eea\x2d118bcd96e6fc.service
        47ms ModemManager.service                                                                     
        44ms modprobe@drm.service                 

I dont know exactly where problem is ,but doesnt seems as normal ?

Any clue ? thanks

Hello,

That took quite some time, but should not bother you next reboot. Is started by man-db.timer that is daily …

1 Like

the command mandb -d prints debugging informatlion, it might help out the more knowledgeable users on the forum …

1 Like

Ok, thanks guys… so no need to worry about it ?

Well, if takes the same amount of time if you reboot now, then i would suggest some investigation. Make a test.

If does the same only tomorrow i would still think an investigation is required. If your system has a rotational HDD i still think 5 minutes is a lot, but then depends if is a 5400rpm or 7200rpm HDD… I can only speculate at this point.

Ok, I will test it for today and tmrw.

I have SSD

Drives:    Local Storage: total: 476.94 GiB used: 14.35 GiB (3.0%) 
           ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNW512G8H size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> 
           rev: HPS0 scheme: GPT 
           Message: No Optical or Floppy data was found. 
RAID:      Message: No RAID data was found. 
Partition: ID-1: / size: 179.60 GiB used: 13.68 GiB (7.6%) fs: ext4 dev: /dev/nvme0n1p2 label: N/A 
           uuid: eed94378-b9a0-4f7f-b088-1981c19d78d5 
           ID-2: /boot/efi size: 499.0 MiB used: 280 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 label: N/A uuid: 2626-639F 
           ID-3: /home size: 287.37 GiB used: 683.0 MiB (0.2%) fs: ext4 dev: /dev/nvme0n1p3 label: N/A 
           uuid: cb514ec5-c327-4b9d-9eea-118bcd96e6fc 
Swap:      Alert: No Swap data was found.

Some SSD and MVME devices require this schedulers to work better


Give it a try.

1 Like

I think I did something wrong xD

[marko@marko-hpenvyx360convertible13ar0xxx ~]$ echo bfq > /sys/block/nvme0n1/queue/scheduler
bash: /sys/block/nvme0n1/queue/scheduler: Permission denied
[marko@marko-hpenvyx360convertible13ar0xxx ~]$ sudo echo bfq > /sys/block/nvme0n1/queue/schedul
bash: /sys/block/nvme0n1/queue/schedul: Permission denied
[marko@marko-hpenvyx360convertible13ar0xxx ~]$ cat /sys/block/sda/queue/iosched/low_latency
cat: /sys/block/sda/queue/iosched/low_latency: No such file or directory

Nope you forgot the magic command sudo.

sudo echo bfq > /sys/block/nvme0n1/queue/schedule

ah i see now, sorry…

Nope, even with sudo I got same output

hm… do you get some out with that?

cat /sys/block/nvme0n1/queue/scheduler

i get this on my sda:

cat /sys/block/sda/queue/scheduler 
[mq-deadline] kyber bfq none

What do have in /sys/blocks/ ?

ls /sys/block/
[marko@marko-hpenvyx360convertible13ar0xxx ~]$ cat /sys/block/nvme0n1/queue/scheduler
[mq-deadline] kyber bfq none
[marko@marko-hpenvyx360convertible13ar0xxx ~]$ ls /sys/block/
nvme0n1

Here is a nice guide how to do it:

https://www.kernel.org/doc/html/latest/block/switching-sched.html

try it as full root: sudo su then the command:

echo "bfq" > /sys/block/nvme0n1/queue/scheduler
1 Like

Got it :

[marko@marko-hpenvyx360convertible13ar0xxx ~]$ cat /sys/block/nvme0n1/queue/scheduler
mq-deadline kyber [bfq] none
1 Like

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