Scope-Aware Data Cache Analysis for WCET Estimation
Bach Khoa Huynh, Lei Ju, Abhik Roychoudhury · Proceedings - Real-Time Technology and Applications Symposium · 2011
Caches are widely used in modern computer systems to bridge the increasing gap between processor speed and memory access time. On the other hand, presence of caches, especially data caches, complicates the static worst case execution time (WCET) analysis. Access pattern analysis (e.g., cache miss equations) are applicable to only a specific class of programs, where all array accesses must have predictable access patterns. Abstract interpretation-based methods (must/persistence analysis) determines possible cache conflicts based on coarse-grained memory access information from address analysis, which usually leads to significantly pessimistic estimation. In this paper, we first present a refined persistence analysis method which fixes the potential underestimation problem in the original persistence analysis. Based on our new persistence analysis, we propose a framework to combine access pattern analysis and abstract interpretation for accurate data cache analysis. We capture the dynamic behavior of a memory access by computing its temporal scope (the loop iterations where a given memory block is accessed for a given data reference) during address analysis. Temporal scopes as well as loop hierarchy structure (the static scopes) are integrated and utilized to achieve a more precise abstract cache state modeling. Experimental results shows that our proposed analysis obtains up to 74% reduction in the WCET estimates compared to existing data cache analysis.
Cited by 90 works. doi:10.1109/rtas.2011.27
Authors
References
- The SimpleScalar tool set, version 2.0
- An architecture for software-controlled data prefetching
- An accurate worst case timing analysis for RISC processors
- Cache modeling for real-time software: beyond direct mapped instruction caches
- Fast and Precise WCET Prediction by Separated Cache and Path Analyses
- Cache miss equations
- Efficient worst case timing analysis of data caching
- Exact analysis of the cache behavior of nested loops
- On predicting data cache behavior for real-time systems
- Chronos: A timing analyzer for embedded software