Academia.eduAcademia.edu

Outline

Avoiding the WCET overestimation on LRU instruction cache

2008

Abstract

The WCET computation is one of the main challenges in hard real-time systems, since all further analysis is based on this value. The complexity of this problem leads existing analysis methods to compute WCET bounds instead of the exact WCET. In this work we propose a technique to compute the exact instruction fetch contribution to the WCET (IFC-WCET) in presence of a LRU instruction cache. We prove that an exact computation does not need to analyze the full exponential number of possible execution paths, but only a bounded subset of them. In the benchmark codes we have studied, the IFC-WCET is up to 62% lower than a bound computed with a widely used approach, and the difference between the number of possible execution paths and the ones relevant for the analysis is extremely large.

References (11)

  1. Benchmarks maintained by Mälardalen WCET group. http://www.mrtc.mdh.se/projects/wcet/benchmarks.html.
  2. R. Arnold, F. Mueller, D. Whalley, and M. Harmon. Bound- ing worst-case instruction cache performance. In IEEE Real- Time Systems Symposium, pages 172-181, December 1994.
  3. P. Cousot and R. Cousot. Abstract interpretation: a unified lattice model for static analysis of programs by construc- tion or approximation of fixpoints. In Conference Record of the Fourth Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, pages 238-252, Los Angeles, California, 1977. ACM Press, New York, NY.
  4. C. Ferdinand and R. Wilhelm. Efficient and precise cache behavior prediction for real-time systems. Real-Time Sys- tems, 17(2-3):131-181, November 1999.
  5. C. Healy, D. Whalley, and M. Harmon. Integrating the tim- ing analysis of pipelining and instruction caching. In IEEE Real-Time Systems Symposium, pages 288-297, December 1995.
  6. T. Lundqvist and P. Stenström. An integrated path and tim- ing analysis method based on cycle-level symbolic execu- tion. Real-Time Systems, 17(2-3):183-207, November 1999.
  7. F. Mueller. Timing analysis for instruction caches. Real- Time Systems, 18(2-3):217-247, May 2000.
  8. I. Puaut. Cache analysis vs static cache locking for schedu- lability analysis in multitasking real-time systems. In Pro- ceedings of 2nd International Workshop on Worst-Case Ex- ecution Time Analysis (WCET'02), 2002.
  9. J. Reineke, D. Grund, C. Berg, and R. Wilhelm. Timing predictability of cache replacement policies. Real-Time Sys- tems, 37(2):99-122, Nov. 2007.
  10. H. Theiling, C. Ferdinand, and R. Wilhelm. Fast and pre- cise WCET prediction by separated cache and path analyses. Real-Time Systems, 18(2-3):157-179, May 2000.
  11. R. Wilhelm et al. The determination of worst-case execution times-overview of the methods and survey of tools. ACM Transactions on Embedded Computing Systems (TECS), 2007.