OS-R1: Agentic Operating System Kernel Tuning with Reinforcement Learning
Hongyu Lin, Yuchen Li, Haoran Luo, Kaichun Yao, Libo Zhang, Mingjie Xing, Yanjun Wu

TL;DR
OS-R1 is a reinforcement learning-based framework that automates Linux kernel tuning, improving performance and efficiency through a novel environment abstraction, custom rewards, and a two-phase training process.
Contribution
Introduces OS-R1, a novel RL-based Linux kernel tuning framework with environment abstraction, custom rewards, and a two-phase training process for better performance and adaptability.
Findings
Achieves up to 5.6% performance improvement over heuristic tuning.
Maintains high data efficiency in tuning.
Demonstrates adaptability across diverse real-world applications.
Abstract
Linux kernel tuning is essential for optimizing operating system (OS) performance. However, existing methods often face challenges in terms of efficiency, scalability, and generalization. This paper introduces OS-R1, an agentic Linux kernel tuning framework powered by rule-based reinforcement learning (RL). By abstracting the kernel configuration space as an RL environment, OS-R1 facilitates efficient exploration by large language models (LLMs) and ensures accurate configuration modifications. Additionally, custom reward functions are designed to enhance reasoning standardization, configuration modification accuracy, and system performance awareness of the LLMs. Furthermore, we propose a two-phase training process that accelerates convergence and minimizes retraining across diverse tuning scenarios. Experimental results show that OS-R1 significantly outperforms existing baseline…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
