Page mapping for heterogeneously partitioned caches: Complexity and heuristics

  • Authors:
  • Zhiyuan Li;Rong Xu

  • Affiliations:
  • Department of Computer Sciences, Purdue University, West Lafayette, IN 47907 (Corresponding author. E-mail: li@cs.purdue.edu);Department of Computer Sciences, Purdue University, West Lafayette, IN 47907

  • Venue:
  • Journal of Embedded Computing - Cache exploitation in embedded systems
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

Embedded processors such as the Intel StrongARM SA-1110 and the Intel XScale utilize multiple caches at the same level in the cache hierarchy. The main cache and the mini-cache differ in both the size and the associativity. Furthermore, the processors allow programs to specify the cache mapping policy for each virtual page among three choices, i.e. whether to map the page to the main cache, the mini-cache, or neither. In the latter case, the page is marked as noncacheable. In this paper, we investigate the problem of optimal cache mapping, assuming that we can predict the trace of the memory reference in advance. On the theoretical side, we prove that the problem of finding the optimal cache mapping for an arbitrary memory trace is NP-hard. On the experimental side, we present a mapping heuristic and compare the result with the default policy which maps all pages to the main cache. Our measurement shows that, compared to the default policy, the heuristic can reduce the execution time from 1% to 21% for a set of test programs. As a byproduct of performance enhancement, we also save the energy by 4% to 28%.