this post was submitted on 22 Jan 2025
21 points (88.9% liked)

Linux

49393 readers
1675 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Update: It was a usb 3 hub that did not work with linux. plugging it into a usb2 port on the pc improved boot time. its now 25 sec!

Hi there! So i build a new pc with hardware < year old and installed mint on it and it takes annoyingly long to boot, 1:50min from the output of systemd-analyze:

Startup finished in 14.075s (firmware) + 10.681s (loader) + 51.070s (kernel) + 34.573s (userspace) = 1min 50.400s 
graphical.target reached after 34.570s in userspace.

The 50sec on kernel boot seems strange to me, maybe 34sec of userspace as well.

It seems to be the systemd-usdev-settle.service according to the output of systemd-analyze blame:

29.451s systemd-udev-settle.service
 3.254s NetworkManager-wait-online.service
  948ms zfs-load-module.service
  491ms NetworkManager.service
  154ms blueman-mechanism.service

The output of systemctl status systemd-udev-settle.service shows:

systemd-udev-settle.service - Wait for udev To Complete Device Initialization
     Loaded: loaded (/usr/lib/systemd/system/systemd-udev-settle.service; static)
     Active: active (exited) since Wed 2025-01-22 12:06:16 CET; 5min ago
       Docs: man:systemd-udev-settle.service(8)
   Main PID: 526 (code=exited, status=0/SUCCESS)
        CPU: 2ms

Jan 22 12:05:47 tower systemd[1]: Starting systemd-udev-settle.service - Wait for udev To Complete Device Initialization...
Jan 22 12:05:47 tower udevadm[526]: systemd-udev-settle.service is deprecated. Please fix zfs-load-module.service, zfs-import-cache.service not to pull it in.
Jan 22 12:06:16 tower systemd[1]: Finished systemd-udev-settle.service - Wait for udev To Complete Device Initialization.

So i think i need to fix the zfs modules, because they slow udev down, but how?

Any other tips to improve boot time of my system? Ubuntu on my 4 yo laptop takes maybe 20-30 seconds to boot, so linux should be a lot faster. I appreciate any helpl!

top 7 comments
sorted by: hot top controversial new old
[–] vk6flab@lemmy.radio 15 points 1 week ago (1 children)

If you run dmesg -Tyou can see the entire boot log with human readable timestamps.

[–] WbrJr@lemmy.ml 5 points 1 week ago

puh, there is a lot in there. anything i should look out for?

[–] Strit@lemmy.linuxuserspace.show 6 points 1 week ago* (last edited 1 week ago) (1 children)

Do you use ZFS at all?

If not, you can try disabling the 2 zfs based services it mentions.

[–] WbrJr@lemmy.ml 3 points 1 week ago (1 children)

i thought about that, because i dont. but on the other hand i dont want to be confused later on when i want to use zfs and it does not work

[–] eugenia@lemmy.ml 4 points 1 week ago (1 children)

Which version of Mint did you install? The new version has zfs modules disabled by default, because they were creating long booting problems on people who were not even using zfs. I stumbled on the problem too, I had mint installed on a usb stick (full install) and on SOME computers, when booted, it would try to load zfs stuff, taking 1.30 minutes of trying to do some systemd job for it.I removed all zfs stuff and nothing got broken.

[–] WbrJr@lemmy.ml 1 points 1 week ago

i got the latest 2 days ago, so that should not be a problem. idk, i will just disable them i guess

[–] CameronDev@programming.dev 1 points 1 week ago

Are you running zfs on multiple slow spinning disks? Might just be that they are taking too long to spin up?

The kernel boot time is very slow, that is probably worth investigating first, but I dont have any theories there :(