Polymorph: Operating System Kernel Optimization Through Artificial Intelligence
Dean Sysman, Georgios Liargkovas, Tal Zussman, Hasan Zengin, Petra Hedesiu, Hubertus Franke, Tamar Eilam, Kostis Kaffes,
Key points
From the paper's conclusion- We study how to use agentic AI to automate kernel policy development, selection, and deployment, focusing on the page cache and the process scheduler as two representative subsystems.
Abstract
While popular operating systems such as Linux and Windows were originally designed as monolithic kernels, an increasing number of kernel subsystems have become extensible using eBPF. Users can now define custom policies for essential kernel mechanisms, such as the process scheduler, page cache, and network stack, without recompiling the kernel. These mechanisms give developers significant freedom to fit the kernel to their applications' workloads, but the question of which policy to deploy remains open. We study how to use agentic AI to automate kernel policy development, selection, and deployment, focusing on the page cache and the process scheduler as two representative subsystems. We show that existing approaches fall short: evolutionary and agentic search runs offline, is relatively expensive, and often fails to generalize to online workloads, while online knob tuners are encumbered by the knobs' lack of expressivity. In contrast, we propose Polymorph, which learns online: an AI agent writes a generalized, granular policy once, and a user mode tuner adjusts its parameters during runtime, with no LLM in the loop. For the page cache, Polymorph improves throughput over Linux's LRU by 8.4% on unseen data, nearly twice the gain of the best existing policy, while adapting to workload changes at runtime and costing only 16M tokens once, versus 125-240M tokens per workload for agentic offline search. For the process scheduler, it improves on Linux's default by 2.75x across six workloads, versus 2.27x for the best fixed sched_ext policy.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- MorphSched: Workload-Aware Adaptive Scheduler Generation for LinuxarXiv · 2026
- An Agentic OS Kernel for Flexible and Enhanced SemanticsarXiv · 2026
- BOXBOX: Recursive Harness Self-Improvement for Long-Running Performance OptimizationarXiv · 2026
- CACHEFORGE: LLM-Guided End-to-End Generative Cache Replacement Policy for Performance and Hardware EfficiencyarXiv · 2026
- Beyond Experience: Knowledge-Guided Evolution for NPU Kernel GenerationarXiv · 2026
- BenchmarkAnything: Agent-Driven Construction of Simulator-Ready Microarchitecture BenchmarksarXiv · 2026