News for hackers. Stuff that matters.
Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re... by PMunch on Monday August 21, 2023 @04:44AM (#37206873)
Wouldn't hibernating the machine and then copying the hibernation data to another machine do the trick? Sure it wouldn't be as instant, but it would skip most of the boot configuration.
Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re... by Angostura on Monday August 21, 2023 @05:08AM (#37207019)
Possibly a bit fragile if there is any situation where one day the other machine isn't entirely identical? (just hand-waving here)
Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re... by j16sdiz on Monday August 21, 2023 @05:11AM (#37207033)
The usual culprit is CPU feature flags on different CPU generations.
Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re... by LeifCarrotson on Monday August 21, 2023 @09:36AM (#37209423)
Well then wouldn't you just have one image file for each CPU generation in your datacenter. Or better yet, have one image file on the hypervisor for each individual machine! That machine is probably dedicated to Lambda instances and boots them 1000x per day, if you're spending valuable time that's actually customer-facing latency on each call to reboot the system then switch that memory<->time tradeoff back towards memory!
Re:FreeBSD replaces bubblesort with mergesort on SYSINTs, re... by throwawaylinux on Monday August 21, 2023 @07:29AM (#37208065)
Conceptually at a high level yes (if the hardware was ~identical). Resuming from hibernation on the same machine resuming from hibernation is basically loading an image into memory and executing it that OP asked about too. But in either the resume or hypothetical hypernation migration cases, you can't just start running where the previous boot left off, you have to go through hibernation resume functions which basically do the same thing as boot in terms of configuring hardware.

On virtual machines there probably isn't nearly so much real hardware to set up, and hypervisors can optimize virtual device setup. The machine image could also be provided via COW snapshot of memory. So I don't know, possibly at some corners it could be faster to do a resume type operation than a full boot. I haven't played with hypervisor guest boot at these kinds of speeds before.