MorphSched: Workload-Aware Adaptive Scheduler Generation for Linux
Yifan Zhang, Hengxuan Lou, Xinkui Zhao, Rengrong Xiong, Naibo Wang, Chang Liu, Guanjie Cheng, Shuiguang Deng, Jianwei Yin
Abstract
Modern Linux scheduling increasingly requires workload-specific policies to meet the dynamic performance needs of heterogeneous applications. The recent schedext framework enables custom BPF schedulers, but building practical policies still requires coordinating Rust user-space control logic, BPF scheduling callbacks, generated user-kernel interfaces, and strict eBPF verifier constraints. This paper presents MorphSched, an LLM-driven system for synthesizing complete Rust+BPF schedext schedulers. MorphSched profiles target workloads under Linux EEVDF to construct dynamic, workload-specific optimization objectives, and uses a scaffold-constrained generation pipeline to translate scheduling intent into deployable scheduler implementations. To improve synthesis reliability, MorphSched separates implementation repair from strategy search: verifier, build, and runtime failures are handled through a DAG-structured repair process, while performance feedback is accumulated in an evolutionary memory pool to refine high-level scheduling strategies across iterations. We evaluate MorphSched across 120 machine/workload/interferer configurations on a real Linux kernel. The generated schedulers compile, pass eBPF verification, load successfully, and remain stable throughout our benchmark runs without manual edits to generated scheduler source code. Across these configurations, MorphSched improves the primary foreground metric over EEVDF by 26.5% on average and up to 87.3%. In selected comparisons, the generated schedulers are also competitive with representative hand-written schedext schedulers. These results show that scaffold-constrained, system-grounded LLM generation can be a practical tool for exploring workload-specific Linux scheduling policies.
Create a lesson
Metadata
- Categories
- cs.OS, cs.AI
Related papers
MobiInfer: Accelerating On-Device GUI Agents with Workload-Aware Inference
Shared title terminologycs.OSSiming Chen, Erhu Feng, Dahu Feng et al.
MemSpec: Memory-Aware Runtime for Adaptive Draft Scheduling in Speculative Decoding on Edge Devices
Shared title terminologycs.OSEunjeong Kim, Yeong Jun Jeon, Myeonggyun Han
Benchmarking Linux CGroup and Schedule Idle
Shared title terminologycs.OSAnna Arpaci-Dusseau
Restoring Fair Hrtick Re-arming After Same-Task Repicks in the Linux EEVDF Scheduler
Shared title terminologycs.OSShubhang Kaushik
eBPF-Driven Adaptive Lifetime-Aware Data Placement for Shared FDP SSDs
Shared title terminologycs.OSHajin Moon, Taewan Noh, Chaeeun Yoon et al.
Edge-Based QoS-Aware Adaptive Task Placement: A Closed-Loop Control in Multi-Robot Systems
Shared title terminologycs.OSThien Tran, Jonathan Kua, Thuong Hoang et al.