PLoS ONE (Jan 2013)

Combining instruction prefetching with partial cache locking to improve WCET in real-time systems.

  • Fan Ni,
  • Xiang Long,
  • Han Wan,
  • Xiaopeng Gao

DOI
https://doi.org/10.1371/journal.pone.0082975
Journal volume & issue
Vol. 8, no. 12
p. e82975

Abstract

Read online

Caches play an important role in embedded systems to bridge the performance gap between fast processor and slow memory. And prefetching mechanisms are proposed to further improve the cache performance. While in real-time systems, the application of caches complicates the Worst-Case Execution Time (WCET) analysis due to its unpredictable behavior. Modern embedded processors often equip locking mechanism to improve timing predictability of the instruction cache. However, locking the whole cache may degrade the cache performance and increase the WCET of the real-time application. In this paper, we proposed an instruction-prefetching combined partial cache locking mechanism, which combines an instruction prefetching mechanism (termed as BBIP) with partial cache locking to improve the WCET estimates of real-time applications. BBIP is an instruction prefetching mechanism we have already proposed to improve the worst-case cache performance and in turn the worst-case execution time. The estimations on typical real-time applications show that the partial cache locking mechanism shows remarkable WCET improvement over static analysis and full cache locking.