TL;DR
This paper introduces a compositional scheduling framework for digital avionics systems, specifically addressing the complexities of ARINC-653. The authors propose novel techniques to generate efficient partition interfaces that account for process offsets, jitter, blocking, and preemption overheads, leading to better resource utilization and simplified system integration.
What Problem Does This Paper Address?
Modern avionics systems, governed by standards like ARINC-653, are complex hierarchical real-time systems. These systems are composed of independent "partitions," each containing multiple "processes." Designing schedules for these systems is challenging due to inter-process communication dependencies, blocking mechanisms (like semaphores), and preemption overheads. Current approaches often rely on manual scheduling, which is time-consuming, error-prone, and leads to underutilization of valuable computing resources. Furthermore, protecting the intellectual property of partition vendors requires isolating their code, meaning global schedulers need abstract representations (interfaces) of partition resource demands without exposing internal details. Existing compositional techniques struggle to accurately model these complexities, particularly process offsets and overheads, leading to pessimistic resource allocation.
Methods
The paper proposes a two-level hierarchical scheduling model. At the lower level, processes within a partition are scheduled using a local scheduler (assumed to be Deadline Monotonic - DM). At the higher level, partitions are scheduled using a global scheduler, also assumed to be DM.
The core contribution lies in the compositional interface generation techniques. Instead of relying on existing, less accurate methods, the authors:
- Extend Resource Models: They adapt periodic and Explicit Deadline Periodic (EDP) resource models to account for process offsets and jitter.
- Introduce Request Function (rf): To handle non-zero offsets, they define a "request function" (rf) that computes the maximum resource requested by a partition within a given time interval, without needing to know the critical arrival pattern. This is a key departure from traditional "request bound functions" (rbf).
- Incorporate Overheads: They develop methods to bound blocking and preemption overheads.
- Blocking Overhead: They provide an upper bound for blocking overhead incurred by a job of a process due to lower priority processes.
- Preemption Overhead: They present analytical techniques to compute the exact number of preemptions for processes scheduled under DM with implicit deadlines and harmonic periods. This is a significant improvement over existing upper-bound methods.
- Develop Schedulability Conditions: They present theorems (Theorem 2 and Theorem 3) that provide exact schedulability conditions for partitions, taking into account offsets, jitter, blocking, and preemption.
Datasets
The paper evaluates their techniques using sanitized data sets from actual avionics systems. These workloads are described in an appendix of a technical report ([10]) and are categorized into two types:
- Workloads with non-zero offsets but zero jitter.
- Workloads with non-zero jitter but zero offsets.
The paper does not introduce new benchmarks but uses existing, representative avionics workloads.
Key Insights and Ideas
- Offsets Matter: Ignoring process offsets leads to significantly pessimistic resource allocation. The proposed request function (rf) effectively models these dependencies.
- Exact Preemption Counting: Precisely counting preemptions, rather than just bounding them, leads to more accurate and efficient resource allocation. This is crucial for safety-critical systems.
- Harmonic Periods Simplify: The assumption of harmonic partition periods (verified in real avionics systems) greatly simplifies the analysis and allows for more precise preemption counting.
- Compositionality for IP Protection: The compositional approach allows partition vendors to provide abstract interfaces without revealing proprietary internal details, facilitating secure integration.
- Efficiency Gains: The proposed methods result in significantly smaller resource bandwidth requirements for partition interfaces compared to existing techniques, leading to better resource utilization.
Key Results
- Reduced Bandwidth: Figures 6 and 7 demonstrate that the proposed approach (using Theorem 2) generates partition interfaces with substantially lower bandwidth requirements compared to existing methods that ignore offsets. For some periods, the generated bandwidth matches the partition's utilization, indicating optimal resource modeling.
- Impact of Overheads: Figure 8 shows that accounting for preemption and blocking overheads significantly increases the required bandwidth, but the proposed methods provide a more accurate estimate than simply using upper bounds.
- Workload Analysis: Table II shows that even for workloads with non-zero jitter, the proposed method (using Theorem 1 with improved sbf) yields smaller bandwidths than reserved bandwidths, with significant savings observed. The paper notes that some difference might be attributed to aperiodic processes not explicitly modeled.
Limitations and Future Work
- Assumptions: The paper relies on several assumptions, including:
- Partitions are not distributed across multiple processors.
- Processes within a partition cannot block processes in another partition.
- Harmonic interface periods for partitions scheduled on the same processor.
- Deadline Monotonic (DM) scheduling for both partition and process levels.
- Future Work: The authors suggest that their techniques can be extended to handle aperiodic processes and more complex communication patterns. The framework provides a foundation for principled design and analytical correctness guarantees, which are vital for system certification. The paper also notes that while their approach is computationally more expensive than simpler methods, it is often pseudo-polynomial and efficient for many avionics scenarios, especially with harmonic periods.
Summary updated