[Paper Review] A C-DAG task model for scheduling complex real-time tasks on heterogeneous platforms: preemption matters
This paper proposes the C-DAG model, a novel real-time task model for heterogeneous platforms that supports off-line alternative implementations and run-time conditional branches across diverse processors (CPUs, GPUs, DLAs, PVAs). It introduces a schedulability analysis accounting for non-negligible preemption costs—especially on accelerators—demonstrating significant reductions in pessimism and improved schedulability rates compared to state-of-the-art methods.
Recent commercial hardware platforms for embedded real-time systems feature heterogeneous processing units and computing accelerators on the same System-on-Chip. When designing complex real-time application for such architectures, the designer needs to make a number of difficult choices: on which processor should a certain task be implemented? Should a component be implemented in parallel or sequentially? These choices may have a great impact on feasibility, as the difference in the processor internal architectures impact on the tasks' execution time and preemption cost. To help the designer explore the wide space of design choices and tune the scheduling parameters, in this paper we propose a novel real-time application model, called C-DAG, specifically conceived for heterogeneous platforms. A C-DAG allows to specify alternative implementations of the same component of an application for different processing engines to be selected off-line, as well as conditional branches to model if-then-else statements to be selected at run-time. We also propose a schedulability analysis for the C-DAG model and a heuristic allocation algorithm so that all deadlines are respected. Our analysis takes into account the cost of preempting a task, which can be non-negligible on certain processors. We demonstrate the effectiveness of our approach on a large set of synthetic experiments by comparing with state of the art algorithms in the literature.
Motivation & Objective
- Address the challenge of scheduling complex real-time applications on modern heterogeneous embedded platforms with diverse processors (CPUs, GPUs, DLAs, PVAs).
- Model design choices such as processor selection and task parallelism/sequencing in a unified framework to support both off-line and run-time decisions.
- Account for non-trivial preemption costs on accelerators (e.g., 30% of execution time on GPUs), which are often ignored or overestimated in prior work.
- Develop a schedulability analysis and allocation heuristics that reduce pessimism and improve resource utilization while respecting deadlines.
Proposed method
- Propose the C-DAG model, a directed acyclic graph with alternative nodes for off-line processor selection and conditional nodes for run-time branching.
- Integrate preemption cost modeling into the schedulability analysis, distinguishing between preempting tasks on CPUs (0.02%) vs. GPUs (30%) vs. DLAs/PVAs (10%).
- Apply Theorem 2 to reduce pessimism by charging preemption cost only to one sub-task in the maximal sequential subset, rather than all preempting tasks.
- Design and evaluate multiple allocation heuristics (e.g., BRF-P, BOF-P, WRF-P) that balance load and preserve scarce resources like DLAs and PVAs.
- Use synthetic task sets with varying utilization and task structures to evaluate schedulability and resource usage under different heuristics.
- Compare results against state-of-the-art methods using metrics like schedulability rate, active CPU count, and utilization of scarce engines.
Experimental results
Research questions
- RQ1How can a real-time task model effectively represent both off-line and run-time design choices in heterogeneous platforms?
- RQ2To what extent do non-negligible preemption costs on accelerators (e.g., GPUs, DLAs) affect schedulability analysis and system feasibility?
- RQ3Can a refined preemption cost model reduce pessimism in schedulability analysis and improve system utilization?
- RQ4How do different allocation heuristics compare in terms of schedulability, load balancing, and preservation of scarce computing resources?
- RQ5What is the impact of preemption cost modeling on the overall schedulability of complex real-time task sets on heterogeneous platforms?
Key findings
- The proposed preemption cost modeling via Theorem 2 significantly reduces pessimism in schedulability analysis, especially under high utilization.
- Schedulability rates remain high with Theorem 2 (reduced preemption cost model), while the naive max-preemption approach leads to drastic performance degradation.
- BF-based heuristics (e.g., BRF-P) achieve higher CPU utilization and better load balancing, while order-based heuristics (e.g., BOF-P) reduce utilization of scarce engines like DLAs and PVAs.
- BOF-P outperforms other heuristics in highly loaded systems by minimizing overall execution overhead and reducing load on critical accelerators.
- The average number of active CPUs increases with total utilization, but BRF-P uses more cores than others to preserve scarce resources.
- The average utilization of scarce engines (DLAs, PVAs, GPUs) is consistently lower under order-based heuristics (e.g., BRF-P, BOF-P), confirming their effectiveness in resource preservation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.