Re: How fast can I get FBSD to boot?

From: Ralf Mardorf <ralf-mardorf_at_riseup.net>
Date: Wed, 17 Aug 2022 04:06:41 UTC
On Wed, 2022-08-17 at 06:15 +0300, Mehmet Erol Sanliturk wrote:
> FreeBSD is booting by loading very small parts step by step .
> 
> Linux is booting by loading very large files ( such as 7 MB , 30 MB ,
> ... ) as boot images to use .

This alone doesn't say anything about the speed. A large file of
assembled code could be faster, than a small script. A systemd parallel
startup could be faster, but might gain absolutely nothing, if parallel
starts are impossible, because units might depend on other units and can
only be started, after another unit is already running.

There is the need to optimise startup, whatever operating system, kernel
or init system you are using. Without doubts the fasted way is to start
as less as possible assembled code and no script at all. IOW avoiding
interpreter based languages, such as shell scripts and only
starting/using what is absolutely necessary.

The idea of "freezing" the state of a computer and to wake it up when
turning on the computer, is also a good way to improve startup speed,
but doesn't always work.