Title
A fast and accurate framework to analyze and optimize cache memory behavior
Abstract
The gap between processor and main memory performance increases every year. In order to overcome this problem, cache memories are widely used. However, they are only effective when programs exhibit sufficient data locality. Compile-time program transformations can significantly improve the performance of the cache. To apply most of these transformations, the compiler requires a precise knowledge of the locality of the different sections of the code, both before and after being transformed.Cache miss equations (CMEs) allow us to obtain an analytical and precise description of the cache memory behavior for loop-oriented codes. Unfortunately, a direct solution of the CMEs is computationally intractable due to its NP-complete nature.This article proposes a fast and accurate approach to estimate the solution of the CMEs. We use sampling techniques to approximate the absolute miss ratio of each reference by analyzing a small subset of the iteration space. The size of the subset, and therefore the analysis time, is determined by the accuracy selected by the user. In order to reduce the complexity of the algorithm to solve CMEs, effective mathematical techniques have been developed to analyze the subset of the iteration space that is being considered. These techniques exploit some properties of the particular polyhedra represented by CMEs.
Year
DOI
Venue
2004
10.1145/973097.973099
ACM Trans. Program. Lang. Syst.
Keywords
Field
DocType
precise knowledge,effective mathematical technique,cache memory,optimization,precise description,accurate framework,sufficient data locality,cache memory behavior,sampling,main memory performance,optimize cache memory behavior,cache memories,small subset,iteration space,direct solution,sampling technique
Locality,Cache-oblivious algorithm,Cache invalidation,Cache,CPU cache,Computer science,Parallel computing,Compiler,Cache algorithms,Theoretical computer science,Cache coloring
Journal
Volume
Issue
ISSN
26
2
0164-0925
Citations 
PageRank 
References 
23
1.22
34
Authors
4
Name
Order
Citations
PageRank
Xavier Vera1594.50
Nerina Bermudo2514.23
Josep Llosa357439.30
Antonio González43178229.66