TL;DR
This paper tackles the challenge of scheduling mixed-criticality systems in autonomous vehicles, where low-criticality (LC) tasks can impact high-criticality (HC) tasks. They propose a novel task migration approach that allows LC tasks to leverage computational resources from other systems, significantly improving their schedulability without compromising HC task safety. This approach offers a more cost-effective and robust solution compared to traditional methods.
What Problem Does This Paper Address?
Modern autonomous vehicles are complex systems with numerous software components operating at different safety criticality levels (ASILs). A critical issue arises when a low-criticality (LC) component, like a communication module, influences a high-criticality (HC) component, such as the acceleration control. If the LC component fails, it can lead to a chain reaction, jeopardizing the safety of the HC component and potentially causing accidents. Traditional solutions like partitioned architectures or assigning higher ASILs to all components are either too costly or impractical due to the intricate interdependencies. Mixed-criticality (MC) scheduling aims to address this by prioritizing HC tasks and dropping LC tasks when resources are scarce. However, existing MC schedulers often struggle with the dynamic nature of criticality changes and the overhead associated with managing these diverse levels, especially in distributed systems. This paper specifically addresses the problem of ensuring the reliability of essential LC tasks that are critical for HC functions, without requiring expensive hardware upgrades.
Methods
The core of this paper's contribution lies in its proposed Distributed Mixed-Criticality (DMC) scheduling approach, which integrates task migration with existing MC schedulers. Here's a breakdown of their methodology:
- Task Migration: For critical LC tasks that would typically be dropped by conventional MC schedulers, DMC migrates them to an external, less critical system. This process involves:
- Dumping: Capturing the state of the LC task.
- Transferring: Sending the task's memory and state over a network (they found Wi-Fi-direct with a network module to be efficient).
- Restoring: Forking a dummy task on the destination system and restoring the migrated LC task's state.
- Task-Level MC Scheduler Integration: They adapt existing MC schedulers, specifically EDF-VD (a system-level MC scheduler) and MC-ADAPT (a task-level MC scheduler), to incorporate their task migration strategy. This involves modifying the kernel to handle the migration process and integrate it with the scheduler's decision-making.
- Theoretical Analysis: The paper provides theoretical analysis for the schedulability of task migration, including calculating the utilization upper bound and deadline of the migration task.
- Implementation: They implemented their DMC approach as a Linux kernel module, allowing it to interact with the SCHED_DEADLINE scheduler. They focused on a uniprocessor configuration for detailed analysis.
- Evaluation: The proposed DMC approach was evaluated against system-level (EDF-VD) and task-level (MC-ADAPT) MC schedulers using metrics like acceptance ratio and deadline miss ratio.
Datasets
Not discussed in the paper. The authors created synthetic task systems for their experiments based on defined parameters for criticality levels, execution times, and periods.
Key Insights and Ideas
- Task Migration as a Cost-Effective Solution: The most significant insight is that task migration, by leveraging existing resources in other systems, provides a viable and cost-effective way to improve LC task schedulability without requiring additional hardware.
- Task-Level vs. System-Level MC Schedulers: The study highlights that task-level MC schedulers (like MC-ADAPT) are generally more compatible with task migration than system-level schedulers. This is because task-level schedulers can more granularly manage individual tasks, making the migration of a single LC task more efficient.
- The Importance of "Undroppable" LC Tasks: The paper emphasizes that certain LC tasks are crucial for the overall system's safety and functionality. Simply dropping them is not an option, and task migration offers a way to preserve their execution.
- Predictability is Key: The success of task migration hinges on its predictability. The authors demonstrate that by carefully measuring migration latency and incorporating safety margins, they can guarantee real-time bounds for migrated tasks.
- Hardware Matters for Migration: Network latency is a critical factor for task migration. The study shows that Wi-Fi-direct combined with a dedicated network module offers significantly lower and more stable latency compared to standard Wi-Fi routers, which is crucial for real-time guarantees.
Key Results
- Improved LC Task Schedulability: The DMC approach, when combined with task-level MC schedulers, significantly improved the schedulability of LC tasks. For instance, the deadline miss ratio for LC tasks was reduced to 0% with MC-ADAPT + DMC, compared to 0.12% with MC-ADAPT alone.
- Higher Acceptance Ratio: The task-level MC scheduler (MC-ADAPT) showed a higher acceptance ratio for task systems compared to the system-level scheduler (EDF-VD), especially under random replenishment conditions.
- HC Task Safety Maintained: Crucially, the proposed approach did not violate the schedulability of HC tasks. The violation test results showed that HC tasks were not compromised.
- Task Migration Overhead is Tolerable: While task migration introduces some overhead, the study found it to be tolerable, especially when considering the significant improvement in LC task schedulability. The scheduling overhead was generally less than 1%, which is considered acceptable for real-time guarantees.
- Task-Level Scheduler Compatibility: The study demonstrated that task-level MC schedulers had a higher compatibility with task migration, achieving O(1) deadline miss ratios compared to O(n) for system-level schedulers.
Limitations and Future Work
- Single Task Migration: A current limitation is that only one task can be migrated at a time. This sequential nature can be a bottleneck in highly dynamic scenarios.
- Hardware Dependency: The performance of task migration is heavily dependent on network hardware and bandwidth. Achieving hard real-time guarantees requires predictable hardware designs.
- Fixed HC-WCET: The study focused on worst-case schedulability under a fixed HC-WCET. Future work could involve adaptively measuring system runtime to lower total utilization and scheduling overhead.
- Dual-Criticality Focus: The current work primarily focuses on dual-criticality systems. Extending this to more than two criticality levels, as found in automotive systems (A-E ASILs), is a promising future direction.
- Certification of Distributed Systems: Certifying distributed safety-critical systems is complex. The paper notes that the overall certification requires higher rates if individual systems require higher certifications, suggesting further research in this area.
- More Realistic Case Studies: The authors plan to apply their work to more detailed and realistic mixed-criticality case studies, such as truck platooning, autonomous cars, and aerospace systems.
Summary updated