Automatic Safe Data Reuse Detection for the WCET Analysis of Systems With Data Caches

被引:6
作者
Segarra, Juan [1 ]
Cortadella, Jordi [2 ]
Gran Tejero, Ruben [1 ]
Vinals-Yufera, Victor [1 ]
机构
[1] Univ Zaragoza, Dept Informat & Ingn Sistemas, Zaragoza 50018, Spain
[2] Univ Politecn Cataluna, Comp Sci Dept, Barcelona 08034, Spain
来源
IEEE ACCESS | 2020年 / 8卷 / 08期
关键词
Real-time; WCET; data-cache; data-reuse; PREDICTION;
D O I
10.1109/ACCESS.2020.3032145
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Worst-case execution time (WCET) analysis of systems with data caches is one of the key challenges in real-time systems. Caches exploit the inherent reuse properties of programs, temporarily storing certain memory contents near the processor, in order that further accesses to such contents do not require costly memory transfers. Current worst-case data cache analysis methods focus on specific cache organizations (LRU, locked, ACDC, etc.). In this article, we analyze data reuse (in the worst case) as a property of the program, and thus independent of the data cache. Our analysis method uses Abstract Interpretation on the compiled program to extract, for each static load/store instruction, a linear expression for the address pattern of its data accesses, according to the Loop Nest Data Reuse Theory. Each data access expression is compared to that of prior (dominant) memory instructions to verify whether it presents a guaranteed reuse. Our proposal manages references to scalars, arrays, and non-linear accesses, provides both temporal and spatial reuse information, and does not require the exploration of explicit data access sequences. As a proof of concept we analyze the TACLeBench benchmark suite, showing that most loads/stores present data reuse, and how compiler optimizations affect it. Using a simple hit/miss estimation on our reuse results, the time devoted to data accesses in the worst case is reduced to 27% compared to an always-miss system, equivalent to a data hit ratio of 81%. With compiler optimization, such time is reduced to 6.5%.
引用
收藏
页码:192379 / 192392
页数:14
相关论文
共 34 条
  • [1] Aho V. A., 2007, ADDISON WESLEY SERIE
  • [2] Avoiding the WCET Overestimation on LRU Instruction Cache
    Aparicio, L. C.
    Segarra, J.
    Rodriguez, C.
    Villarroel, J. L.
    Vinals, V.
    [J]. RTCSA 2008: 14TH IEEE INTERNATIONAL CONFERENCE ON EMBEDDED AND REAL-TIME COMPUTING SYSTEMS AND APPLICATIONS - PROCEEDINGS, 2008, : 393 - +
  • [3] Improving the WCET computation in the presence of a lockable instruction cache in multitasking real-time systems
    Aparicio, Luis C.
    Segarra, Juan
    Rodriguez, Clemente
    Vinals, Victor
    [J]. JOURNAL OF SYSTEMS ARCHITECTURE, 2011, 57 (07) : 695 - 706
  • [4] Scope-aware Data Cache Analysis for WCET Estimation
    Bach Khoa Huynh
    Ju, Lei
    Roychoudhury, Abhik
    [J]. 17TH IEEE REAL-TIME AND EMBEDDED TECHNOLOGY AND APPLICATIONS SYMPOSIUM (RTAS 2011), 2011, : 203 - 212
  • [5] Ballabriga C, 2010, LECT NOTES COMPUT SC, V6399, P35, DOI 10.1007/978-3-642-16256-5_6
  • [6] BENITEZ ME, 1988, SIGPLAN NOTICES, V23, P329, DOI 10.1145/960116.54023
  • [7] Bonenfant A., 2008, P WORKSH RES AN, P35
  • [8] Cousot P., 1977, POPL 1977, P238, DOI DOI 10.1145/512950.512973
  • [9] Falk H., 2016, Proceedings of the 16th International Workshop on Worst-Case Execution Time Analysis (WCET'16), P1, DOI DOI 10.4230/OASICS.WCET.2016.2
  • [10] Ferdinand C, 2004, INT FED INFO PROC, V156, P377