Abstract
Systems-on-Chips (SoCs) that power autonomous vehicles (AVs) must meet stringent performance and safety requirements prior to deployment. With increasing complexity in AV applications, the system needs to meet these real-time demands of multiple safety-critical applications simultaneously. A typical AV-SoC is a heterogeneous multiprocessor consisting of accelerators supported by general-purpose cores. Such heterogeneity, while needed for power-performance efficiency, complicates the art of task scheduling. In this paper, we demonstrate that hardware heterogeneity impacts the scheduler's effectiveness and that optimizing for only the real-time aspect of applications is not sufficient in AVs. Therefore, a more holistic approach is required -- one that considers global Quality-of-Mission (QoM) metrics. We propose HetSched, a multi-step scheduler that leverages dynamic runtime information about the underlying heterogeneous hardware platform, along with the applications' real-time constraints and the task traffic in the system to optimize overall mission performance. HetSched improves overall mission performance on average by up to 4.6x compared to state-of-the-art real-time schedulers, achieves 53.3% higher hardware utilization, and meets 100% critical deadlines.
Introduction
Autonomous vehicles (AVs) rely on Domain-Specific SoCs (DSSoCs) that integrate general-purpose CPU cores with specialized accelerators like GPUs and CNN engines. While essential for power efficiency, this hardware heterogeneity introduces significant scheduling challenges. Traditional schedulers are often "Quality-of-Mission (QoM) agnostic," focusing on meeting individual task deadlines in a greedy manner. However, in an AV context, a safety-critical task (e.g., emergency braking) must take precedence over non-critical tasks (e.g., blind-spot monitoring on a clear road). Furthermore, existing schedulers often fail to account for the massive variance in execution time—sometimes up to 300×—across different processing elements (PEs).
The HetSched Framework
HetSched addresses these challenges by shifting the focus from individual tasks to a holistic Quality-of-Mission metric. The framework employs a two-level architecture to manage system complexity and hardware diversity.
Two-Level Scheduling Architecture
- Meta-Sched (Mission Level): This layer manages task dependencies represented as Directed Acyclic Graphs (DAGs). It assigns ranks based on task criticality and "slack" (time remaining before a deadline). Two policies are introduced:
- $MS_{stat}$: Calculates sub-deadlines statically based on the DAG structure.
- $MS_{dyn}$: Dynamically updates sub-deadlines during execution to account for runtime fluctuations.
- Task-Sched (Hardware Level): This layer assigns tasks to specific PEs using a non-blocking policy aimed at achieving the earliest finish time.
Key Innovations
- QoM Metric: A composite measure of mission completion time, safety (fraction of mission completed without missing critical deadlines), and energy consumption.
- Task Pruning: HetSched proactively identifies and drops non-critical tasks that are guaranteed to miss their deadlines, freeing up resources for safety-critical operations.
- Hybrid Heterogeneous Ranking: A ranking system that prioritizes tasks for the hardware they are best suited for, accounting for the speedup provided by specialized accelerators.
Evaluation and Results
The researchers evaluated HetSched using synthetic benchmarks (Mini-ERA) and real-world AV workloads (ADSuite and MAVBench) across varying congestion levels: Rural, Semi-Urban, and Urban.
Performance and Safety
HetSched demonstrated significant improvements over state-of-the-art schedulers like CPATH, ADS, and 2lvl-EDF. It achieved an average mission speedup of 4.6×, 2.6×, and 2.6× respectively. Crucially, as shown in the results, HetSched maintained a 100% completion rate for critical tasks even in high-density urban scenarios, whereas QoM-agnostic schedulers saw completion rates drop significantly.
Resource Efficiency
By optimizing hardware utilization (achieving 53.3% higher utilization on average), HetSched enables more efficient SoC designs. When integrated into a design-space exploration loop, it reduced the required number of processing elements by 35% while achieving a 2.7× lower energy-mission time product.
Conclusion
HetSched demonstrates that hardware heterogeneity is an asset to be exploited rather than a hurdle to be hidden. By adopting a QoM-aware approach and utilizing dynamic runtime information, HetSched ensures both performance and safety for autonomous systems. Future work will address scaling the centralized scheduler to hundreds of cores and reducing dependency on offline timing profiles for entirely unseen workloads.
Summary updated