#optimize boot time

29 messages · Page 1 of 1 (latest)

slim cedar
topaz tusk
#

Firmware can't be changed

#

Your boot is pretty quick already

#

You'd have to recompile the kernel to reduce its load

simple socket
#

yea fr

#

you can possible change ur /sbin/init to bash (instead of systemd) to reduce boot time to 0 seconds (not recommended)

trim bloom
#

My MSI mobo takes so long to post I constantly worry it's not going to

hollow kestrel
#

why do i have memory context restore enabled... when it sometimes fucking looses the memory context

topaz tusk
#

binfmt_misc (Miscellaneous Binary Format) is a capability of the Linux kernel which allows arbitrary executable file formats to be recognized and passed to certain user space applications, such as emulators and virtual machines. It is one of a number of binary format handlers in the kernel that are involved in preparing a user-space program to r...

hollow kestrel
#

Now it takes longest to mount the disks...
I'd say there's nothing left to omptimize

undone grail
#

what’s your root fs? what kind of storage is it on (SATA/NVME)? and you’re not using full disk encryption right?

#

-# if the Linux kernel package you use doesn’t have the config options you can compile it yourself with the config changed, which is what i do

hollow kestrel
undone grail
#

I’m using no initramfs all (not even microcode since my motherboard has it preloaded), with EFI stub, and it’s very fast booting

#

Uki is great

hollow kestrel
#

no

#

it has that resolution because drivers are not yet initialised

#

and its using very basic display mode

#

thats just.. how it works

slim cedar
#

sorry apparently that page is super particular about how the words are capitalized

#

ig yeah, its just that i saw 3 seconds on ly i thought

#

sd-boot is significantly faster than grub
i recommend refind because its easier to use; its between sd-boot and grub

#

anyway the fastest improvement (in fact, the only noticeable improvement) i found was when i changed my init to runit

hollow kestrel
#

...because mounting your disks is now what takes the longest... since you made everything else faster

#

it didnt show up earlier becasue there was other stuff taking longer?!?

undone grail
#

for nvme (if you want to run without initramfs) you'd need to set CONFIG_NVME_CORE=y and CONFIG_BLK_DEV_NVME=y in the linux config: https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/blob/main/config?ref_type=heads#L2794-2795 and compile. I've never done a clean benchmark of how much faster running without initramfs is, but my current systemd-analyze is very fast without it:

Startup finished in 11.369s (firmware) + 151ms (loader) + 814ms (kernel) + 2.693s (userspace) = 15.029s
graphical.target reached after 2.692s in userspace.

the binfmt service can be masked to disable it if you don't use binfmts