Efficiently Approximating the Probability of Deadline Misses in Real-Time Systems

Georg von der Brüggen, Nico Piatkowski, Kuan-Hsun Chen, Jian-Jia Chen, Katharina MorikECRTS 2018 · OpenReview

TL;DR

This paper introduces a novel, efficient method for calculating the probability of deadline misses in real-time systems, a crucial metric for systems where occasional failures are tolerable but must be bounded. Their multinomial-based approach significantly scales better than existing methods, enabling analysis of larger task sets with comparable precision.

What Problem Does This Paper Address?

In many modern embedded systems, especially those interacting with physical environments, meeting deadlines is critical. While "hard" real-time systems demand absolute guarantees against deadline misses (as failures can be catastrophic), "soft" real-time systems can tolerate occasional misses, provided their frequency is quantifiable and bounded. This is common in systems employing fault tolerance mechanisms or those governed by safety standards that allow for a very low probability of failure.

A key challenge in designing such soft real-time systems is accurately predicting the probability of a deadline miss. Traditional methods often rely on worst-case execution time (WCET) analysis, which can be overly pessimistic and lead to resource over-provisioning. Probabilistic approaches are needed, but existing methods, particularly those based on convolution, suffer from exponential complexity with respect to the number of tasks or jobs, making them infeasible for realistic system sizes. This paper aims to bridge this gap by developing a scalable and efficient method for this crucial analysis.

Methods

The paper proposes two main directions for evaluating deadline miss probabilities:

  1. Analytical Upper Bounds: This approach leverages well-known concentration inequalities, specifically Hoeffding's and Bernstein's inequalities. These methods provide fast, polynomial-time computable upper bounds on the probability of deadline misses. While efficient, they offer a degree of over-approximation, meaning the calculated probability might be higher than the actual one.
  2. Multinomial-Based Convolution: This is the core novel contribution. Instead of directly convoluting job-wise probabilities, the authors transform the problem into a task-based analysis using multinomial distributions. This involves:
  3. State Space Reduction: Techniques like "pruning" are employed to discard states that cannot influence the final outcome without losing precision.
  4. Equivalence Class Merging: Unlikely execution mode combinations are merged into broader classes, reducing the state space at the cost of a bounded loss of precision.

This multinomial approach, by focusing on task-level contributions and employing state reduction, aims to overcome the scalability issues of traditional convolution methods.

Datasets

Not discussed in the paper. The authors generate synthetic task sets for their evaluations.

Key Insights and Ideas

  • Task-Centric vs. Job-Centric Analysis: The paper highlights that traditional convolution methods are job-centric, leading to exponential complexity. Their novel approach shifts to a task-centric view, leveraging multinomial distributions to manage complexity more effectively.
  • The Power of Pruning: The "pruning" technique is a key enabler for efficiency. By identifying and discarding states that are guaranteed to either always or never lead to an overload, significant computational overhead is eliminated without sacrificing accuracy.
  • Bounded Approximation via Merging: While merging equivalence classes introduces some imprecision, the paper demonstrates that this loss can be mathematically bounded, providing a trade-off between runtime and accuracy that can be controlled.
  • Scalability is Achievable: The core insight is that by reformulating the problem and employing clever state reduction, the analysis of deadline miss probabilities can scale to much larger task sets than previously thought possible.

Key Results

  • Significant Runtime Improvement: The proposed multinomial-based approach, especially when combined with pruning and equivalence class merging, demonstrates substantially better scalability compared to traditional convolution methods. For task sets with up to 35 tasks, their methods are orders of magnitude faster.
  • Comparable Precision: The multinomial-based approaches (Pruning, Unify) achieve results very close to each other, with errors in the magnitude of 10⁻⁹, significantly outperforming analytical bounds like Chernoff, Bernstein, and Hoeffding in terms of accuracy for the same computational effort.
  • Feasibility for Large Task Sets: The authors successfully evaluated task sets with up to 100 tasks, a scale that is infeasible for traditional convolution methods.
  • Analytical Bounds as a Quick Check: Hoeffding's and Bernstein's inequalities provide very fast results, making them useful for initial checks or when a rough upper bound is sufficient.

Limitations and Future Work

  • Over-Approximation with Analytical Bounds: Hoeffding's and Bernstein's inequalities inherently provide upper bounds, which might be too pessimistic for some applications.
  • Bounded Precision Loss with Merging: While the precision loss from merging equivalence classes is bounded, it is still a loss. The paper suggests that this loss can be controlled by setting an acceptable error threshold.
  • Future Work: The authors mention relaxing independence assumptions on tasks and jobs in future work, potentially by employing probabilistic graphical models. They also suggest further exploring the combination of their techniques and investigating their applicability to more complex scenarios.

Summary updated

Abstract

This paper explores the probability of deadline misses for a set of constrained-deadline sporadic soft real-time tasks on uniprocessor platforms. We explore two directions to evaluate the probability whether a job of the task under analysis can finish its execution at (or before) a testing time point t. One approach is based on analytical upper bounds that can be efficiently computed in polynomial time at the price of precision loss for each testing point, derived from the well-known Hoeffding's inequality and the well-known Bernstein's inequality. Another approach convolutes the probability efficiently over multinomial distributions, exploiting a series of state space reduction techniques, i.e., pruning without any loss of precision, and approximations via unifying equivalent classes with a bounded loss of precision. We demonstrate the effectiveness of our approaches in a series of evaluations. Distinct from the convolution-based methods in the literature, which suffer from the high computation demand and are applicable only to task sets with a few tasks, our approaches can scale reasonably without losing much precision in terms of the derived probability of deadline misses.
BibTeX
@inproceedings{bruggen2018efficiently,
  author = {Georg von der Brüggen and Nico Piatkowski and Kuan-Hsun Chen and Jian-Jia Chen and Katharina Morik},
  title = {{Efficiently Approximating the Probability of Deadline Misses in Real-Time Systems}},
  booktitle = {ECRTS},
  year = {2018},
  url = {https://openreview.net/forum?id=GhEN_aDbVCv5},
}
Figure