arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.12530cs.OS
收藏

Xkernel:操作系统内核性能可调性的原理性研究

Xkernel: Principled Performance Tunability of Operating System Kernels

Microsoft Research(微软研究院);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Tsinghua University(清华大学)

Zhongjie Chen, Wentao Zhang, Yulong Tang, Ran Shu, Fengyuan Ren, Tianyin Xu, Jing Liu

AI总结:

Xkernel通过Scoped Indirect Execution机制实现操作系统内核中性能常量的实时调优,确保调优过程的安全性和效率,提升系统性能。

摘要:

Linux内核中存在大量对系统性能至关重要的常量值,这些被称为perf-consts的常量通常基于硬件和工作负载的脆弱假设。不幸的是,目前没有能力在部署的内核中实时调整这些perf-const值。本文重新思考操作系统性能可调性,提出了Xkernel系统,提供了一个安全、高效且可编程的接口,用于实时调整任何perf-consts。Xkernel通过一种称为Scoped Indirect Execution(SIE)的新方法,将任何perf-const转换为可调的 knobs。SIE捕捉精确的二进制边界,其中perf-const进入系统状态,并将控制转向合成指令,更新状态如同使用新值。Xkernel在更新perf-consts时超越了版本原子性,以确保副作用安全性,这一特性在现有内核更新机制中缺失。对各种操作系统子系统的案例研究显示,通过Xkernel调优perf-consts可以带来显著的性能提升。

英文摘要:

The Linux kernel is permeated with constant values that are critical to system performance. Many of these constants, referred to as perf-consts, are magic numbers with brittle assumptions on hardware and workloads. Unfortunately, there is no capability of in-situ tuning of perf-const values on deployed kernels. This paper rethinks OS performance tunability. We present Xkernel, a system that offers a safe, efficient, and programmable interface for in-situ tuning of any perf-consts directly on a running kernel. Xkernel transforms any perf-const into a tunable knob on demand using a novel approach called Scoped Indirect Execution (SIE). SIE captures precise binary boundaries where a perf-const enters system state and redirects control to synthesized instructions that update the state as if new values were used. Xkernel goes beyond version atomicity when updating perf-consts to guarantee side-effect safety, a property notably absent in existing kernel update mechanisms. Case studies on various OS subsystems demonstrate significant performance benefits of tuning perf-consts which is made possible by Xkernel.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑