this post was submitted on 21 Jul 2023
26 points (88.2% liked)

Linux

48051 readers
802 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
 

my windows install used to boot in 20 seconds - from power button press to desktop. my manjaro install takes over twice as much at about 45 seconds. what are the typical ways to reduce boot times on linux? where should i start?

top 14 comments
sorted by: hot top controversial new old
[–] Kruemel@feddit.de 23 points 1 year ago* (last edited 1 year ago) (1 children)

systemd-analyze plot > plot.svg gives you a picture to look at what takes so long. Read here: https://wiki.archlinux.org/title/Improving_performance/Boot_process

I'm, too, more happy with systemd boot than i was with grub lately but mostly because of the cool looks.

[–] april4356@lemmy.world 9 points 1 year ago (2 children)

thanks, the pic is very clear and easily digestible. it seems that plymouth-quit-wait.service takes the longest (~23s). if i understand correctly, plymouth is essentially just some boot animation. is it a good idea to remove/disable/skip it?

[–] YonatanAvhar@programming.dev 2 points 1 year ago

Yes, Plymoith is just the splash screen, you can try disabling it and seeing if it helps

[–] Kruemel@feddit.de 2 points 1 year ago

I'm happy it worked out well!

[–] Lancaban@kbin.social 16 points 1 year ago

This article might help:

https://itsfoss.com/check-boot-time-linux/

specifically, the command : systemd-analyze blame

This will show a list of processes that run during boot, and exactly how long each one takes, which can help identify any specific bottlenecks.

The article goes into a bit more detail, I recommend it as a starting point.

[–] cybersandwich@lemmy.world 12 points 1 year ago (1 children)

My guess is something is hanging or not configured correctly. Like a mount or a networking device or something. It will sit there and retry a bunch before moving on.

PopOS lets me hit escape during the boot process and see a live view of whats happening. I don't know if that exists on Manjaro. Otherwise, you can look at /var/log/boot.log to see if something's failed (it also might save in boot.log.1, boot.log.2, etc).

@Kruemel@Kruemel@feddit.de 's advice seems cool but I've never tried that before.

[–] moreeni@lemm.ee 4 points 1 year ago

If you want to see what's happening during boot you should remove quiet from your kernel parameters

[–] hitagi@ani.social 7 points 1 year ago (1 children)

I did not make any accurate benchmarks but I think my boot time is faster with systemd-boot as opposed to grub.

[–] atlasraven31@lemm.ee 1 points 1 year ago (1 children)

Is tinkering with boot types something you would recommend to a beginner? Is it safe?

[–] Ashiette@lemmy.blahaj.zone 1 points 1 year ago

It is definitely not beginner-friendly. But not undoable.

[–] Max_P@lemmy.max-p.me 5 points 1 year ago (1 children)

Also worth mentioning that Windows technically cheats. When you shut down modern Windows (starting with 8 AFAIK), it doesn't truly shut down, it logs you out to the login screen and then hibernates. So when you boot back up, it can quickly restore state which makes it come up much faster as it doesn't have to start everything back up from scratch.

45 seconds is a bit on the long end for Linux though, both my desktop and netbook boot in around 10-15 seconds.

[–] april4356@lemmy.world 2 points 1 year ago

i am indeed aware of "fast startup". that and hibernation are one of the first things i disable on every windows install.

after removing plymouth, i managed to reduce the boot time to my desired 20 seconds. seems fine for a desktop. cheers!

[–] BaldProphet@kbin.social 4 points 1 year ago

In addition to the aforementioned network wait service, on my laptop virtualbox.service adds 7 seconds of boot time.

[–] Anarch157a@lemmy.world 4 points 1 year ago

One thing that was making the boot taking too long on my LXC containers systemd-networkd-wait-online.service, a service that waits for every link to be up. After I figured this, I added that service to the list of stuff I turn off, even on bare-metal installs.

load more comments
view more: next ›