Microkernels: a thirty-five year argument
In January 1992, Andrew Tanenbaum told a Usenet newsgroup that among people who actually design operating systems, the debate was over and microkernels had won. He was wrong for about thirty years. Linux ate the world. Mach became a punchline. The GNU Hurd never really shipped.
Then, in October 2024, Huawei put a capability-based microkernel underneath a mass-market consumer phone, and it worked. Meanwhile a formally verified microkernel from Sydney had spent a decade quietly becoming the default choice for anything where a kernel bug means someone dies.
So who won? The honest answer is that the question was badly posed, and it took the industry three decades and one very public flame war to figure out why. Here is how it went.
The idea
The core insight predates the word. Per Brinch Hansen's RC 4000 "nucleus" in 1969 proposed that a kernel should provide only a mechanism for processes to communicate. Everything else — file systems, drivers, network stacks — belongs in ordinary user processes. Carnegie Mellon's Hydra in the 1970s added capability-based protection, the idea that access rights are unforgeable tokens a process holds rather than entries in a global table the kernel consults.
The appeal is structural. A monolithic kernel is one enormous program running with total authority over the machine, where a bug in a printer driver can corrupt the file system. Push the drivers out into user processes and a driver crash becomes a process crash. The kernel shrinks to something you might actually be able to reason about.
The cost is that everything now requires message passing across a protection boundary, and protection boundaries are expensive.
The first generation, and why it failed
The 1980s produced the first real crop. Mach, developed at CMU from 1985 under Rick Rashid and Avie Tevanian, was the most influential by far. It was BSD-derived, it became the base for NeXTSTEP and later XNU in macOS and iOS, and it anchored both OSF/1 and the GNU Hurd. Alongside it ran Chorus in France, Amoeba (Tanenbaum's distributed system), QNX from 1982 (commercial, real-time, descended from Waterloo's Thoth), and MINIX, Tanenbaum's 1987 teaching system.
Mach is also what gave microkernels their bad reputation. IPC cost hundreds of microseconds. The cache footprint was terrible. Every serious attempt to build a Unix on top of it produced something measurably slower than the monolithic kernel it replaced. NeXTSTEP eventually gave up and folded BSD back into kernel space, which is why XNU today is a hybrid rather than a true microkernel. By the mid-1990s the working consensus was that the design was elegant and impractical.
The flame war
The famous argument happened in comp.os.minix between late January and mid-February 1992, and it is worth reading because almost nobody in it argued the way the legend says they did.
Tanenbaum opened on 29 January under the subject line "LINUX is obsolete." His case had two prongs. On architecture, he listed RC4000, Amoeba, Chorus, Mach and the unreleased Windows NT as microkernel systems, cited Rashid's Mach 3.0 performance papers as evidence that the old speed objection was dead, and called writing a monolithic kernel in 1991 a giant step back into the 1970s. On portability, he predicted RISC would displace x86, so binding a kernel to the 386 was a mistake. MINIX had been ported to 68000, SPARC and NS32016. Linux had been ported nowhere.
Torvalds replied the same day, and the reply is nastier than people remember. He went after the framing before the substance: Tanenbaum made money from MINIX while Linux was free. Being a professor, he said, was a fine excuse for MINIX's brain damage.
But then he conceded the architecture point immediately. Microkernels are nicer. On theoretical and aesthetic grounds, Linux loses. His counter was that MINIX did not actually do the microkernel thing well, with its single-threaded file system and its lack of real multitasking in the kernel. And on portability he drew the distinction that turned out to matter: the Linux API was portable because it followed Unix and POSIX, while the implementation was 386-specific by choice. He noted that the entire Linux kernel source was smaller than just the i386-dependent portion of Mach.
Tanenbaum's rejoinder defended MINIX's limits as pedagogical, since it had to run on a diskless 4.77 MHz PC, dismissed multithreaded file systems as a performance hack, and told Torvalds he should be thankful he wasn't his student, because that design would not earn a good grade. He extended the metaphor: a second F for the term, with a chance to pass on the final.
Torvalds apologised the next day for his tone, signing off as a hothead in his first and hopefully last flamefest.
The parts people forget
The thread's best technical content came from third parties, and their objections to Tanenbaum were sharper than Torvalds'.
Ted Ts'o cited Brent Welch's argument that the file system is a mature enough abstraction to belong in the kernel, and raised context-switch and copying costs in OSF/1 Mach for network traffic. That is precisely the problem that would sink Mach commercially. Lawrence Foard complained that OS theorists never test their ideas; Tanenbaum replied that he was mortally insulted and not a theorist, pointing at OSF, Chorus at USL, Amoeba, and QNX's 200,000 installed systems.
Peter da Silva defended microkernels from a completely different direction. AmigaOS was a message-passing microkernel design running on three million machines with better response time than anything else on a PC, and it had been shipping for years while everyone argued about research systems.
Ken Thompson posted a short, dry note: microkernels were probably the future, but a monolithic kernel is easier to implement, and also easier to turn into a mess as it is modified. Several people, including David Megginson and Douglas Graham, questioned whether MINIX was really a microkernel in the sense Mach was.
Then Tanenbaum posted "Unhappy campers," and the debate stopped being about kernels. He identified three sticking points, the third being whether software ought to be free, defended MINIX's $169 price, and asked whether Torvalds would ever let Linux out of his control. Torvalds' answer was two words: he wouldn't. He had already floated the idea of a kernel mailing list to make release decisions. Tanenbaum invoked Harlan Mills' surgical-team model and argued that a widely dispersed group hacking on complicated code without one person in charge produces anarchy.
That exchange, not the microkernel one, is what the next thirty years actually tested.
The third path nobody was arguing for
Six weeks after Tanenbaum's post, on 12 March 1992, Bill and Lynne Jolitz released 386BSD 0.0. Half the posters in the thread had been waiting for exactly this. Charles Hedrick and Richard Tobin both said they would jump ship the moment a free BSD or GNU appeared. Torvalds himself said in later years that if 386BSD had existed when he started, he probably would not have bothered writing Linux.
Jolitz never participated in the microkernel argument, as far as any surviving archive shows. His own famous 1992 Usenet post came in March, and it was about his split from BSDI, not about kernel structure. But his writing on kernel design is more interesting than his absence from the thread suggests.
In the very first installment of "Porting UNIX to the 386" in Dr. Dobb's Journal, published a full year before the debate, he asks why Unix kernels are so big and complex and answers it himself: different groups claim a piece of the kernel to further their own agendas, instead of redesigning for common support or moving out things that really belong in an application process. He cites the rumour that SVR4 alone contained fourteen filesystems that were variations on a theme, calls it a Chinese menu approach producing a bloated kernel that is hard to enhance or maintain, and says standards by accumulation do not work.
That is a minimality argument, published by a monolithic-kernel author, in a series Torvalds was reading while writing Linux.
By 386BSD Release 1.0 in October 1994, Jolitz had gone further. The release notes describe a kernel composed of independent modules, compile-time configuration replaced by a run-time metaphor, interface scope explicitly controlled at four levels (module, class, kernel, user), and module interfaces exportable to user mode or to the network. There are kernel threads, address-space sharing, and a stated goal of eliminating panic() entirely in favour of containing the damage, shedding the affected control path, releasing resources, and recovering integrity.
That last item is the microkernel reliability argument, the one Tanenbaum would make again about MINIX 3 a decade later, pursued from inside a monolithic BSD. Loadable modules were the compromise that made the pure monolithic-versus-microkernel framing obsolete in practice, and Linux adopted them in 1995.
L4: the implementation was the problem
Jochen Liedtke at GMD in Germany refused to accept that microkernels were inherently slow. His argument was that Mach was a bad implementation, not a bad idea, and he proved it with numbers. L3 in 1993 and L4 in 1995, hand-written in assembly, achieved IPC roughly ten to twenty times faster than Mach.
His 1995 SOSP paper "On µ-kernel construction" gave the field its governing principle: a feature belongs in the kernel only if moving it out would prevent the system from meeting a functional requirement. Not "if it's faster there." Not "if it's convenient." Only if the system otherwise cannot work.
L4 spawned a family: Fiasco at Dresden, L4Ka::Pistachio at Karlsruhe, and OKL4 from Open Kernel Labs, which shipped in billions of phone basebands and Qualcomm modems. Most people carrying a phone in 2010 were carrying a microkernel and had no idea. Liedtke died in 2001; his students carried the work on.
seL4: proving it
Gernot Heiser, one of Liedtke's collaborators, moved to UNSW Sydney and then NICTA. Around 2004 his group started asking a question that follows naturally from Liedtke's minimality principle: if the whole point of a microkernel is a tiny trusted computing base, and the base is tiny, could you formally prove it correct?
seL4 was a redesign rather than a verification of existing L4. Its key move was replacing ad-hoc memory management with a capability system in which all kernel memory is explicitly accounted for by user level, so the kernel never allocates dynamically. That makes the kernel's behaviour tractable to reason about.
In 2009 Gerwin Klein and colleagues published the functional correctness proof at SOSP: a machine-checked Isabelle/HOL proof that roughly 8,700 lines of C matched an abstract specification. Later work added binary-level proofs, removing the compiler from the trusted base, plus integrity, confidentiality, and worst-case execution time analysis.
NICTA open-sourced the kernel and the proofs in July 2014. The seL4 Foundation launched on 7 April 2020, initially hosted under the Linux Foundation, and is now becoming its own Swiss association. DARPA's HACMS program gave the technology its public demonstration when a Boeing Unmanned Little Bird running seL4-based software resisted a red team that had root access on a non-critical partition and still could not reach the flight controls.
Verification continues. The AArch64 port has now gained a proof of confidentiality enforcement, on top of functional correctness and integrity, showing formally that an application running on seL4 cannot learn information it is not authorised to see.
HongMeng: the consumer bet
Huawei began work on what became the HongMeng kernel around 2016 or 2017. The project became urgent after the May 2019 Entity List placement threatened its Android access. HarmonyOS launched later that year, described from the outset as microkernel-based, and reached phones and tablets with version 2.0 in 2021.
The microkernel claim was contested for years, and fairly so. HarmonyOS 1.x through 4.x on phones ran a Linux kernel with AOSP compatibility layers. The actual microkernel shipped mainly on watches, IoT devices, and trusted execution environments. Heiser and others criticised the marketing publicly. The open-source portion, OpenHarmony, was donated to the OpenAtom Foundation in 2020.
HarmonyOS NEXT changed that. Announced at HDC on 4 August 2023 and released in October 2024 as HarmonyOS 5, it drops the AOSP layer entirely, cannot run APKs, and runs on the HongMeng microkernel over OpenHarmony. Huawei published a paper at OSDI 2024 describing HongMeng as a capability-based multi-server microkernel engineered for general-purpose performance and Linux ABI compatibility. All new Huawei devices in China now ship it, with international expansion targeted for 2026.
The connection to seL4 is intellectual rather than genealogical. HongMeng borrows the capability model and the formal-verification ambition that seL4 established, and Huawei's formal methods teams cite that literature, but it is a separate codebase and its verification claims cover components rather than the whole kernel to seL4's standard.
So who won
Tanenbaum was right that microkernels were the better architecture and wrong about almost everything else. He was wrong about RISC displacing x86 on the timeline he predicted. He was wrong that the performance question was settled in 1992, since Mach's overheads were real and it took Liedtke three more years to fix them. He was most wrong about coordination, arguing that distributed development without a single controlling architect produces anarchy, at exactly the moment Torvalds was inventing the thing that disproved it.
Torvalds was right that availability beats elegance and that a portable API matters more than a portable implementation. He conceded the architectural point in his very first reply and has never really taken it back.
And the actual resolution came from neither of them. It came from Liedtke, who showed the performance objection was an implementation artifact; from Heiser's group, who showed a small kernel can be proven correct rather than merely asserted to be; from Jolitz and later Linux itself, whose loadable modules dissolved the binary framing; and now from Huawei, testing whether any of it survives contact with a billion consumers.
Thirty-five years on, the microkernel argument turns out to have been the wrong argument. The right one was about how small the part you have to trust can be made, and whether you can prove anything about it. On that question, the answer keeps getting better.
Sources: the full "LINUX is obsolete" thread is reprinted as Appendix A of Open Sources: Voices from the Open Source Revolution (O'Reilly, 1999). Jolitz's Dr. Dobb's series is archived on the Internet Archive as "Porting Unix to the 386," and the 386BSD 1.0 and 2.0 trees are on GitHub. seL4's proofs and verification status are documented at sel4.systems.
No comments:
Post a Comment