1. Introduction
Last time, I covered i3, Sway, Qtile, and Openbox from the window managers that can be installed on CachyOS. For someone accustomed to desktop environments that can be used intuitively right after installation, these were quite a high hurdle.
This time, I've pulled myself together and would like to compare the boot systems that can be selected when installing CachyOS. In "Chasing Budgie ⑨ Let's make Budgie usable on CachyOS!", I introduced that GRUB had the shortest boot time, but Solus is fast with systemd-boot, and perhaps Limine is the way of the future.
At that time, I decided to just pick one and move on for the sake of comparing desktop environments, but I would like to compare them more carefully and think about which bootloader to choose when switching from Fedora to CachyOS.
2. Bootloaders compared
The first thing that appears when you launch the CachyOS installer is the bootloader selection screen. You can choose GRUB, systemd-boot, rEFInd, AI SDK/rEFInd, and Limine, but since GRUB is selected at the top, I assume this is the default. I am familiar with GRUB, and it would be fine to just press "Next" without thinking, but I am curious if GRUB is the best.
I proceeded with the installation without carefully looking at the CachyOS homepage, thinking "I'll just try it out!", but there is a page called "Welcome to the CachyOS Wiki Empowering your Arch Linux experience.", which also contains an Installation Guide and an explanation of the bootloaders that are the theme of this article.
It contains a table summarizing the features of each bootloader, explanations of their pros and cons, and concise guidelines for choosing a bootloader. Recently, web browser translation functions are excellent, so that might be the best thing to look at, but I have summarized my understanding and questions below.
(1) GRUBGRUB is the oldest, yet most widely used Linux boot manager among those currently available, and it works on almost every machine. Although it says "oldest", it seems that features like Btrfs snapshots can also be used.
On the other hand, it is described as being significantly slower than systemd-boot, rEFInd, and Limine because it is large and complex, and has many filesystem drivers. However, in the results I tried when installing CachyOS, GRUB was the fastest.
Since GRUB's reliability is guaranteed, if it is also faster, then GRUB is indeed a strong candidate. I would like to carefully verify if that is really the case this time.
(2) systemd-bootBecause its simple and efficient design ensures reliability and speed, you should choose systemd-boot if you prefer a simple setup and do not need features like snapshots.
Reading this document, I would think this is the fastest, and it is actually adopted in Solus and is fast. However, as mentioned above, I currently evaluate GRUB as being faster. Is that really the case? Will systemd-boot become the fastest as unnecessary things are skipped after repeating the boot process several times?
(3) LimineLimine is a modern and advanced bootloader. It not only supports Linux but also supports chainloading other loaders, and can boot on both UEFI and BIOS systems, but I thought the biggest selling point was that it supports Btrfs snapshots and is enabled by default in CachyOS. I will talk about the details later.
What you must be careful about here is that you cannot receive these benefits if you do not select Btrfs as the filesystem. Since the default is Btrfs, it will be Btrfs if you do nothing, but you can also select other filesystems, so be careful.
3. Specifications of the PC used for comparison and data acquisition method
For speed measurement, I used my usual PC for exploring the Linux forest. The data acquisition method is basically the same as last time. For details, please see "
GNOME is also fast! 〜 Viewing the Linux world from CachyOS ①".
One difference is that after turning on the computer, the boot menu is displayed and it is set to wait for keyboard input, but I have left that as is. The wait time is set to 5 seconds for GRUB, but Systemd-boot and Limine might have different values.
4. Comparison Results
Based on my experience so far, the second and third boots are faster than the first boot after installation. This time, I will show the systemd-analyze results up to the third boot in a table.
Since the firmware value depends on the computer's performance before the OS starts, the total excludes the firmware being compared. For the first boot, Systemd-boot and Limine were almost the same at about 20 seconds, while GRUB was a little less than 3 seconds slower. For the second boot, all were in the 17-second range, with GRUB being the fastest by a small margin. For the third boot, only GRUB was in the 17-second range, while Systemd-boot and Limine were in the 18-second range, but it can be said that there is almost no difference.
When I compared them last time, I think I was comparing the values for Limine and Systemd-boot from the first boot, whereas the GRUB value was from after it had been booted several times.
If the highly reliable GRUB, which works on almost all machines, has almost the same boot speed as Systemd-boot, which is considered simple and fast, then it makes sense to just use the highly reliable GRUB.
And if Limine's advanced features are good, then that would be the better choice. Since one of the advanced features seems to be a snapshot function, I decided to look into that.
5. How to use Limine's snapshot function in CachyOS
When you install with Limine, a Snapshots item also appears on the menu screen immediately after startup. And when you move the cursor there and press Enter, a list of the five most recent snapshots is displayed. It seems that snapshots are created automatically. This was the meaning of 'enabled by default in CachyOS'.
Does this mean that software is pre-installed to specify the timing for creating snapshots and to manage the created snapshots? When I looked in the System menu, I found a piece of software called 'Btrfs Assistant'.
I didn't know such software existed, so I re-installed with GRUB to check what it was like when installed with GRUB. The explanation I introduced at the beginning said 'Btrfs snapshot function can also be used,' and it wasn't written as being set by default, but Btrfs Assistant was also pre-installed with GRUB.
Then, looking closely at the boot menu, I saw that I could select a snapshot to boot from, and it seems that the usability regarding Btrfs snapshots does not change between GRUB and Limine.
To make it easy to understand what kind of software Btrfs Assistant is, I selected Limine, re-installed, and the screen after performing some operations is shown below.
It seems that by default, a snapshot is automatically saved just before installing software, and the command and date/time are displayed.
In the latest state, Google Chrome is installed, but when I selected a snapshot from before that was done, restored it, and restarted as instructed, it returned to the state before Google Chrome was installed.
Since Linux software is free to use, I often try installing various software just to see what it's like. I uninstall the software I decide not to use as a result, but depending on the software dependencies, that process can sometimes cause other software to stop working.
In that respect, if I can use snapshots to completely return to the state before installing that software, this is more reassuring. For someone like me who enjoys exploring the forest of Linux as a hobby, this can be said to be a welcome feature.
On the other hand, for those who view Linux simply as a tool, the automatic snapshot creation feature is unnecessary and only serves to slow down performance. Even though CachyOS is fast, creating snapshots in the background during software installation will inevitably cause a slowdown.
Furthermore, if you use it without knowing that snapshots are created by default, as I did, you end up in the unfortunate situation where you never use the snapshots, but still suffer from slower software installations. While it is convenient that it is included by default, I would appreciate some explanation. I think this is part of what makes the barrier to entry for Linux so high.
6. Conclusion
In this article, I compared GRUB, Systemd-boot, and Limine, which can be selected during the installation of CachyOS. I had assumed GRUB would be the fastest, but after repeating the boot process several times, I found that there is almost no difference between them.
If the boot time is almost the same, it seems that GRUB or Limine is a good choice if you want to use snapshots, and Systemd-boot is a good choice if you do not need snapshots.
Between GRUB and Limine, I decided to try Limine. While GRUB is fine if you just want to use snapshots, Limine is modern and advanced, likely has useful features I am not yet aware of, and I get the feeling that it will become the default in the future.
I have looked at desktop environments, window managers, and bootloaders based on CachyOS, but I will end this series here and start exploring AerynOS next time. I touched on AerynOS a little in "Everyone is fast! - A look at the Linux world from CachyOS (Part 2)", and it is a distribution that Doherty, who launched Solus, and Strobl, who completed Budgie for Solus, are working on after leaving the Solus project. What is it that they want to create so badly? I am sure the future of Linux lies there, so I would like to explore that.