The only reason I deleted it is that your post may be an answer to the previous (and original) poster, and just not to @dawson . I didn’t want to create extra confusion here.
However, it needs to be pointed out that replacing systemd is not a small thing…
NB: I can undelete the comment…
1 Like
simobonfo
(simone bonforti)
May 14, 2020, 11:25am
22
Yes in fact you are right, I edited my original post to include the warning.
1 Like
dawson
(dawson_collins)
May 14, 2020, 12:33pm
23
thanks nerds
take it easy…
hi.
i ran systemctl analyze blame and thats output:
Blockquotesystemd-analyze blame
1min 15.615s systemd-udev-settle.service >
46.611s lvm2-monitor.service >
7.849s NetworkManager-wait-online.service >
6.702s upower.service >
6.048s systemd-rfkill.service >
6.038s dracut-initqueue.service >
4.559s systemd-logind.service >
3.286s systemd-machined.service >
2.710s systemd-homed.service >
2.148s initrd-switch-root.service >
1.948s firewalld.service >
1.682s systemd-backlight@backlight:radeon_bl0.service >
1.200s systemd-udevd.service >
1.108s udisks2.service >
1.054s sssd.service >
1.053s systemd-journald.service >
1.008s systemd-userdbd.service
p.s. someone advised me to disable that: systemctl disable systemd-udev-settle.service
will that bug solved from systemd maintener from update?
if yes i will wait to it.
eugine
(Eugine Connor)
May 15, 2020, 9:36am
26
I guess this issue should be fixed in one of the future systemd updates by Fedora maintainers, but how long will it take…
I couldn’t wait cuz 6 min boot was really annoying.
1 Like
Can anyone link the correspondig bug report? -That should give us a good indication on the progress of a potential fix and new build of the package. Thx.
pauld
(Paul Dufresne)
May 15, 2020, 12:51pm
28
Well, the topic is loading is very slow.
But how much slow, and the cause seems different for many.
@eugine had 6 mins boot time… and the bug he points to, suggest a link between Asus NV series laptops.
@zarathustra19 seems the only one here, with a more than 1 min systemd-udev-settle.service and a long (46 secs) lvm2-monitor.service.
@rbirkner seems to have an abnormally fast system, we should ask him what version he use, and what kind of disk he use
@arh , the original poster, seems to have a very similar to mine Fedora 32, with similar times to mine… I suggest it is a “normal” situation… I was not following previous Fedora versions, so for me it looks normal.
I suggest it might be easier to follow if different topics are opened.
eugine
(Eugine Connor)
May 15, 2020, 2:08pm
29
Ok, i can give some links, related to this issue:
https://bugzilla.redhat.com/show_bug.cgi?id=1830896
opened 07:17AM - 07 May 20 UTC
closed 07:07AM - 21 May 20 UTC
udev
**systemd version the issue has been seen with**
> systemd-245.4-1.fc32.x86_64
…
**Used distribution**
> Fedora 32 x86_64
**Expected behaviour you didn't see**
> The system should boot normally
**Unexpected behaviour you saw**
> After upgrade to Fedora 32 from 31 I started to face very long boots. Examining the problem closer revealed that for some reason udev rules that contain IMPORT{cmdline} take more time to process than usual. Removing 3 unneeded files made system to boot much faster:
[61-gdm.rules.txt](https://github.com/systemd/systemd/files/4591309/61-gdm.rules.txt)
[64-md-raid-assembly.rules.txt](https://github.com/systemd/systemd/files/4591310/64-md-raid-assembly.rules.txt)
[65-md-incremental.rules.txt](https://github.com/systemd/systemd/files/4591311/65-md-incremental.rules.txt)
There was no such problem in version 243.8 in Fedora 31.
My hardware:
ASUS N56VB laptop
CPU: Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz
HDD: Samsung SSD 860 EVO 2TB
RAM: 16 GB
There are complaints about this problem on fedora forums from person with similar hardware, so it might be hardware specific. Booting kernels left from Fedora 31 does not help.
**Steps to reproduce the problem**
opened 05:26AM - 08 Feb 20 UTC
closed 01:12PM - 26 Jun 20 UTC
regression ⚠️
**systemd version the issue has been seen with**
> 244.2
**Used distribution… **
> ArchLinux - Linux scout 5.5.2-arch1-1 SMP PREEMPT Tue, 04 Feb 2020 18:56:18 +0000 x86_64 GNU/Linux
**Expected behaviour you didn't see**
> 3 seconds user space boot time
**Unexpected behaviour you saw**
> 40 seconds user space boot time
**Steps to reproduce the problem**
```
sudo pacman -U /var/cache/pacman/pkg/systemd-244.2-1-x86_64.pkg.tar.zst && reboot
```
## Boot times & critical chain on 244.1
```
[andre@scout ~]$ systemd-analyze
Startup finished in 5.454s (kernel) + 2.843s (userspace) = 8.297s
graphical.target reached after 2.843s in userspace
andre@scout ~]$ systemd-analyze critical-chain
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.
graphical.target @2.843s
└─multi-user.target @2.842s
└─systemd-logind.service @1.692s +1.149s
└─basic.target @1.685s
└─sockets.target @1.685s
└─org.cups.cupsd.socket @1.685s
└─sysinit.target @1.679s
└─systemd-timesyncd.service @1.461s +218ms
└─systemd-tmpfiles-setup.service @1.433s +24ms
└─local-fs.target @1.432s
└─mnt-data.mount @1.393s +39ms
└─systemd-fsck@dev-disk-by\x2duuid-693c2dae\x2d3f8d\x2d4825\x2dbfdf\x2d9268a8b9584b.service @1.305s +86ms
└─local-fs-pre.target @1.304s
└─lvm2-monitor.service @211ms +1.092s
└─lvm2-lvmetad.service @227ms
└─systemd-journald.socket @208ms
└─-.mount @198ms
└─system.slice @198ms
└─-.slice @198ms
```
## Boot times & critical chain on 244.2
```
[andre@scout ~]$ systemd-analyze
Startup finished in 9.144s (kernel) + 40.945s (userspace) = 50.089s
graphical.target reached after 40.944s in userspace
[andre@scout ~]$ systemd-analyze critical-chain
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.
graphical.target @40.944s
└─multi-user.target @40.943s
└─systemd-logind.service @38.863s +2.077s
└─basic.target @38.855s
└─sockets.target @38.855s
└─org.cups.cupsd.socket @38.854s
└─sysinit.target @38.848s
└─systemd-update-done.service @38.257s +590ms
└─systemd-journal-catalog-update.service @35.780s +2.475s
└─systemd-tmpfiles-setup.service @33.729s +2.050s
└─local-fs.target @33.728s
└─mnt-gamessd.mount @33.720s +8ms
└─systemd-fsck@dev-disk-by\x2duuid-f9ac8e20\x2d5991\x2d4af3\x2d8763\x2d0c7a693bb7db.service @30.269s +3.449s
└─local-fs-pre.target @30.262s
└─lvm2-monitor.service @7.747s +22.514s
└─lvm2-lvmetad.service @7.758s
└─systemd-journald.socket @7.743s
└─system.slice @7.732s
└─-.slice @7.732s
```
Hope it will help!
P.S. btw my laptop is Asus G46VW (2012 year) and the problem was with lvm2-monitor.service and systemd-udev-settle.service
1 Like
eugine
(Eugine Connor)
May 15, 2020, 2:21pm
30
I don’t think it can be different issues… the main bug can be the same for this 4 cases. Look at the opened systemd github issue i’ve linked above
pauld
(Paul Dufresne)
May 15, 2020, 3:01pm
31
I did not check much your links yet…
Still, the solution patch seems to cache values in efivars.c…
So it would suggest that it is linked to UEFI?
And I don’t boot with UEFI…
as I don’t have /sys/firmware/efi directory.
And like I said, my boot time is similar to original poster…
But maybe I did not understood the problem… maybe the boot time is not very different if you boot from UEFI or MBR… is it?
eugine
(Eugine Connor)
May 15, 2020, 4:25pm
32
Ok… what about your hardware config? and “systemd-analyze blame” output?
eugine
(Eugine Connor)
May 15, 2020, 4:34pm
33
And i have to agree that original post doesn’t seem to be the same as mine @arh just have to optimize his systemd services.
pauld
(Paul Dufresne)
May 15, 2020, 4:48pm
34
On my installed Fedora 32 XFCE, it take about 1 min 6 secs, I think.
Here, on the Fedora 32 Live image (Cinnamon), I booted in 21 secs.
[liveuser@localhost-live ~]$ systemd-analyze time
Startup finished in 4.848s (kernel) + 3.916s (initrd) + 12.336s (userspace) = 21.101s
graphical.target reached after 12.320s in userspace
[liveuser@localhost-live ~]$ systemd-analyze blame
2.966s initrd-switch-root.service
2.816s plymouth-quit-wait.service
2.564s firewalld.service
2.441s udisks2.service
2.316s livesys.service
[liveuser@localhost-live ~]$ rpm -qa | grep ^systemd-2
systemd-245.4-1.fc32.x86_64
eugine
(Eugine Connor)
May 15, 2020, 4:54pm
35
Huh… should see systemd-analyze from installed F32, cuz different systemd services can be enabled that takes more time to start
pauld
(Paul Dufresne)
May 15, 2020, 5:21pm
36
On my installed Fedora 32 XFCE no-UEFI mode:
[paul@localhost ventoy-1.0.09]$ systemd-analyze
Startup finished in 1.136s (kernel) + 3.673s (initrd) + 48.846s (userspace) = 53.657s
graphical.target reached after 48.838s in userspace
[paul@localhost ventoy-1.0.09]$ systemd-analyze blame
17.745s firewalld.service >
16.028s ModemManager.service >
14.919s udisks2.service >
12.537s systemd-journal-flush.service >
11.439s upower.service >
11.082s avahi-daemon.service >
10.741s rtkit-daemon.service
I cannot start my installed in UEFI mode becaue it was installed in non-UEFI mode.
eugine
(Eugine Connor)
May 15, 2020, 6:07pm
37
Ok… let’s talk about hdd speed (you have hdd right? not ssd? 5200rpm?)
pauld
(Paul Dufresne)
May 15, 2020, 6:15pm
38
is is a 7200 rpm hdd…
Ok I installed systemd from the proposed COPR and now:
[paul@localhost ~]$ systemd-analyze time
Startup finished in 1.177s (kernel) + 3.683s (initrd) + 46.953s (userspace) = 51.815s
graphical.target reached after 46.945s in userspace
[paul@localhost ~]$ systemd-analyze blame
17.296s firewalld.service >
15.776s udisks2.service >
14.520s ModemManager.service >
12.776s upower.service >
12.734s systemd-journal-flush.service >
11.067s sssd.service >
10.788s avahi-daemon.service
[paul@localhost ~]$ rpm -qa |grep ^systemd
systemd-container-245.4-1.1.fc32.x86_64
systemd-libs-245.4-1.1.fc32.x86_64
systemd-245.4-1.1.fc32.x86_64
systemd-rpm-macros-245.4-1.1.fc32.noarch
systemd-udev-245.4-1.1.fc32.x86_64
systemd-pam-245.4-1.1.fc32.x86_64
eugine
(Eugine Connor)
May 15, 2020, 6:50pm
39
Ok, this systemd patch isn’t about your case, it’s more about efivarfs and device initialization. But it won’t make any problem for you.
I’ve tried to use fedora on different laptops and desktop, and the main problem was about hdd. And believe me 1min boot is normal in most cases. SSD is the cure if you don’t want to “cut” systemd services startup list (you should learn more about systemd).
but mine is SSD disk not HDD.
normaly SSD should be more fast/
if i disable systemctl disable systemd-udev-settle.service
will break system?