Why Hacker News recommends it
6 comments from 2 distinct recommending readers, between 2023 and 2023.
- Recommends
Funny that this is what trends, and not the flame chart of the different boot times of different FBSD versions: twitter.com/cperciva/status/16590594456… At a glance looks like 13.1-RELEASE booted 3x faster than 11.1-RELEASE, and 14.0-CURRENT on Firecracker boots 45x faster than 11.1-RELEASE on a c5.xlarge
FreeBSD spends 7% of its boot time running a bubblesort on its SYSINITsRead the thread - Recommends
Colin (and others?) have been working to reduce the boot time of FreeBSD for a while now. At this point shaving off a few milliseconds is probably a nice win for them. twitter.com/cperciva/status/16593917254…...
FreeBSD spends 7% of its boot time running a bubblesort on its SYSINITsRead the thread - Cites it
> The kernel boot (of which 7% is bubblesort) is 28 ms. * twitter.com/cperciva/status/16595776252…
FreeBSD spends 7% of its boot time running a bubblesort on its SYSINITsRead the thread - Cites it
> though the list doesn't change from boot to boot, or for that matter from system to system; if we hit a worst-case we would notice before the release shipped. Wait what - why don't you just sort it at build time then? I'm probably misunderstanding what you are saying or maybe just a premature optimization. e: Nevermind, read further in the thread and saw you answered [0] [0]: twitter.com/cperciva/status/16595616732…
FreeBSD spends 7% of its boot time running a bubblesort on its SYSINITsRead the thread - Disagrees
One of the replies: twitter.com/cperciva/status/16595776252… So this bubble sort is just under 2ms. I think it's cool to find and optimize that, he says he'll put in a qsort and that's great. But 2ms? Probably not a huge deal.
FreeBSD spends 7% of its boot time running a bubblesort on its SYSINITsRead the thread - Cites it
As PHK points out [0] qsort was imported [1] into the kernel in 1995, it was simply never used for the boot process, but it is availible. [0]: twitter.com/bsdphk/status/1659568675899… [1]: github.com/freebsd/freebsd-src/commit/d…...
FreeBSD spends 7% of its boot time running a bubblesort on its SYSINITsRead the thread