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 条
  • [21] Minimizing WCET for Real-Time Embedded Systems via Static Instruction Cache Locking
    Liu, Tiantian
    Li, Minming
    Xue, Chun Jason
    15TH IEEE REAL-TIME AND EMBEDDED TECHNOLOGY AND APPLICATION SYMPOSIUM: RTAS 2009, PROCEEDINGS, 2009, : 35 - 44
  • [22] A Survey of WCET Analysis of Real-Time Operating Systems
    Lv, Mingsong
    Guan, Nan
    Zhang, Yi
    Deng, Qingxu
    Yu, Ge
    Zhang, Jianming
    2009 INTERNATIONAL CONFERENCE ON EMBEDDED SOFTWARE AND SYSTEMS, PROCEEDINGS, 2009, : 65 - +
  • [23] Optimizing a combined WCET-WCEC problem in instruction fetching for real-time systems
    Gran, R.
    Segarra, J.
    Rodriguez, C.
    Aparicio, L. C.
    Vinals, V.
    JOURNAL OF SYSTEMS ARCHITECTURE, 2013, 59 (09) : 667 - 678
  • [24] Combining Instruction Prefetching with Partial Cache Locking to Improve WCET in Real-Time Systems
    Ni, Fan
    Long, Xiang
    Wan, Han
    Gao, Xiaopeng
    PLOS ONE, 2013, 8 (12):
  • [25] WCET analysis of probabilistic hard real-time systems
    Bernat, G
    Colin, A
    Petters, SM
    23RD IEEE REAL-TIME SYSTEMS SYMPOSIUM, PROCEEDINGS, 2002, : 279 - 288
  • [26] Drowsy caches: Simple techniques for reducing leakage power
    Flautner, K
    Kim, NS
    Martin, S
    Blaauw, D
    Mudge, T
    29TH ANNUAL INTERNATIONAL SYMPOSIUM ON COMPUTER ARCHITECTURE, PROCEEDINGS, 2002, : 148 - 157
  • [27] Snug set-associative caches: Reducing leakage power of instruction and data caches with no performance penalties
    Hwang, Yuan-Shin
    Li, Jia-Jhe
    ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2007, 4 (01) : 6
  • [28] Reducing energy in instruction caches by using multiple line buffers with prediction
    Ali, Kashif
    Aboelaze, Mokhtar
    Datta, Suprakash
    HIGH-PERFORMANCE COMPUTING, 2008, 4759 : 508 - +
  • [30] Extended Static Analysis for Estimating WCET in Distributed Real Time Systems
    Hong, Y. S.
    Goo, H. W.
    FIRST INTERNATIONAL WORKSHOP ON SOFTWARE TECHNOLOGIES FOR FUTURE DEPENDABLE DISTRIBUTED SYSTEMS, PROCEEDINGS, 2009, : 83 - 87