LINTS^RT: A Learning-driven Testbed for Intelligent Scheduling in Embedded Systems

Cong Liu, Zelun Kong, Yaswanth Yadlapalli, Soroush Bateni, Junfeng Guo, Cong Liu 0005arXiv 2020

Introduction

Real-time embedded systems are increasingly complex, moving away from simple single-processor models to heterogeneous multi-core architectures with non-preemptive tasks and intricate dependencies. Traditional scheduling algorithms like Earliest Deadline First (EDF) and Rate Monotonic (RM), while optimal in simple scenarios, often become overly pessimistic or fail to scale in these NP-hard environments. LINTS^RT introduces a reinforcement learning (RL) framework inspired by AlphaGo Zero to autonomously learn optimal scheduling patterns, outperforming rule-based heuristics in challenging real-world scenarios.

Methodology

The LINTS^RT framework integrates three core components: a simulator, Monte Carlo Tree Search (MCTS), and a Deep Neural Network (DNN). The simulator models a multiprocessor environment, releasing jobs and tracking system states. MCTS is utilized during training or for static scheduling to explore the decision tree and identify paths that maximize runtime without deadline misses.

The LINTS^RT framework supports both training via MCTS/DNN interaction and runtime execution in dynamic or static modes.

The DNN serves as the "brain" of the agent, processing system states represented as tensors. It outputs a policy (job selection probabilities) and a value (state safety evaluation). To meet the strict timing requirements of real-time systems, the authors designed a "lean" architecture consisting of CNN blocks, ensuring inference times remain within the nanosecond range (typically 10-40ns), making it viable for actual real-time OS integration.

The DNN architecture features CNN layers for state processing followed by Policy and Value blocks for decision making.

Experimental Setup and Results

The framework was evaluated using synthetic task sets generated via the UUnifast-Discard algorithm, categorized by utilization levels (Light to Heavy). LINTS^RT consistently achieved higher schedulability than Global EDF (GEDF) and RM, particularly under heavy and mixed workloads. In non-preemptive and heterogeneous settings, where traditional rules struggle, the learning-based approach maintained high success rates.

Real-world validation was conducted by implementing LINTS^RT within LITMUS^RT, a real-time Linux extension. Even when accounting for real-world overheads like context switching, the RL-driven scheduler significantly outperformed the standard GSN-EDF plugin.

Conclusion and Future Work

LINTS^RT demonstrates the potential of applying deep reinforcement learning to real-time scheduling. By moving from hand-crafted heuristics to learned policies, the system adapts to hardware complexities autonomously. Future work aims to integrate the framework more deeply into OS kernels, handle complex task dependencies (DAGs), and develop formal schedulability tests based on the trained neural network weights.

Summary updated

BibTeX
@misc{liu2020lints,
  author = {Cong Liu and Zelun Kong and Yaswanth Yadlapalli and Soroush Bateni and Junfeng Guo and Cong Liu},
  title = {{LINTS^RT: A Learning-driven Testbed for Intelligent Scheduling in Embedded Systems}},
  year = {2020},
  eprint = {2007.05136},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.05136},
}
Figure