Abstract
Modern embedded systems face a "complexity wall," struggling to balance sophisticated application requirements with strict real-time guarantees and resource constraints. TenonOS addresses this by collapsing the traditional gap between hypervisors and operating systems into a unified "LibOS-on-LibOS" framework. By utilizing an LLM-driven orchestration engine to assemble only necessary micro-libraries, TenonOS achieves a minimal 361 KiB memory footprint and a 40.28% improvement in scheduling latency compared to traditional architectures.
Introduction
Embedded systems in autonomous vehicles and industrial robotics require high performance without sacrificing deterministic behavior. Traditional solutions typically employ a monolithic stack: a heavy General-Purpose OS (GPOS) like Linux running on top of a Hypervisor. This architecture suffers from two primary flaws: resource bloat, which increases the attack surface and memory overhead, and the "double scheduler" problem. The latter occurs when the hypervisor and guest OS both attempt to schedule tasks, leading to unpredictable jitter and latency that can be catastrophic for time-critical hardware control.
The TenonOS Architecture
TenonOS replaces rigid OS and hypervisor layers with a fluid pool of micro-libraries. Its architecture is built upon three pillars:
- Mortise (The Hypervisor): A minimalist Type-1 micro-hypervisor designed as a Library OS (LibOS). It provides essential hardware isolation while allowing high-priority applications to run directly on the hardware, bypassing guest OS layers for maximum speed.
- Tenon (The Runtime): A real-time capable LibOS that provides deterministic task management and multi-process support.
- LLM-Based Orchestration: To manage the complexity of modular assembly, TenonOS uses an LLM-driven engine. Developers provide natural language objectives (e.g., "optimize for low-power video analytics"), and the LLM utilizes a Library Relation Graph (GraphRAG) to navigate dependencies and automatically compose a custom, minimal software stack.
Methodology and Evaluation
The authors evaluated the LLM orchestration engine using a dataset of 14 Unikraft community-provided application configurations. Performance benchmarks were conducted on ARM64 platforms, specifically the rk3568 SoC. TenonOS was benchmarked against industry standards, including Zephyr, RT-Thread, and Linux, to measure code size, memory usage, and real-time responsiveness.
Key Results
TenonOS demonstrates significant improvements over traditional embedded stacks across several metrics:
- Compactness: The entire system consists of only 11.3K lines of code (SLoC), making it leaner than competitors like NOVA (20K) or Bao (16K).
- Memory Efficiency: The system occupies just 361 KiB of memory, ideal for extremely resource-constrained environments.
- Latency and Interrupts: TenonOS achieved a 40.28% improvement in scheduling latency. Interrupt handling was recorded at 208 cycles, outperforming Zephyr (355 cycles) and RT-Thread (335 cycles).
- Boot Performance: The system is capable of booting in less than 40 milliseconds.
Discussion and Future Work
By breaking both the hypervisor and the OS into a shared pool of micro-libraries, TenonOS enables massive code reuse and eliminates redundant abstraction layers. The use of LLMs for "semantic orchestration" allows the system to understand developer intent rather than just syntax, solving the fragmentation problem in embedded hardware. Furthermore, the support for both static and dynamic resource allocation allows TenonOS to handle mixed-criticality workloads on a single chip.
Despite these successes, the authors note that the current library pool is relatively small and currently focused on ARM64. Future work will involve expanding the library ecosystem, porting the framework to architectures like RISC-V, and refining the GraphRAG approach to ensure that automated configurations remain safety-compliant for mission-critical deployments.
Summary updated