this post was submitted on 07 Oct 2023
723 points (98.1% liked)

Linux

48072 readers
1 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 6 years ago
MODERATORS
 

Apparently the reason my computer has been taking 2 minutes to boot was a faulty network mount

top 50 comments
sorted by: hot top controversial new old
[–] jsdz@lemmy.ml 155 points 2 years ago (5 children)

I'm pretty sure the main system startup bottleneck is me typing the disk encryption passphrase.

[–] astrsk@artemis.camp 28 points 2 years ago (3 children)

Combine that with the 20-30 seconds my system takes to do bios memory training on the DDR5 ram and we’re practically back to the “go make some coffee while the system boots up” days 🤦

[–] umbrella@lemmy.ml 7 points 2 years ago (1 children)

we need open source firmware

[–] DolphinMath@slrpnk.net 2 points 2 years ago* (last edited 2 years ago)

If only Coreboot supported more devices…

[–] c0mbatbag3l@lemmy.world 4 points 2 years ago (1 children)

Glad I haven't built a modern chipset PC yet, didn't realize it was this bad.

load more comments (1 replies)
load more comments (1 replies)
[–] fernandocarletti@lemmy.ml 8 points 2 years ago

I can relate to this hahaha

[–] magikmw@lemm.ee 6 points 2 years ago (3 children)

I wish to replace it with a yubikey, but I don't even know if it's supported.

[–] Ullebe1@lemmy.ml 13 points 2 years ago* (last edited 2 years ago)

It is supported by systemd to use FIDO2 + pin to decrypt luks partitions with many security keys, including Yubikeys. I use it every day on my laptop.

[–] Skeletonek@lemmy.zip 8 points 2 years ago (1 children)

It is, I have it set up on my laptop. It's a bit finicky in how it works and it's not easy to setup, but it is possible.

[–] stifle867@programming.dev 3 points 2 years ago (1 children)

Does it work by emulating the keyboard and typing in the password? Or by the encrypted protocol that works using the on device secret?

load more comments (1 replies)
[–] Contend6248@feddit.de 3 points 2 years ago

You can't even use a fucking fingerprint scanner while being in the system, that package is borked for months and nobody seem to care to solve it.

I think using Yubikey at boot time is quite out of reach

[–] lauha@lemmy.one 5 points 2 years ago

My system bottleneck is the damn Bios Post

[–] Flex@lemmy.world 3 points 2 years ago

Fucking true. Does anyone know why this is so slow?

[–] passepartout@feddit.de 105 points 2 years ago (3 children)

You can use systemd-analyze blame if you want raw numbers:

This command prints a list of all running units, ordered by the time they took to initialize. This information may be used to optimize boot-up times.

Good way to see if your systemd also waits 2 minutes for a network connection which already exists but it can't see it because systemd doesn't do the networking (lxc containers on proxmox in my case) lol.

Also see systemd-analyze.

[–] lud@lemm.ee 22 points 2 years ago

Also systemd-analyze critical-chain

[–] FrostyPolicy@suppo.fi 8 points 2 years ago* (last edited 2 years ago) (1 children)

systemd also waits 2 minutes for a network connection which already exists but it can’t see it because systemd doesn’t do the networking

Any way to speed this up? On my system in every boot it waits for network for 30s.

load more comments (1 replies)
load more comments (1 replies)
[–] RickyRigatoni@lemmy.ml 72 points 2 years ago (2 children)

Systemd has so many neat and useful tools that they never tell anyone about :(

[–] 4am@lemm.ee 13 points 2 years ago

Just like Ceph :(

load more comments (1 replies)
[–] Bitrot@lemmy.sdf.org 54 points 2 years ago (1 children)

systemd-analyze plot > plot.svg

[–] hare_ware@pawb.social 12 points 2 years ago

Honestly I laughed when it just spit an SVG in text at me. I was wholly expecting a GUI to appear.

[–] Pantherina@feddit.de 42 points 2 years ago (1 children)

Systemd can generate SVGs? Damn thats "bloat" but also unexpectedly fancy

[–] gentooer@programming.dev 44 points 2 years ago (1 children)

SVGs are just fancy text files after all

[–] intelati@programming.dev 4 points 2 years ago (1 children)

If you go far enough, everything is.

But SVGs are one of the few image types that can be human readable and editable

[–] halva@discuss.tchncs.de 9 points 2 years ago

No, not really. Most image formats produce completely unreadable jumbo only meant to be parsed with clever maths.

[–] Molecular0079@lemmy.world 28 points 2 years ago (1 children)

Is there a way to do this for shutdown? It'd be great to debug shutdown hangs.

[–] qaz@lemmy.world 4 points 2 years ago

No, there currently isn’t

And it's not as easy to add actually. Note that systemd only keeps units loaded as long as they are referenced by something else that is loaded, are running, have failed, or have a job queued. That means if a service is terminated at shutdown there's a very good chance it is GC'ed away pretty quickly. Now, while systemd keeps timestamping info around for services that tell us how long a service was running, took to start or took to shut down all that info is lost the instant the unit is GC'ed away...

Source

[–] gayhitler420@lemm.ee 25 points 2 years ago

I wrote a long-ish comment in another thread explaining why lots of people don’t like systemd.

Stuff like this is why people do like systemd.

The massive, un unixy and complex tools allow for very powerful and somewhat knowledge agnostic approaches to all sorts of problems.

One of the nicest things about systemds toolset is that it allows a person who relies on finding the problem and googling it to resolve thing much faster than their alternative, learn what’s going on and figure it out.

I don’t mean that as a pejorative, plenty of computer work is maintenance as opposed to engineering and there’s nothing wrong with that.

[–] TCB13@lemmy.world 25 points 2 years ago (1 children)

TIL: Systemd is great and despite its usefulness, it is often overlooked due to controversy and the current state of things when it comes to software development. https://tadeubento.com/2023/systemd-hidden-gems-for-a-better-linux/

[–] qaz@lemmy.world 3 points 2 years ago* (last edited 2 years ago)

Thanks for the article, I've already spotted a few utilities that can come in useful. I've heard a lot of criticism about systemd too, but never really actively used it myself until a few weeks ago. I actually quite like it from what I've seen so far.

[–] Pantherina@feddit.de 19 points 2 years ago (2 children)

My bottleneck at boot is my damn Bios... I am so hyped about flashing Heads on my Thinkpad T430.

Even the old legacy Lenovo bioses where very fast at startup. The UEFI (with extremely nice secure-boot settings too) of an AMD Acer starts up in like 2 seconds. My old intel Thinkpad T430 needs like 4 seconds.

And then my Lenovo T495 bullshit UEFI comes. No secure boot configuration at all, I have no idea how to boot from USB sticks, and this thing needs nearly 10 seconds to boot! Linux compared, a full Desktop OS, needs 3 seconds to show SDDM (after the LUKS dialog)

[–] Dkarma@lemmy.world 5 points 2 years ago (1 children)

I adore my T530. I could kill a moose with it if it ever stops working. Literally dug it out of a dumpster and saw the i7 sticker and almost shit myself. Honestly I've had it for years and never even looked at the bios cuz with an SSD even with encryption enabled on the disk it booted in 30 sec.

Until I built my latest rig I was doing ai image generation on it with 8gigs of ram.

[–] Pantherina@feddit.de 3 points 2 years ago* (last edited 2 years ago) (2 children)

If you have a T530, there is coreboot for it! Dont know if 1vyra.in works, check it.

Its not the question, if it works, but how it works! Its trustworthy and not extremely outdated proprietary garbage. Actually extremely important to update

load more comments (2 replies)
[–] caseyweederman@lemmy.ca 2 points 2 years ago (2 children)

Heads

Dang, my T410 is just too old.

load more comments (2 replies)
[–] OsrsNeedsF2P@lemmy.ml 16 points 2 years ago

The good ol' Gnome on Wayland on SystemD on GNU on Linux trick

[–] germanatlas@lemmy.blahaj.zone 13 points 2 years ago (2 children)

the only "bottleneck" i currently have is plymouth-quit-wait.service, which takes 3.9 seconds. i can live with that

[–] stifle867@programming.dev 10 points 2 years ago

I know you put bottleneck is quotes but just to explain... apparently this service is simply the splash screen that waits on a ready environment. It doesn't actually delay anything.

[–] Swedneck@discuss.tchncs.de 7 points 2 years ago

abrtd.service, 34 seconds..

thanks fedora, very cool

[–] miss_brainfart@lemmy.ml 12 points 2 years ago

It tells me that my system boots in 7 seconds. That's pretty cool, considering that it's installed on a plain old sata SSD.

POST, however...

[–] KairuByte@lemmy.dbzer0.com 9 points 2 years ago

I think you a word in your title.

[–] droidpenguin@lemmy.world 8 points 2 years ago

Dang had no idea this was a thing, but this looks very useful! I've been meaning to troubleshoot slow startup on one of my servers.

[–] lntl@lemmy.ml 6 points 2 years ago (1 children)

this is interesting! if i had a two minute boot time, I'd look for ways to figure out what's going on.

i remember init messages used to be printed to the console, but nowadays all i get is Manjaro branding. anyone know how to get my console messages back from systemd?

[–] unionagainstdhmo@aussie.zone 13 points 2 years ago

If you hit a key when the Manjaro logo is up (or maybe just ESC) it will go away and you'll get your messages back. Hit it again and you'll get the logo back. The splash screen is due to a program called Plymouth if you want to remove it permanently

[–] bc3114@lemmy.ml 5 points 2 years ago

Aha! Reminds me of the good old days when I tried to minimize boot up time on my puny Ivy Bridge i5 laptop. Those days were fun!

[–] Tenkard@lemmy.ml 4 points 2 years ago

Damn I really needed systemd analyzer to debug stuff! Thanks!

[–] Elocomanzo@lemmy.world 4 points 2 years ago (1 children)

How many times a day you guys reboot? 236? Mine takes like 17 seconds... Every week or so...

[–] ProtonBadger@kbin.social 2 points 2 years ago

11s on my laptop which i boot once a day, but it is useful for diagnostics. I had something hanging once during boot and it's pinpointed it right away.

[–] Rastlin@lemmy.world 3 points 2 years ago (2 children)

Anyone know about a Windows equivalent for my work laptop?

load more comments (2 replies)
load more comments
view more: next ›