Re: How fast can I get FBSD to boot?

From: Ian Smith <smithi_at_nimnet.asn.au>
Date: Wed, 17 Aug 2022 04:52:45 UTC
On 17 August 2022 11:04:05 am AEST, Ralf Mardorf <ralf-mardorf@riseup.net> wrote:

 > On Tue, 2022-08-16 at 18:54 +0100, Steve O'Hara-Smith wrote:
 > > You could probably torture the suspend/resume mechanism into doing
 > > the job.

Notoriously difficult to get reliable suspend/resume working on any platform, especially when later versions of FreeBSD break it again ...

But yes, that would be the fastest way, assuming the particular hardware could support it, and both battery and RAM are sufficient.

And of course you still need to boot fully initially or on battery expiry, but that's just initialisation.

 > Hi,
 > 
 > this will probably not work for all usages, for example not if the
 > jackd
 > sound server is involved. At least on Linux jackd would fail to work.

 > FWIW if fast booting is a concern I would use whatever embedded
 > operating system would fulfil the requirements, FreeBSD, Linux,
 > Windows
 > or something else.

It's one concern, anyway.

 > Apart from a few exceptions fast booting usually doesn't matter to
 > me.
 > One exception is my camera. I don't know what Sony does use. I can
 > simply turn the camera on and it's ready. I don't know how many
 > micro-
 > or milliseconds it takes, but it's probably less than a second, at
 > worst
 > not much more than a second or two.

I suspect most cameras don't boot as such, but resume from sleep when 'turned on'.  Probably suspending to onboard flash rather than dynamic RAM, to greatly ease battery drain.

I don't know if any of this is helpful to Alejandro's requirements ...

cheers, Ian