TL;DR
This paper tackles the challenge of scheduling tasks with varying criticality levels in embedded systems, where high-criticality tasks demand strict real-time guarantees while low-criticality tasks should be served efficiently without compromising safety. The authors propose novel adaptive and dynamic scheduling schemes (FMCI and FDMC) that improve resource utilization and reduce unnecessary overhead compared to existing methods, leading to better performance for low-criticality tasks.
What Problem Does This Paper Address?
Modern embedded systems, such as those in automotive, aerospace, and smart grids, often integrate components with vastly different safety and reliability requirements. These are known as mixed-criticality systems. A key challenge in designing these systems is ensuring that high-criticality tasks (e.g., flight control, safety monitoring) always meet their deadlines, even under adverse conditions. Traditional approaches often resort to pessimistic resource allocation and mode switching strategies. This means that to guarantee high-criticality task execution, system resources are over-allocated, and low-criticality tasks might be entirely discarded or have their service levels severely degraded. This leads to wasted resources and reduced performance for non-critical functions. Existing flexible mixed-criticality (FMC) approaches, while better, still suffer from issues like ineffective compensation for low-criticality tasks and static resource allocation that doesn't adapt to actual task execution.
Methods
The paper introduces two main novel approaches:
- FMCI (Flexible Mixed-Criticality Improved): This scheme focuses on improving the compensation mechanism for low-criticality tasks when high-criticality tasks experience overruns. Instead of simply degrading service levels or discarding tasks, FMCI dynamically adjusts the execution frequency of low-criticality tasks. This allows them to reclaim system resources more effectively when high-criticality tasks require them, without reducing their execution time budget.
- FDMC (Flexible and Dynamic Mixed-Criticality): This is a more comprehensive dynamic scheduling scheme. It addresses the static nature of previous methods by:
- Dynamic Execution Budget Allocation: High-criticality tasks in the low-criticality mode (LC mode) have their execution time budgets dynamically allocated based on their actual execution time, rather than a static worst-case estimate. This prevents over-allocation and resource wastage.
- Dynamic Mode Switching Evaluation: The decision to switch a high-criticality task to high-criticality mode (HC mode) is based on a dynamic evaluation of its actual execution against a calculated maximum execution budget, rather than a fixed pre-determined budget. This makes mode switching more responsive and less prone to unnecessary transitions.
- FDMC-EDF-VD Algorithm: A scheduling algorithm is proposed that combines the Earliest Deadline First (EDF) with Virtual Deadlines (VD) to manage tasks within the FDMC framework.
Datasets
Not discussed in the paper. The authors generated task sets for their simulations based on parameters described in the "Experiment and Evaluation" section.
Key Insights and Ideas
- The "Pessimism Problem": Overly conservative scheduling to guarantee high-criticality tasks leads to significant resource waste and poor performance for low-criticality tasks. This is a fundamental trade-off that the paper aims to mitigate.
- Dynamic is Better: Static allocation and mode switching are inflexible. Adapting resource allocation and mode transition triggers based on actual task behavior is crucial for efficiency.
- Low-Criticality Task Compensation: Simply abandoning low-criticality tasks is inefficient. Dynamically adjusting their service levels (e.g., execution frequency) offers a more balanced approach.
- Independent Mode Switching: The idea that only the overrunning high-criticality task needs to switch to HC mode, while others remain in LC mode, is a key step towards reducing unnecessary overhead.
- Switching Cost Matters: Frequent mode switching incurs significant energy and performance penalties. FDMC's dynamic approach significantly reduces this switching cost.
Key Results
The paper presents simulation results demonstrating the effectiveness of FMCI and FDMC:
- FMCI vs. FMC: FMCI consistently outperforms the original FMC scheme in terms of the performance of low-criticality tasks (measured by PFJ - performance of low-criticality tasks). FMCI shows less volatility, meaning its performance is less affected by high-criticality task overruns or crowded task sets.
- FDMC Performance: FDMC demonstrates significant advantages over EDF-VD, FMC, and FMCI.
- Low-Criticality Task Performance (PFJ): FDMC achieves a completion degree of low-criticality tasks above 90%, consistently outperforming other schemes, especially as the probability of high-criticality tasks entering HC mode increases.
- Switching Cost: FDMC exhibits the lowest switching cost, which remains stable and significantly lower than FMCI and FMC, particularly when the probability of high-criticality tasks entering HC mode is high. This indicates a more efficient avoidance of unnecessary mode switches.
Limitations and Future Work
- Limitations: The paper acknowledges that in scenarios where the probability of high-criticality tasks entering HC mode is small, and the total execution overhead in LC mode is below the threshold, there might still be room for further reclaiming idle resources.
- Future Work:
- Implementing the proposed methods on a real-time operating system for practical evaluation.
- Exploring further resource reclamation and performance improvement by considering scenarios with low probabilities of HC mode entry.
- Integrating FDMC with fault-tolerant technologies to handle different fault types, given the inherent reliability requirements of mixed-criticality systems.
Summary updated