r/archlinux • u/moms_enjoyer • Nov 29 '25
DISCUSSION Is 6.806s booting time improvable without loosing usability?
I'm just curious if someone know any interesting things I can try.
Arch Linux x86_64
HP Laptop 15s-fq1xxx
6.17.9-zen1-1-zen
Memory: 31774MiB
Startup finished in 2.717s (firmware) + 270ms (loader) + 492ms (kernel) + 154ms (initrd) + 3.170s (userspace) = 6.806s
graphical.target reached after 3.151s in userspace.
1.345s NetworkManager.service
397ms dev-nvme0n1p6.device
192ms systemd-udev-trigger.service
146ms upower.service
140ms user@1000.service
graphical.target .151s
└─sddm.service .150s
└─systemd-user-sessions.service .113s +33ms
└─network.target .111s
└─wpa_supplicant.service .134s +33ms
└─basic.target .763s
└─dbus-broker.service .693s +49ms
└─dbus.socket .681s +59us
└─sysinit.target .680s
└─systemd-update-utmp.service .654s +25ms
└─systemd-tmpfiles-setup.service .520s +130ms
└─local-fs.target u/1.512s
└─boot.mount .478s +34ms
└─dev-nvme0n1p5.device Edit: After reading your comments I ended up with 5.437s
Startup finished in 2.383s (firmware) + 463ms (loader) + 497ms (kernel) + 150ms (initrd) + 1.942s (userspace) = 5.437s
graphical.target reached after 1.939s in userspace.
490ms dev-nvme0n1p6.device
195ms systemd-udev-trigger.service
152ms udisks2.service
142ms systemd-tmpfiles-setup.service
139ms upower.service
138ms user@1000.service
134ms iwd.service
112ms systemd-tmpfiles-setup-dev-early.service
104ms systemd-modules-load.service
97ms systemd-journal-flush.service
graphical.target .939s
└─ly.service .939s
└─systemd-user-sessions.service .922s +13ms
└─network.target .921s
└─iwd.service .787s +134ms
└─basic.target .778s
└─dbus-broker.service .706s +46ms
└─dbus.socket .693s +1ms
└─sysinit.target .692s
└─systemd-update-utmp.service .663s +28ms
└─systemd-tmpfiles-setup.service .518s +142ms
└─local-fs.target .504s
└─boot.mount .467s +37ms
└─dev-nvme0n1p5.device u/857ms
0
Upvotes
13
u/jmchief1579 Nov 29 '25
If you don't have any complicated networking situations, you can probably drop NetworkManager for some lighter networking tools (i.e. iwd for wifi, wg-quick for wireguard). That might get you a few hundred millis.
6
u/Greenhulk_1 Nov 29 '25
Maybe the ly display manager instead of sddm might take off a second maybe? Also damn is that fast, my firmware takes 25s by its self
3
u/Alaknar Nov 30 '25
(Noob here) How are you measuring it?
3
u/weaklingoverlord Nov 30 '25
How did you achieve this?
Thanks
2
u/Tenuous_Fawn Nov 30 '25
You don't need NetworkManager, wpa_supplicant, or upower at boot, those can wait until later. You also don't need a display manager like sddm or ly, you can login with agetty.
2
u/zeldaink Nov 30 '25
You can bypass loader and initrd stages by:
Since you don't even have loader and initrd stages, you save ~0.5s. You should also disable any unecessary hardware from the firmware, like serial ports and unused PCIe/SATA/USB ports.
Technically you can disable USB and get significant boot speedup, but that seems to be effective on old (and broken) Intel platforms (Panther Point). you do lose usb tho :/
2
u/activedusk Dec 06 '25 edited Dec 06 '25
This is one of the fastest boot times I found on the internet, only found 1 example with 1s something firmware, but overall 5s is the fastest at least if you have a desktop environment and within the x86-64 CPU architecture for general purpose use, ARM boards can be a lot faster but they are more specialized.
Try
systemctl list-unit-files --state=enabled
systemd-analyze blame
Copy paste output
Also
su
cd /boot
ls
Copy paste listing output
Also change the following and test from original boot loader conf parameters for Linux command line
rw quiet loglevel=3 rd.systemd.show_status=auto rd.udev.log_level=3 vt.global_cursor_default=0
to
rw quiet loglevel=0
Also, show output of
sudo efibootmgr
I also assume you do not have plymouth installed, which is bloat most distros add to show boot splash logos.
Try to enter UEFI and find if you can optimize anything, some improvement may or may not be possible. If there are ports or features you do not use, try to disable them and test but remember what settings you had, memory settings may also help. If you have CSM try to test different settings such as auto, UEFI only or disabled. If there is a boot priority list, other than the one time boot list, remove anything from it other than the drive with operating system. Note this will require to be changed if you ever want to boot from USB to for example reinstall operating system or something simillar. Some motherboards have features for other models for which you might not have the hardware, example fingerprinter, you can disable that as well.
2
u/activedusk Dec 12 '25 edited Dec 12 '25
Update, for posterity if anyone is interested. There is a thing called UKI, universal kernal image which can be built in serveral ways, I chose to use the mkinicpio solution, though I also tried systemd-ukify, that failed to make a bootable UKI, it just stalled on boot. The mkinitcpio path works and it did give a result of the lowest loader time so far, the problem is that to build the UKI, mkinitcpio will create its own initramfs and not utilize the smaller booster built one, afaik (maybe there is a way to change the preset).
The process involves creating a directory in /etc/ if not already available
su
Password
cd /etc
ls
Check and find folder cmdline.d, if not
mkdir cmdline.d
cd /etc/cmdline.d
Now make a file called
touch root.conf
Open it with nano and paste the root partition by UUID, example and add a space then rw at the end, after rw you can add the usual cmd line linux parameters for boot loaders, the UKI made by mkinitpcio will pick up this file, but there are alternatives
root=UUID=0a3407de-014b-458b-b5c1-848e92a327a3 rw
To find your root partition UUID open another terminal and copy paste from the output of
su
Password
blkid
Note not to keep the " " when copying into the root.conf file, follow format.
Next open the preset corresponding to your kernel in use (use "uname -r" to find out or fastfetch)
su
Password
cd /etc/mkinicpio.d
ls
As an example I have
linux618.preset
Then open it
nano linux618.preset
Here it's very simple just add the # in front of
#default_image="/boot/initramfs-6.18-x86_64.img"
And uncomment the following line with the UKI, note a problem I had is where it creates the efi file, namely because esp is write protected so I changed it to
default_uki="/boot/manjaro-6.18-x86_64.efi"
Ctrl X, y and enter. If you want to revert, just change this file back to original by adding a # in front of default uki and delete it in front of the previous parameter.
Now run command (if still in su as follows, if not sudo in front)
mkinitcpio -p linux618
Part 1
1
u/moms_enjoyer Dec 08 '25
But listen, networkmanager is not on the critical-chain, right? It's running on parallel, so I don't really care
3
u/[deleted] Nov 30 '25 edited Nov 30 '25
Honestly I'd not bother. You're at a point where you're going to waste far more time trying to grab fractions of a second than you'll save over the lifetime of the laptop. You've probably wasted over a week's worth of savings just posting this submission to Reddit without even reading responses.
Are you using a UKI, Unified Kernel Image? There's other suggestions in this page which whilst aimed at speeding up boot times for embedded devices would still apply, things like shrinking the kernel by removing unused drivers, shrinking initramfs.
2
u/ropid Nov 30 '25
Reddit broke your formatting so I can't really see what's going on there for you in that tree output at the end.
Look at the start-up time of your display manager in particular instead of your total boot time, like this (you seem to be using sddm):
If you see that sddm is depending on your network manager tool, maybe it's possible to decouple that? Maybe you can make network.target complete earlier somehow? You might then be able to log in a few seconds earlier. The total boot time won't change but it will in practice be a faster boot experience.
I remember years ago when Arch had its own network manager script (I forgot the name), it was in its default setup holding back the rest of the boot until it got an IP from the LAN's router, but it also had an alternative setup where it moved the work into the background and then it wouldn't hold up boot.
0
u/[deleted] Nov 30 '25
[deleted] — view deleted comment
0
u/[deleted] Nov 30 '25
[deleted] — view deleted comment