Re:MotorOS: a Rust-first operating system for x64 VMs
by zokier on Monday January 08, 2024 @02:03AM
(#38909016)
4 months ago we had FreeBSD booting in 25ms. That gives some insight where the bottlenecks might be: https://news.ycombinator.com/item?id=37319180
Re:MotorOS: a Rust-first operating system for x64 VMs
by Veserv on Monday January 08, 2024 @01:59AM
(#38909001)
In general, lots of hardware requires long waits to initialize. As in, program a value then you must wait 50 ms before querying the registers or the hardware will give you non-deterministic garbage with no error indication.
So, it depends on the hardware, though you are unlikely to need more than 1 second on anything other than truly degenerate hardware assuming you are initializing devices in parallel.
Re:MotorOS: a Rust-first operating system for x64 VMs
by azinman2 on Monday January 08, 2024 @02:27AM
(#38909121)
But it’s only for VMs. So what hardware are you initializing?
Re:MotorOS: a Rust-first operating system for x64 VMs
by Modified3019 on Monday January 08, 2024 @04:21AM
(#38909769)
I pass through a GPU and USB hub to a VM running on a machine in the garage. An optical video cable and network compatible USB extender brings the interface to a different room making it my primary “desktop” computer (and an outdated laptop as a backup device). Doesn’t get more silent and cool than this. Another VM on the garage machine gets a bunch of hard drives passed through to it.
That said, hardware passthrough/VFIO is likely out of the current realistic scope for this project. VM boot times can be optimized if you never look for hardware to initialize in the first place. Though they are still likely initializing a network interface of some sort.
“MicroVM” seems to be a term used when as much as possible is stripped from a VM, such as with https://github.com/firecracker-microvm/firecracker
Re:MotorOS: a Rust-first operating system for x64 VMs
by Quentincestino on Monday January 08, 2024 @06:47AM
(#38910701)
Because of the debug mode
Re:MotorOS: a Rust-first operating system for x64 VMs
by lasiotus on Monday January 08, 2024 @10:34AM
(#38913398)
Yes! And because of sandbagging :)
Re:MotorOS: a Rust-first operating system for x64 VMs
by Voultapher on Monday January 08, 2024 @08:14AM
(#38911440)
Many years ago I contributed to IncludeOS and that thing could boot a vm in a millisecond under the right circumstances, allowing for things like per request vm isolation. So I suspects it's a mix of hardware circumstances and the way the microkernel is implemented.
Or is all the slowness in the host preparing the resources? (as in QEMU and KVM?)