BYOS: 由知识驱动的大语言模型带来更优秀的操作系统
BYOS: Knowledge-driven Large Language Models Bring Your Own Operating System More Excellent
AI总结:
BYOS通过整合结构化知识与大语言模型,实现了更高效、鲁棒的Linux内核调优,显著提升了性能并减少了无效配置。
摘要:
操作系统(OS)内核调优是性能优化中一个关键但具有挑战性的问题,由于配置空间庞大,配置选项之间复杂的相互依赖关系以及内核版本的快速演进。最近的工作探索了使用大语言模型(LLMs)进行自动内核调优,但现有方法往往存在幻觉配置、解释性有限以及在不同工作负载和内核版本上鲁棒性差的问题。我们提出了BYOS,一个由知识驱动的框架,将基于LLM的Linux内核调优建立在结构化的领域知识之上。BYOS包含三个关键组成部分:(1)结构化知识的构建和映射以弥合语义鸿沟,(2)知识驱动的配置生成以细化搜索空间,(3)持续的知识维护以适应内核演进。我们评估了BYOS在多种Linux发行版和内核版本上的不同工作负载。实验结果表明,BYOS在多个方面均优于最先进的调优基线,实现了7.1%-155.4%的性能提升,同时大幅减少了无效配置。这些结果展示了将结构化知识与LLM结合进行鲁棒且可扩展的系统优化的有效性。BYOS的代码可在https://github.com/LHY-24/BYOS上获得。
英文摘要:
Operating system (OS) kernel tuning is a critical yet challenging problem for performance optimization, due to the large configuration space, complex interdependencies among configuration options, and the rapid evolution of kernel versions. Recent work has explored large language models (LLMs) for automated kernel tuning, but existing approaches often suffer from hallucinated configurations, limited interpretability, and poor robustness across workloads and kernel versions. We propose BYOS, a knowledge-driven framework that grounds LLM-based Linux kernel tuning in structured domain knowledge. BYOS incorporates three key components: (1) structured knowledge construction and mapping to bridge the semantic gap, (2) knowledge-driven configuration generation to refine the search space, and (3) continuous knowledge maintenance to adapt to kernel evolution. We evaluate BYOS on diverse workloads across multiple Linux distributions and kernel versions. Experimental results show that BYOS consistently outperforms state-of-the-art tuning baselines, achieving 7.1%-155.4% performance improvement while substantially reducing invalid configurations. These results demonstrate the effectiveness of integrating structured knowledge with LLMs for robust and scalable system optimization. The code of BYOS is available at https://github.com/LHY-24/BYOS.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。