OpenBSD takes much longer time to boot than FreeBSD. Why? #84
Replies: 5 comments 2 replies
-
What boot times are you seeing? I am seeing ~30s for FreeBSD 14.0 and ~45s for OpenBSD 7.5, which looks ok to me. Both are on amd64/Ubuntu-22.04/QEMU. |
Beta Was this translation helpful? Give feedback.
-
Even in your timings I can see a bit of a slowdown, but 15s is ok. My results are significantly worse. My whole setup step (boot + install packages):
The versions are FreeBSD 14.0 and OpenBSD 7.4. I'll try the newer version of OpenBSD. Actions logs (don't forget to enable timestamps) |
Beta Was this translation helpful? Give feedback.
-
I guess that's still inside normal variance, depending on how busy the host runners are. My OpenBSD 7.4 timings are about the same as OpenBSD 7.5. As for installing packages, that is expected I would say. OpenBSD filesystem access is way slower than any other modern OS in my experience. Enabling |
Beta Was this translation helpful? Give feedback.
-
In my experience (by running VMs locally) OpenBSD is a bit slower to boot. But as @manxorist mentioned, it should be within normal variance. For the latest release of this action the fastest FreeBSD job took 29 seconds (full job, doesn't include much more than booting). The fastest OpenBSD job took 34 seconds. There are definitely cases where FreeBSD takes longer than that. IIRC, OpenBSD is doing some extra work, like relinking the kernel, or something similar, for every boot.
When it comes to solutions, I think there are a lot to do or at least try and experiment with. It's just a matter how much work and time one wants to spend on the issue. Firecracker can boot a Linux VM in 125 ms, so there's no technical reason why booting OpenBSD, or FreeBSD for that matter, can't be made faster. Here are a few things:
Unfortunately I'm not an expert on these things. I had not used FreeBSD or OpenBSD before staring this project. It seems like a fun project to get *BSD running inside Firecracker, but I'm doing all this work on my very limited spare time. Adding another project that will take up a lot of time might not be the best idea at this point. If someone wants to help an experiment with these things that would be great. |
Beta Was this translation helpful? Give feedback.
-
Maybe using See https://man.openbsd.org/mount
|
Beta Was this translation helpful? Give feedback.
-
That's it.
I noticed that OpenBSD boots longer. Is that something related to OpenBSD itself and there's nothing to do about it.. Or is it something we can improve?
Beta Was this translation helpful? Give feedback.
All reactions