You are not logged in.

#1 2021-01-13 11:26:35

PhilSmith
Member
Registered: 2018-08-10
Posts: 23

long systemd firmware boot time

Hello everybody,

any thoughts on this output of systemd-analyze?

Startup finished in 15.384s (firmware) + 1.237s (loader) + 1.198s (kernel) + 630ms (userspace) = 18.450s 
graphical.target reached after 552ms in userspace

systemd-anaylze blame showing the following (< 10 ms cut off):

249ms lvm2-monitor.service                         
213ms upower.service                               
148ms udisks2.service                              
117ms dev-nvme0n1p2.device                         
116ms user@1000.service                            
 88ms cups.service                                 
 76ms boot.mount                                   
 45ms polkit.service                               
 43ms systemd-udev-trigger.service                 
 42ms systemd-journald.service                     
 40ms dev-disk-by\x2dlabel-SWAP.swap               
 31ms systemd-journal-flush.service                
 29ms systemd-udevd.service                        
 27ms NetworkManager.service                       
 24ms systemd-logind.service                       
 23ms modprobe@drm.service                         
 19ms systemd-remount-fs.service                   
 11ms colord.service                               
 10ms ntpd.service

and finally systemd-analyze critical chain:

graphical.target @552ms
`-multi-user.target @552ms
  `-ntpd.service @541ms +10ms
    `-network.target @540ms
      `-NetworkManager.service @512ms +27ms
        `-dbus.service @510ms
          `-basic.target @508ms
            `-sockets.target @508ms
              `-dbus.socket @508ms
                `-sysinit.target @507ms
                  `-systemd-update-utmp.service @501ms +5ms
                    `-systemd-tmpfiles-setup.service @492ms +8ms
                      `-local-fs.target @491ms
                        `-boot.mount @414ms +76ms
                          `-systemd-fsck@dev-disk-by\x2dlabel-EFI.service @410ms +3ms
                            `-local-fs-pre.target @407ms
                              `-lvm2-monitor.service @157ms +249ms
                                `-lvm2-lvmetad.service @217ms
                                  `-systemd-udevd.service @186ms +29ms
                                    `-systemd-tmpfiles-setup-dev.service @181ms +3ms
                                      `-kmod-static-nodes.service @157ms +5ms
                                        `-systemd-journald.socket @154ms
                                          `--.mount @142ms
                                            `--.slice @142ms

15 seconds for firmware bootup seems a lot to me.
Anything I can do to improve that?

What I have already tried:
turning on fast boot, disabling legacy usb support, disabling iommu

My specs are in my signature, bios is latest (beta) version and ram is overclocked with the standard profile to run at 3600 MHz.

Thank you all!

Last edited by PhilSmith (2021-01-13 11:37:01)


Asus Prime X570-Pro | Ryzen 9 3900X | Fractac Design Ion+ 660P | Thermaltake View 71 TG RGB+ |
Asus GTX 1660 Super | 2x 16GB GSkill DDR4 3600 16-19-19-39 | 1TB WD Black SN850 PCIe 4.0 SSD

Offline

#2 2021-01-13 12:39:31

Ropid
Member
Registered: 2015-03-09
Posts: 953

Re: long systemd firmware boot time

This "firmware" number is happening outside of Linux and initrd and bootloader. There's just the UEFI/BIOS menu settings that can do something. On my board here, I can do nothing. It was the same on my previous boards. Maybe changing the RAM to a crappy 2400MHz speed with default JEDEC timings might get you two seconds?

Offline

#3 2021-01-13 14:58:34

PhilSmith
Member
Registered: 2018-08-10
Posts: 23

Re: long systemd firmware boot time

Ropid wrote:

This "firmware" number is happening outside of Linux and initrd and bootloader. There's just the UEFI/BIOS menu settings that can do something. On my board here, I can do nothing. It was the same on my previous boards. Maybe changing the RAM to a crappy 2400MHz speed with default JEDEC timings might get you two seconds?

Thanks for clarifying that this has nothing to do with my arch setup.

Well, when I disable d.o.c.p. I get this:

Startup finished in 11.157s (firmware) + 1.222s (loader) + 1.193s (kernel) + 723ms (userspace) = 14.296s

Definitely better, but I don't know what this tells me.
Some guys recommend to manually edit the ram timings and so forth to the exact values of d.o.c.p.
The fact that this is done manually is supposed to solve these issues apparently.
Well, I'm gonna try if I have the time.

Still, 11 seconds seem like a whole lot to me.
If someone has other ideas, please let me know.


Asus Prime X570-Pro | Ryzen 9 3900X | Fractac Design Ion+ 660P | Thermaltake View 71 TG RGB+ |
Asus GTX 1660 Super | 2x 16GB GSkill DDR4 3600 16-19-19-39 | 1TB WD Black SN850 PCIe 4.0 SSD

Offline

#4 2021-01-14 11:53:40

Ttz_ztT
Member
Registered: 2015-10-03
Posts: 15

Re: long systemd firmware boot time

On a Prime X470 Pro with Bios 5809:

Startup finished in 13.337s (firmware) + 1.479s (loader) + 2.243s (kernel) + 5.177s (initrd) + 11.425s (userspace) = 33.663s

With previous UEFI versions, this took much longer. Up to 30s from power on to beep.

10 year old sandybridge boards needed 10s from power on to auto-login, sad but true.

Offline

#5 2021-01-14 13:10:25

ratcheer
Member
Registered: 2011-10-09
Posts: 805

Re: long systemd firmware boot time

PhilSmith wrote:

Well, when I disable d.o.c.p. I get this:

Startup finished in 11.157s (firmware) + 1.222s (loader) + 1.193s (kernel) + 723ms (userspace) = 14.296s

Definitely better, but I don't know what this tells me.

It tells you that, as hinted in an earlier reply, slowing down your RAM has helped this particular issue.

Offline

#6 2021-01-14 13:29:07

PhilSmith
Member
Registered: 2018-08-10
Posts: 23

Re: long systemd firmware boot time

Well this feels to become more like a "can't do much about this anyway" issue.
I will hope for some improvement due to future bios releases by asus.

Well, slowing down RAM speed surely helped a bit, but I think there is more lost than gained for a few seconds here.

On a B550M Gigabyte board I just bought for my mother, I get 6 seconds bios time, but well ...
It seems to be what it is.
Thank you for your thoughts!


Asus Prime X570-Pro | Ryzen 9 3900X | Fractac Design Ion+ 660P | Thermaltake View 71 TG RGB+ |
Asus GTX 1660 Super | 2x 16GB GSkill DDR4 3600 16-19-19-39 | 1TB WD Black SN850 PCIe 4.0 SSD

Offline

#7 2021-01-14 20:12:43

Slithery
Forum Moderator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 4,075

Re: long systemd firmware boot time

PhilSmith wrote:

Well this feels to become more like a "can't do much about this anyway" issue.
I will hope for some improvement due to future bios releases by asus.

Realistically that's all you can hope for. Unfortunately it has very little chance of actually happening....


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Online

Board footer

Powered by FluxBB