Fast, Secure, Adaptable: LionsOS Design, Implementation and Performance

Gernot Heiser, Ivan Velickovic, Peter Chubb, Alwin Joshy, Anuraag Ganesh, Bill Nguyen, Cheng Li, Courtney Darville, Guangtao Zhu, James Archer, Jingyao Zhou, Krishnan Winter, Lucy Parker, Szymon Duchniewicz, Tianyi BaiarXiv 2025 · DOI

Introduction

In safety-critical domains such as autonomous vehicles, medical instrumentation, and aerospace, the operating system (OS) serves as the foundational layer of trust. The seL4 microkernel has emerged as the gold standard for these environments due to its formal mathematical proof of correctness. However, seL4 is often described as the "assembly language of operating systems"—it is extremely low-level and lacks the high-level abstractions (like networking stacks or file systems) required for modern application development. Historically, attempts to build usable operating systems atop seL4 have faced a binary choice: sacrifice modularity for performance or sacrifice performance for a verifiable, modular design.

LionsOS resolves this tension. It is a new, highly modular OS built on seL4 that shatters the myth that microkernel modularity inherently leads to poor performance. By employing a philosophy of "Radical Simplicity," LionsOS outperforms monolithic Linux in networking throughput and latency while maintaining a trusted codebase orders of magnitude smaller.

Architectural Design: Radical Simplicity

The core innovation of LionsOS lies in its use of the seL4 Microkit, a framework that enforces a static system architecture. Unlike general-purpose operating systems that manage resources dynamically at runtime, LionsOS defines all components and communication channels at build time. This approach eliminates the overhead associated with dynamic resource management and simplifies formal verification.

LionsOS decomposes traditional OS services into tiny, single-purpose modules. A critical aspect of this design is the strict separation of hardware interaction from resource sharing. In this model, a device driver is responsible solely for hardware communication, while a separate "Virtualiser" component manages the multiplexing of that device among multiple clients.

Modular communication architecture between clients, virtualizers, and drivers.

Communication between these modules is handled via simple, shared-memory, single-producer single-consumer (SPSC) queues. This lock-free mechanism minimizes synchronization overhead, allowing the system to overcome the traditional performance bottlenecks of Inter-Process Communication (IPC).

Implementation and Extensibility

LionsOS is designed to be adaptable to specific deployment needs. Rather than implementing a single, complex "universal" policy for resource scheduling or traffic shaping, LionsOS encourages the use of small, swappable policy modules. This modularity allows developers to tailor the system to their specific use case without bloating the trusted computing base (TCB).

To demonstrate its utility, the authors implemented a full system stack capable of running high-level runtimes like MicroPython. This stack includes modular drivers for serial communication, timers, and networking, as well as a virtual file system (VFS) and network file system (NFS) support.

The LionsOS system stack running a MicroPython application with various modular drivers.

For legacy support, LionsOS utilizes "Driver VMs." This allows the system to run a minimal Linux instance within a virtual machine to leverage existing hardware drivers, while the rest of the system remains isolated and secure within the native seL4 environment.

Performance Evaluation

The performance of LionsOS was evaluated against monolithic Linux and other microkernel-based systems using standard networking and I/O benchmarks. The results demonstrate significant advantages:

  • Networking Dominance: On an Arm-based platform with a 1 Gb/s network interface, LionsOS achieved full line rate while utilizing only 30% of a single CPU core. In comparison, Linux reached only 500 Mb/s while consuming 100% of a core.
  • Ultra-Low Latency: Network Round Trip Time (RTT) in LionsOS was found to be 3 to 10 times lower than in Linux, a critical metric for real-time embedded systems.
  • Tiny Trusted Codebase: The core trusted code of LionsOS is approximately 3.1 kSLOC, a fraction of the 30+ million lines found in the Linux kernel.

Conclusion and Future Work

LionsOS proves that a modular, verifiable microkernel-based OS can achieve and even exceed the performance of monolithic kernels. By prioritizing static architectures and radical simplicity, it provides a path forward for high-assurance systems that do not want to compromise on speed. While currently optimized for embedded use cases and still undergoing full end-to-end formal verification, LionsOS represents a significant leap in making microkernels practical for modern, high-performance applications. Future work will focus on improving file system caching and completing the mathematical proofs for the entire system stack.

Summary updated

BibTeX
@misc{heiser2025fast,
  author = {Gernot Heiser and Ivan Velickovic and Peter Chubb and Alwin Joshy and Anuraag Ganesh and Bill Nguyen and Cheng Li and Courtney Darville and Guangtao Zhu and James Archer and Jingyao Zhou and Krishnan Winter and Lucy Parker and Szymon Duchniewicz and Tianyi Bai},
  title = {{Fast, Secure, Adaptable: LionsOS Design, Implementation and Performance}},
  year = {2025},
  eprint = {2501.06234},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.06234},
}
Figure