Skip to main navigation Skip to search Skip to main content

WCET analysis with MRU cache: Challenging LRU for predictability

Research output: Journal Publications and ReviewsRGC 21 - Publication in refereed journalpeer-review

Abstract

Most previous work on cache analysis for WCET estimation assumes a particular replacement policy called LRU. In contrast, much less work has been done for non-LRU policies, since they are generally considered to be very unpredictable. However, most commercial processors are actually equipped with these non-LRU policies, since they are more efficient in terms of hardware cost, power consumption and thermal output, while still maintaining almost as good average-case performance as LRU. In this work, we study the analysis of MRU, a non-LRU replacement policy employed in mainstream processor architectures like Intel Nehalem. Our work shows that the predictability of MRU has been significantly underestimated before, mainly because the existing cache analysis techniques and metrics do not match MRU well. As our main technical contribution, we propose a new cache hit/miss classification, κ-Miss, to better capture the MRU behavior, and develop formal conditions and efficient techniques to decide κ-Miss memory accesses. A remarkable feature of our analysis is that the κ-Miss classifications under MRU are derived by the analysis result of the same program under LRU. Therefore, our approach inherits the advantages in efficiency and precision of the state-of-the-art LRU analysis techniques based on abstract interpretation. Experiments with instruction caches show that our proposed MRU analysis has both good precision and high efficiency, and the obtained estimated WCET is rather close to (typically 1% ∼8% more than) that obtained by the state-of-the-art LRU analysis, which indicates that MRU is also a good candidate for cache replacement policies in real-time systems. © 2014 ACM.
Original languageEnglish
Article number123
JournalTransactions on Embedded Computing Systems
Volume13
Issue number4 SPEC. ISSUE
DOIs
Publication statusPublished - Jul 2014
Externally publishedYes

Bibliographical note

Publication details (e.g. title, author(s), publication statuses and dates) are captured on an “AS IS” and “AS AVAILABLE” basis at the time of record harvesting from the data source. Suggestions for further amendments or supplementary information can be sent to [email protected].

Research Keywords

  • Cache replacement
  • Hard real time
  • MRU
  • Worst-case execution times

Fingerprint

Dive into the research topics of 'WCET analysis with MRU cache: Challenging LRU for predictability'. Together they form a unique fingerprint.

Cite this