Ghosts in the microkernel

※ Booklet keyboard, late night

♪ accompanied by Sultans of Swing

There is a folder of old documents that has followed me from computer to computer for years. Because I never automatically upgrade and prefer to move my files by hand when a machine is finally retired, I know everything that lives in there. Most of it is the usual sediment of a life spent near terminals: notes, old configs, datasheets for hardware I no longer own.

Near the top of that folder sits a file named fulltext.pdf. The file name tells you nothing at all, and I have never bothered to change it because I know perfectly well what it is, ever since I downloaded it from the Texas State University digital library. Inside is a paper by Dimitri Hammond titled FMI/OS: A Comparative Study.

To almost everyone today, even people who spend their nights writing kernels for fun, the name FMI/OS means nothing. Its mailing lists and project pages went quiet at the turn of the millennium. The system it grew out of, Andy Valencia's VSTa, is remembered only in dusty corners of operating system history. Yet every time I copied that folder onto a new drive, fulltext.pdf came along. Long before Rime had a name or a bootloader, the shape of what I wanted to build was waiting inside it.


When people talk about the history of hobbyist operating systems in the nineties, the story usually begins and ends with Unix. Everyone was cloning it, porting the GNU userland to it, and crowding device drivers, filesystems, and network stacks into one big kernel address space because that was the shortest path to running familiar software.

A few people looked at that path and walked the other way.

In Germany, Jochen Liedtke spent the nineties proving that the industry had learned the wrong lesson from the first generation of microkernels. After Mach struggled with performance, conventional wisdom decided that message passing between isolated processes was simply too slow for real work. Liedtke refused to believe that the idea itself was flawed. He argued that first-generation microkernels failed because they were still trying to do too much, and because their internals ignored the actual hardware beneath them.

His minimality principle was simple and unforgiving: something belongs inside the microkernel only if moving it outside would make the system unable to work. That left address spaces, threads, and inter-process communication. Nothing else. Filesystems, device drivers, pagers, and network protocols had no business living in ring zero. Liedtke built L4 to prove that if you stripped the kernel down to those bare mechanics and respected the processor, message passing could be fast enough to carry an entire operating system on its back.


Around the same time, Andy Valencia started writing VSTa, short for Valencia's Simple Tasker, on an Intel 386.

Valencia had worked on big commercial kernels, and when he sat down at home he didn't want another Unix clone. He liked the crisp message-passing discipline of QNX and the way Plan 9 treated everything as a file server with per-process namespaces, and he wanted to see what happened if you built a system around those ideas in small, readable C that one person could understand from top to bottom.

VSTa was remarkable for what its kernel didn't know. It knew nothing about files, directories, disk sectors, terminals, or network sockets. It had no concept of a superuser. What it had were processes, threads, virtual memory views, and message ports.

If you wanted to talk to an IDE controller or a serial port, you wrote an ordinary user program. That program asked the kernel for permission to touch its I/O ports, registered an interest in a hardware interrupt, and waited on its port. When the hardware raised an interrupt, the kernel turned it into a small message and handed it to the driver. A small naming daemon let servers introduce themselves to the rest of the system, and because the kernel had no filesystem of its own, the bootloader placed a handful of bootstrap servers into memory alongside the kernel so userland could pull itself awake.

When Valencia's work on VSTa eventually slowed down in the late nineties, Erik Dalén and Dimitri Hammond picked up the thread and began FMI/OS, the Flexible Microkernel Infrastructure Operating System.

They took Valencia's foundation and started cleaning the workshop: moving the toolchain and binaries cleanly to ELF, reworking the C library and build tree, and rethinking the rough edges of the kernel and its server interfaces. In FMI/OS: A Comparative Study, Hammond laid Mach, L4, QNX, VSTa, and FMI/OS side by side. The paper didn't treat operating systems like monuments; it treated them like mechanisms. It looked honestly at how messages are queued or handed off, how pages move between address spaces, how user-level pagers resolve faults, and where complexity hides when you move the operating system out of the kernel.

Like many small, principled systems built by a few people in their spare hours, FMI/OS eventually faded out in the early 2000s. The web moved on, hardware grew heavier, and the world standardized around a handful of massive kernels that no single person could ever read in a lifetime.


Architecturally, Rime borrows no code from VSTa or FMI/OS. There isn't a shared line, struct, or header anywhere in the tree.

When I started writing Rime from scratch, I had the benefit of two more decades of microkernel work that hadn't existed when Valencia, Hammond, and Dalén were writing code. Rime's kernel is about 17,000 lines of C and a few hundred lines of assembly. Its primitives are a deliberate mix of ideas that came later or from neighboring lineages: one-shot reply capabilities from L4/Fiasco, capability semantics and notification bitmasks from seL4, queued IPC with priority inheritance and external pagers from Mach, and flat generation-counted handles from Zircon.

On top of those, Rime adds pieces born out of its own needs on real hardware: kernel streams for bulk data, a kernel-mediated signal default, and DMA stop plans. On a machine without an IOMMU, a userspace driver that crashes while its hardware is actively writing to physical memory is dangerous if the kernel reclaims those pages too early. Before a Rime driver starts a DMA transfer, it hands the kernel a tiny recipe of port or register writes that will silence the device. If the driver faults and dies, the kernel runs that stop plan before a single DMA frame is freed.

The machinery inside the syscall gate is different. And yet, if you step back and look at how Rime wakes up and lives on the machine, the ancestry is unmistakable.

Just like VSTa and FMI/OS, Rime refuses to put a Unix kernel underneath or patch a foreign userland on top. Because the microkernel has no idea what a disk or a filesystem is, it boots with three small bootstrap servers embedded alongside it, init, ata, and fs, just enough to mount the root volume and bring the rest of the world into being.

Every piece of the system above that tiny kernel boundary is an ordinary user program in ring three. The external pager that backs memory regions, the PCI and ACPI servers, the USB controllers, the Atheros Wi-Fi driver, the Intel display driver, the audio server, the Adiantum disk encryption layer, the TCP/IP stack, the window manager: all of them are separate processes holding only the capabilities they were given, talking to one another across endpoints, notifications, and streams.


I am writing this article on the Booklet right now, running Rime.

The machine is running 67 processes and 133 threads across 887 capability handles, using a little over 50 megabytes of committed memory. In the corner of the screen, Dire Straits' Sultans of Swing, pulled down earlier from a Direct Connect hub, is playing through the userspace HDA driver while a green sine wave traces across the media player window, and the Atom processor sits nearly ninety percent idle. Every keystroke in this editor, every disk read, every network packet, and every frame of audio is just a series of messages crossing a 17,000-line kernel that still fits comfortably inside one person's head.

Listening to that guitar track while typing on a system that owes so much to their way of thinking, it is hard not to think of the people behind those nineties-era kernels as the Sultans of Microkernels. Software doesn't always pass on its lineage through git clone or a license header. Sometimes it passes through a way of looking at the machine: the belief that an operating system doesn't have to be an impenetrable cathedral, that the kernel should do only what nothing else can do, and that the bones of the system ought to remain visible.

Jochen Liedtke is gone now, and the others moved on to different chapters of their lives long ago. Dimitri Hammond is now a real estate investor. Erik Dalén is a Site Reliability Engineer. And Andy Valencia is probably still Andy, because his website is still up, as always.

They have never seen Rime, and their code isn't running on this netbook. Still, in a very real sense, those four people are my personal heroes. The quiet workshop they built in the nineties never really closed; its ghosts are still here, passing messages back and forth every millisecond the machine is awake.

Written by främling on Nov 10, 2026.

Text may be shared, with credit, and not for commercial use (CC BY-NC-SA).