On the assessment of probabilistic WCET estimates reliability for arbitrary programs

Suzana Milutinovic, Jaume Abella, Francisco J. Cazorla

Introduction

In the design of safety-critical systems, such as those found in avionics or automotive electronics, determining the Worst-Case Execution Time (WCET) of software components is a fundamental requirement. As modern processors incorporate complex features like caches and pipelines, traditional static analysis becomes increasingly difficult. Consequently, researchers have shifted toward Measurement-Based Probabilistic Timing Analysis (MBPTA). This approach leverages randomized hardware and statistical methods, specifically Extreme Value Theory (EVT), to predict the rare "tail" of execution times that might occur during operation.

Probabilistic WCET estimation using Extreme Value Theory (EVT) to project the tail of execution time distributions from observed measurements.

The Challenge of Representativeness

The primary hurdle for MBPTA is representativeness. For a statistical estimate to be valid, the test runs must capture the underlying factors that drive worst-case behavior. In systems with randomized caches, a "bad" cache placement—where frequently used data addresses conflict in the same set—might have a probability of 1 in 100,000. Such an event is unlikely to appear in a standard test suite of 1,000 runs, leading to dangerously optimistic WCET estimates. While previous methods assumed uniform impact across memory addresses, real-world "arbitrary" programs exhibit irregular access patterns where specific conflicts are significantly more damaging than others.

Methodology: The ReVS Framework

To address this, the authors introduce ReVS (Representativeness Validation by Simulation). Unlike "one-size-fits-all" validation, ReVS tailors its analysis to the specific memory access patterns of the program under test.

Conceptualizing the 'Range of Interest' between observed probabilities ($P_{obs}$) and the safety-critical cut-off ($P_{cff}$), highlighting events that are relevant but potentially unobserved in standard testing.

The ReVS workflow consists of several key steps:

  1. Trace Analysis: Identifying the most frequently accessed memory addresses.
  2. Conflict Simulation: Using a lightweight cache simulator to force these addresses into conflictive placements and measure the resulting miss counts.
  3. Analytical Probability: Calculating the mathematical likelihood of these specific high-impact conflicts.
  4. Validation: Comparing simulated worst-case scenarios against the generated probabilistic distributions to identify gaps in statistical coverage.

By identifying the "Range of Interest"—the gap between what is easily observable and the required safety threshold—ReVS can determine the exact number of test runs ($R'$) needed to ensure that rare, high-impact events are statistically accounted for.

Experimental Results and Key Insights

The method was evaluated using the EEMBC Autobench 1.1 suite. The study yielded several critical insights:

  • Non-Uniform Impact: The performance penalty of cache conflicts varies wildly depending on the code context. Conflicts in tight inner loops are far more severe than those in initialization routines.
  • Miss Counts as Proxies: The authors demonstrated a high correlation ($>0.95$) between cache miss counts and total execution time, validating the use of fast cache simulators for timing reliability checks.
  • The Safety Gap: Standard MBPTA practices often fall short. For the aifirf benchmark, while standard analysis suggested 4,400 runs were sufficient, ReVS revealed that 21,390 runs were required to achieve industrial-grade safety levels.

Conclusion

ReVS provides a rigorous, pattern-aware method for validating the reliability of probabilistic timing estimates. While currently limited by the combinatorial complexity of address combinations and focused on single-level caches, it represents a significant step toward making MBPTA viable for complex, arbitrary programs in safety-critical domains. Future work will focus on optimizing the search for conflictive addresses and extending the framework to multi-level cache hierarchies.

Summary updated

BibTeX
@article{milutinovic2017assessment,
  author = {Suzana Milutinovic and Jaume Abella and Francisco J. Cazorla},
  title = {{On the assessment of probabilistic WCET estimates reliability for arbitrary programs}},
  journal = {EURASIP J. Embed. Syst.},
  year = {2017},
  doi = {10.1186/s13639-017-0076-8},
}
Figure