arrow
Return

KconfigTune: Automatic Performance Tuning for Linux Kernel Configuration

delete2025-12-17
delete0
PRE
AI
Y
Ying Sun
F
Fangqi Bi
J
J. C. He
S
Shen Qu
Y
Yanjun Wu
P
Pengpeng Hou
DOI:10.1109/TC.2025.3644413delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
The Linux kernel offers nearly 20,000 configuration options, making it highly customizable but also extremely challenging to manually optimize for performance. The diversity of operating environments and workloads further limits the effectiveness of static or expert-crafted configurations. This paper introduces KconfigTune, an automated tuning system that jointly optimizes Linux kernel configuration options and system-level parameters (e.g., procfs entries). We propose extconfig to expand the parameter search space and, for the first time, address configuration dependencies that arise during automated tuning. To ensure valid and bootable kernels, we design a dependency automatic fix tool and a GRUB-based mechanism. KconfigTune models the tuning process as a machine learning problem and applies Bayesian optimization with a random forest model to efficiently explore the vast and interdependent configuration space. Unlike prior approaches that focus solely on either kernel options or system parameters, KconfigTune achieves deeper integration by jointly tuning both compile-time and runtime behaviors. Experimental results show significant performance improvements, with gains of 18.62% and 19.92% over the default configuration in UnixBench and LEBench tests, respectively. Compared to the state-of-the-art, KconfigTune outperforms by 2.9% and 12.69% in these benchmarks. Ablation studies further confirm that these gains primarily stem from the combined tuning of kernel configurations and system-level parameters.
Keywords:
Kernel
Tuning
Optimization
Bayes methods
Linux
Runtime
System performance
Linear programming
Manuals
Space exploration

Journal

IEEE Transactions on Computers cover
IEEE Transactions on Computers
IF:
3.8
Papers:
5.4K
Citations:
9.8K

Organization

C
chinese academy of sciences
Scholars:
56.7W
Papers: 45.0W
Citations: 704
Cited Papers

Cited Papers

Automated Selection of Energy-efficient Operating System Configurations
err2021-06-22
err0
PREAI
errBenedict Herzog; Fabian Hügel; Stefan Reif; Timo Hönig; Wolfgang Schröder-Preikschat
errShare
errSave
A Survey on Compiler Autotuning using Machine Learning
err2018-09-18
err123
errOAAI
errAshouri, Amir H.; Killian, William; Cavazos, John; Palermo, Gianluca; Silvano, Cristina
errShare
errSave
Variability-aware parsing in the presence of lexical macros and conditional compilation
err2011-10-22
err0
PREAI
errChristian Kästner; Paolo G. Giarrusso; Tillmann Rendel; Sebastian Erdweg; Klaus Ostermann; Thorsten Berger
errShare
errSave
Transfer Learning Across Variants and Versions: The Case of Linux Kernel Size
err2022-11-01
err15
errOAAI
errMartin, Hugo; Acher, Mathieu; Pereira, Juliana Alves; Lesoil, Luc; Jezequel, Jean-Marc; Khelladi, Djamel Eddine
errShare
errSave
errShare
errSave
Reducing Configurations to Monitor in a Software Product Line
err2010-01-01
err0
PREAI
errChang Hwan Peter Kim; Eric Bodden; Don Batory; Sarfraz Khurshid
errShare
errSave
researcher View more