RT-Gang: Real-Time Gang Scheduling Framework for Safety-Critical Systems

Waqar Ali, Heechul Yun
3/3/2019
cs.DC

Official code: CSL-KU/RT-Gang (10 stars, C, last commit 2025-03-14).

Abstract

In this paper, we present RT-Gang: a novel real-time gang scheduling framework that enforces a one-gang-at-a-time policy. We find that, in a multicore platform, co-scheduling multiple parallel real-time tasks would require highly pessimistic worst-case execution time (WCET) and schedulability analysis - even when there are enough cores - due to contention in shared hardware resources such as cache and DRAM controller.

Show full abstract

In RT-Gang, all threads of a parallel real-time task form a real-time gang and the scheduler globally enforces the one-gang-at-a-time scheduling policy to guarantee tight and accurate task WCET. To minimize under-utilization, we integrate a state-of-the-art memory bandwidth throttling framework to allow safe execution of best-effort tasks. Specifically, any idle cores, if exist, are used to schedule best-effort tasks but their maximum memory bandwidth usages are strictly throttled to tightly bound interference to real-time gang tasks. We implement RT-Gang in the Linux kernel and evaluate it on two representative embedded multicore platforms using both synthetic and real-world DNN workloads. The results show that RT-Gang dramatically improves system predictability and the overhead is negligible.

View on arXivView PDF

Code Implementations(1)

CSL-KU/RT-GangOfficial100%

Real-Time Gang Scheduling in Linux

108C, ShellJan 31, 20191 years ago
gang-schedulinglinux-kernelparallelismreal-time-systemsthrottling

Similar Papers

Cite this paper

@article{ali2019rtgang,
  title  = {RT-Gang: Real-Time Gang Scheduling Framework for Safety-Critical Systems},
  author = {Waqar Ali and Heechul Yun},
  year   = {2019},
  eprint = {1903.00999},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1903.00999}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1903.00999.svg)](https://codeofpaper.com/paper/1903.00999)

Discussion