Reducing the WCET and analysis time of systems with simple lockable instruction caches

被引:6
|
作者
Pedro-Zapater, Alba [1 ,3 ]
Segarra, Juan [1 ,3 ]
Gran Tejero, Ruben [1 ,3 ]
Vinals, Victor [1 ,3 ]
Rodriguez, Clemente [2 ,3 ]
机构
[1] Univ Zaragoza, Inst Invest Ingn Aragon I3A, Dept Informat & Ingn Sistemas, Zaragoza, Spain
[2] Univ Basque Country, Dept Arquitectura & Tecnol Comp, Pais Vasco, Spain
[3] HiPEAC, Zaragoza, Spain
来源
PLOS ONE | 2020年 / 15卷 / 03期
关键词
EFFICIENT;
D O I
10.1371/journal.pone.0229980
中图分类号
O [数理科学和化学]; P [天文学、地球科学]; Q [生物科学]; N [自然科学总论];
学科分类号
07 ; 0710 ; 09 ;
摘要
One of the key challenges in real-time systems is the analysis of the memory hierarchy. Many Worst-Case Execution Time (WCET) analysis methods supporting an instruction cache are based on iterative or convergence algorithms, which are rather slow. Our goal in this paper is to reduce the WCET analysis time on systems with a simple lockable instruction cache, focusing on the Lock-MS method. First, we propose an algorithm to obtain a structure-based representation of the Control Flow Graph (CFG). It organizes the whole WCET problem as nested subproblems, which takes advantage of common branch-and-bound algorithms of Integer Linear Programming (ILP) solvers. Second, we add support for multiple locking points per task, each one with specific cache contents, instead of a given locked content for the whole task execution. Locking points are set heuristically before outer loops. Such simple heuristics adds no complexity, and reduces the WCET by taking profit of the temporal reuse found in loops. Since loops can be processed as isolated regions, the optimal contents to lock into cache for each region can be obtained, and the WCET analysis time is further reduced. With these two improvements, our WCET analysis is around 10 times faster than other approaches. Also, our results show that the WCET is reduced, and the hit ratio achieved for the lockable instruction cache is similar to that of a real execution with an LRU instruction cache. Finally, we analyze the WCET sensitivity to compiler optimization, showing for each benchmark the right choices and pointing out that O0 is always the worst option.
引用
收藏
页数:21
相关论文
共 50 条
  • [1] WCET Analysis of Instruction Caches with Prefetching
    Yan, Jun
    Zhang, Wei
    LCTES'07: PROCEEDINGS OF THE 2007 ACM SIGPLAN-SIGBED CONFERENCE ON LANGUAGES, COMPILERS, AND TOOLS FOR EMBEDDED SYSTEMS, 2007, : 175 - 184
  • [2] WCET analysis of instruction caches with prefetching
    Yan, Jun
    Zhang, Wei
    ACM SIGPLAN NOTICES, 2007, 42 (07) : 175 - 184
  • [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
    JOURNAL OF SYSTEMS ARCHITECTURE, 2011, 57 (07) : 695 - 706
  • [4] WCET-centric software-controlled instruction caches for hard real-time systems
    Puaut, Isabelle
    18TH EUROMICRO CONFERENCE ON REAL-TIME SYSTEMS, PROCEEDINGS, 2006, : 217 - +
  • [5] A generic framework to integrate data caches in the WCET analysis of real-time systems
    Segarra, Juan
    Gran Tejero, Ruben
    Villals, Victor
    JOURNAL OF SYSTEMS ARCHITECTURE, 2021, 120
  • [6] WCET Analysis of Static NUCA Caches
    Ding, Yiqiang
    Zhang, Wei
    2014 IEEE INTERNATIONAL PERFORMANCE COMPUTING AND COMMUNICATIONS CONFERENCE (IPCCC), 2014,
  • [7] WCET analysis for multi-core processors with shared L2 instruction caches
    Yan, Jun
    Zhang, Wei
    PROCEEDINGS OF THE 14TH IEEE REAL-TIME AND EMBEDDED TECHNOLOGY AND APPLICATIONS SYMPOSIUM, 2008, : 80 - 89
  • [8] Inter-Task WCET computation for A-way Instruction Caches
    Nemer, Fadia
    Casse, Hugues
    Sainrat, Pascal
    Bahsoun, Jean Paul
    2008 INTERNATIONAL SYMPOSIUM ON INDUSTRIAL EMBEDDED SYSTEMS, 2008, : 169 - 176
  • [9] Automatic Safe Data Reuse Detection for the WCET Analysis of Systems With Data Caches
    Segarra, Juan
    Cortadella, Jordi
    Gran Tejero, Ruben
    Vinals-Yufera, Victor
    IEEE ACCESS, 2020, 8 (08): : 192379 - 192392
  • [10] WCET analysis of multi-level non-inclusive set-associative instruction caches
    Hardy, Damien
    Puaut, Isabelle
    RTSS: 2008 REAL-TIME SYSTEMS SYMPOSIUM, PROCEEDINGS, 2008, : 456 - 466