调度器混合体:作为专家策略学习路由器的自适应调度智能体
Beyond the Monolithic Scheduler: Lightweight Adaptive Policy Switcher for Process Scheduling Optimization
AI总结:
针对单一静态操作系统调度器难以适配多样动态工作负载的问题,本文提出自适应调度智能体ASA,通过解耦的离线训练与在线路由机制动态选择最优专家调度策略,实验证明其性能显著优于Linux默认调度器EEVDF。
摘要:
现代操作系统调度器采用单一静态策略,难以在当代系统多样且动态的工作负载下实现最优性能。这种“一策略适配所有场景”的方法会在公平性、吞吐量和延迟方面造成显著折损,在异构硬件和多样化应用架构兴起的背景下问题尤为突出。\n本文提出一种新范式:从一组专用调度器组合中动态选择最优策略,而非设计单一的整体式调度器。我们提出了自适应调度智能体(Adaptive Scheduling Agent, ASA),这是一个轻量级框架,可在运行时智能地将工作负载匹配到最合适的“专家”调度策略。ASA的核心是一种新颖的低开销离线/在线方法:首先,离线过程训练一个通用、与硬件无关的机器学习模型,从系统行为中识别抽象工作负载模式;其次,在运行时,ASA使用时间加权概率投票算法持续处理模型预测以识别工作负载,随后查询预配置的、特定于机器的映射表做出调度决策,通过Linux的sched_ext框架切换到最优调度器。这种解耦架构使ASA能够快速适配新硬件平台,无需对核心识别模型进行高成本重训练。\n我们基于一个聚焦用户体验指标的新型基准开展评估,结果表明ASA性能始终优于Linux默认调度器EEVDF,在86.4%的测试场景中取得更优结果。此外,ASA的选择接近最优,在78.6%的场景中所选调度器位列所有调度器前三名。这验证了我们的方法是实现更智能、自适应、响应迅速的操作系统调度器的可行路径。
英文摘要:
Modern operating system process schedulers typically enforce a static, ``one-policy-fits-all'' design, which inevitably compromises performance under the highly dynamic and mixed workloads of contemporary edge systems. Transitioning to dynamic adaptation faces two fundamental challenges: scenario specific static policies lack robust runtime adaptability, whereas computationally intensive AI-assisted policies introduce unacceptable execution overhead for resource-constrained devices. To structurally resolve this dilemma, we propose the Lightweight Adaptive Policy Switcher (LAPS), a framework that dynamically switches between predefined expert policies, thus decoupling high frequency context switching from low-frequency policy transitions and amortizing transitional overheads. To eliminate prohibitive online computations, LAPS pre-resolves all heavy dynamic tradeoffs via an offline preparation phase, constructing a strictly overhead-aware Policy Mapping Table. During runtime, it executes an agentic Observe-Infer-Switch cycle that limits machine learning inference strictly to workload classification. Consequently, LAPS executes efficient dynamic adaptation simply by mapping the inferred workload state to optimal expert policies via low-cost table lookups. Experiments show that LAPS achieves an average performance gain of 8.91% and reduces response latency by up to 91.7% in latency-sensitive tasks over the default Linux scheduler EEVDF. Our results demonstrate that LAPS outperforms the baseline in a wide range of test cases, offering a practical path toward more responsive and intelligent operating systems. Our code is publicly available at https://github.com/lvmiao233/LAPS.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。