Kmorph announced for rebootless Linux kernel crash recovery
The Kmorph open-source project aims to recover Linux systems from kernel crashes without a reboot, with service recovery taking as little as about two seconds in an Nginx example.
The Kmorph open-source project has been announced to provide rebootless recovery from Linux kernel crashes. It is built around out-of-tree Multikernel work, so it does not currently work with the mainline Linux kernel, and wider adoption depends on whether that work reaches mainline.
Kmorph uses multiple independent kernel instances on the same physical system. A successor kernel is booted in advance and monitors the running predecessor; if the predecessor panics or hangs, the successor takes control of CPUs, memory and devices, restores the network identity and becomes the machine’s kernel without a reboot. The project says detection to a running successor takes about one second.
Important systemd services can be kept in standby on the fallback kernel. In the example given for Nginx, the service could return online in as little as about two seconds after a kernel crash, before less important services restart. Kmorph also supports handing a healthy machine to a successor running a newer kernel through its upgrade command.
The project currently works on x86_64 and ARM64, while RISC-V support is in progress. Its orchestration is written in C and integrates with distribution components including dracut, initramfs-tools, kernel-install and systemd; the code is available on GitHub.