Both versions are aligned block by block, in reading order: title, the essentials, then paragraph by paragraph. Where the translation merged or split a paragraph, the matching cell stays empty — we never pair two passages by guesswork.
Ein Linux-Server, dessen Kernel – der Kern des Betriebssystems – abstürzt, steht bisher still, bis er neu gestartet ist. Ein Fachbeitrag auf dem Portal Habr beziffert einen vollständigen Neustart auf bis zu mehrere Minuten. Hier setzt Kmorph an, ein Werkzeug des Linux-Entwicklers Cong Wang: Ein zweiter Kernel läuft bereits im Hintergrund, auf wenigen eigenen Prozessorkernen und einem Teil des Arbeitsspeichers, und übernimmt die Maschine, sobald der erste ausfällt. Laut Wangs Ankündigung vergeht rund eine Sekunde von der Fehlererkennung bis zum laufenden Nachfolger.
A Linux server whose kernel – the core of the operating system – crashes stays down until it is rebooted. A technical article on the Habr portal puts a full reboot at up to several minutes. This is where Kmorph comes in, a tool by Linux developer Cong Wang: a second kernel already runs in the background, on a few dedicated processor cores and part of the memory, and takes over the machine as soon as the first one fails. According to Wang's announcement, about one second passes between fault detection and the successor running.
Möglich macht das eine Erweiterung namens Multikernel: Mehrere Linux-Kerne laufen parallel auf derselben Maschine, jeder mit eigenen Prozessorkernen, Speicherbereichen und Geräten, ohne Virtualisierungsschicht. Bleibt der alte Kernel stumm – laut Hwbusters nach fünf ausbleibenden Antworten in Folge, bei den Standardwerten je eine halbe Sekunde –, friert der Nachfolger die alten Prozessorkerne ein und prüft, ob sie tatsächlich angehalten sind. Dieses Anhalten, im Fachjargon Fencing, verhindert, dass beide Kernel auf dieselben Ressourcen zugreifen. Scheitert die Übernahme innerhalb von zehn Sekunden, taut der alte Kernel alles wieder auf und bleibt im Dienst. Auf Wunsch sichert Kmorph außerdem ein Speicherabbild des Absturzes; das Projekt auf GitHub beschreibt sich als Ersatz für das übliche kdump.
The enabling mechanism is an extension called Multikernel: several Linux kernels run in parallel on the same machine, each with its own processor cores, memory areas and devices, without a virtualization layer. If the old kernel goes silent – according to Hwbusters after five consecutive unanswered checks, by default half a second apart – the successor freezes the old processor cores and checks whether they have actually stopped. This stopping, known in technical jargon as fencing, prevents both kernels from accessing the same resources. If the takeover fails within ten seconds, the old kernel thaws everything and stays in service. On request, Kmorph also saves a memory image of the crash; the project on GitHub describes it as a replacement for the usual kdump.
Die Zahl von zwei Sekunden stammt aus einem Test der Entwickler selbst: Ein vorbereiteter Nginx-Webserver beantwortete danach wieder Anfragen. Die Grenzen sind benannt. Dienste, die man vorab im Reservekernel startet, dürfen vor der Übernahme keinen dauerhaften Zustand schreiben und das Netzwerk nicht anfassen – prüfen kann Kmorph das nicht selbst. Dienste mit eigener Sandbox muss der Nachfolger nach dem Wechsel neu starten. Die Fachseite LWN.net, die den Code als Anfrage für Kommentare (RFC) dokumentiert, nennt die Tests begrenzt: Sie liefen nur auf dem Entwicklungsrechner des Autors, mit fest eingetragenen Startparametern. Linuxsecurity hält fest, dass nicht belegt ist, was bei jeder Anwendung während der Übernahme passiert, und dass ein Produktionssystem ohne verlorene Daten oder abgebrochene Verbindungen noch nicht nachgewiesen ist. Phoronix ergänzt, dass Kmorph derzeit nicht im Hauptzweig des Linux-Kernels läuft, dem sogenannten Mainline-Kernel, und offen bleibt, ob der Multikernel-Code dorthin gelangt.
The figure of two seconds comes from a test by the developers themselves: a prepared Nginx web server responded to requests again afterwards. The limits are spelled out. Services started in advance in the standby kernel must not write persistent state before the takeover and must not touch the network – Kmorph cannot verify this itself. Services running in their own sandbox must be restarted by the successor after the switch. The specialist site LWN.net, which documents the code as a Request for Comments (RFC), calls the tests limited: they ran only on the author's development machine, with hard-coded startup parameters. Linuxsecurity notes that it is not proven what happens to each application during the takeover, and that a production system without lost data or dropped connections has not yet been demonstrated. Phoronix adds that Kmorph is currently not part of the mainline Linux kernel, and it remains open whether the Multikernel code will make it there.
Für Betreiber von Servern, bei denen jeder Neustart Minuten Dienstzeit kostet, zählt vor allem die Verkürzung dieses Stillstands. Derselbe Weg soll geplante Kernelupdates tragen: Mit kmorph upgrade lässt sich die Übernahme auslösen, solange der alte Kernel noch funktioniert. Der Nachfolger kann dabei eine neuere Kernelversion fahren, und bei einem geplanten Wechsel entsteht kein Crash-Dump. Ein unterstütztes Produktionsrelease hat das Team bislang nicht angekündigt.
For operators of servers where every reboot costs minutes of service time, the key point is shortening this downtime. The same route is meant to handle planned kernel updates: the takeover can be triggered with kmorph upgrade while the old kernel still works. The successor can run a newer kernel version, and a planned switch produces no crash dump. The team has not yet announced a supported production release.
Einen weiteren Praxistest hat Clement Verna im Fedora-Projektforum vorgestellt. Er baut ein Fedora-45-bootc-Image, also ein Systemabbild, mit Multikernel-Kernel und Kmorph; das Hilfsprogramm kmorph-bootc bereitet den Nachfolger vor. Terminalaufzeichnungen zeigen die Übernahme nach einem per SysRq ausgelösten Absturz und den Wechsel auf ein neues Image mit neuer Kernelversion. Getestet wurde in einer virtuellen Maschine mit zwei vCPUs und 16 GByte Arbeitsspeicher auf einer Graviton3-Maschine, bei deaktiviertem SELinux, einer Sicherheitsfunktion des Systems. Pro Systemstart ist nur ein Wechsel möglich. Verna nennt das ausdrücklich einen Proof of Concept.
Clement Verna presented a further practical test in the Fedora project forum. He builds a Fedora 45 bootc image, a system image, with the Multikernel kernel and Kmorph; the helper program kmorph-bootc prepares the successor. Terminal recordings show the takeover after a crash triggered via SysRq and the switch to a new image with a new kernel version. The test ran in a virtual machine with two vCPUs and 16 GB of memory on a Graviton3 machine, with SELinux, a system security feature, disabled. Only one switch is possible per system boot. Verna explicitly calls it a proof of concept.
Der nächste Schritt ist der, den Wang selbst benennt: ein vollständig unterbrechungsfreier Betrieb, den er als Entwicklungsziel führt. Ob die Multikernel-Erweiterungen je in den Mainline-Kernel einziehen, ist offen.
The next step is the one Wang himself names: fully uninterrupted operation, which he is pursuing as a development goal. Whether the Multikernel extensions will ever make it into the mainline kernel remains open.