Re: How fast can I get FBSD to boot?

From: Doug Hardie <bc979_at_lafn.org>
Date: Tue, 16 Aug 2022 18:00:22 UTC
-- Doug

> On 16 August 2022, at 10:57, Andreas Kusalananda Kähäri <andreas.kahari@abc.se> wrote:
> 
> On Tue, Aug 16, 2022 at 10:47:12AM -0700, Doug Hardie wrote:
>>> On 16 August 2022, at 08:05, Alejandro Imass <aimass@yabarana.com> wrote:
>>> 
>>> Hi there !
>>> 
>>> I’ve developed a nice framework for embedded touch screen app development based on Perl Tk. 
>>> 
>>> I would like to create a single purpose OS that you can boot on a Raspberry Pi or similar device and debating between sticking with Linux or using FBSD (I would prefer FBSD). It needs to boot in just a few seconds and only load X and then run a dedicated Perl app (no desktop env or anything else).
>>> 
>>> Is there a group or list for embedded FBSD ? Can anyone provide some pointers on how to make FBSD boot as fast or faster than some of the embedded Linux out there ?
>> 
>> RSX-11D solved that problem by having a console command that wrote all of memory to a specific disk file.  You got the system setup the way you wanted and then entered that command.  You could add additional commands to start your application to that command.
>> 
>> On boot, I believe the hardware was initialized first, and them memory was completely overlaid from the file and then the CLI executed any additional commands.  It was faster than greased lightening.  On the PDP-11/45 it was way less than one second.
>> 
>> That would take some serious modifications to FreeBSD to implement that, but I don't think you would find anything faster.
>> 
>> -- Doug
>> 
>> 
> 
> That almost sounds like suspending to disk ("hibernation") on
> halt/poweroff and then resuming instead of booting.
> 
> -- 
> Andreas (Kusalananda) Kähäri
> SciLifeLab, NBIS, ICM
> Uppsala University, Sweden
> 
> .