CoChat

Estimating cache misses and locality using stack distances

CaΒcaval, Calin, Padua, David A. · 2003 · Proceedings of the 17th annual international conference on Supercomputing
Cited by 163

The DOI matches its Crossref record; 25 of the 25 references it cites were found in a registry or an index.

Abstract

Cache behavior modeling is an important part of modern optimizing compilers. In this paper we present a method to estimate the number of cache misses, at compile time, using a machine independent model based on stack algorithms. Our algorithm computes the stack histograms symbolically, using data dependence distance vectors and is totally accurate when dependence distances are uniformly generated. The stack histogram models accurately fully associative caches with LRU replacement policy, and provides a very good approximation for set-associative caches and programs with non-constant dependence distances.The stack histogram is an accurate, machine-independent metric of locality. Compilers using this metric can evaluate optimizations with respect to memory behavior. We illustrate this use of the stack histogram by comparing three locality enhancing transformations: tiling, data shackling and the product-space transformation. Additionally, the stack histogram model can be used to compute optimal parameters for data locality transformations, such as the tile size for loop tiling.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1145/782814.782836

Cites

25 of 25 references verified0 citation errors · 0 not checkable

Statistics

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

  • Lecture Notes in Computer Science 1205

    (1999) · Industrial Robot: An International Journal · doi:10.1108/ir.1999.04926fae.001 · Cited by 38,662

  • A data locality optimizing algorithm

    Wolf, M. E., & Lam, M. S. (1991) · Proceedings of the ACM SIGPLAN 1991 conference on Programming language design and implementation - PLDI '91 · doi:10.1145/113445.113449 · Cited by 1,331 · cited 2×

    “Tiling [7, 33, 34], also known as blocking, is a transformation that increases the nesting degree of a loop, such that the working set of the innermost loop fits in the memory hierarchy level for which the transformation is applied.”
    Background
  • Evaluation techniques for storage hierarchies

    Mattson, R. L., Gecsei, J., Slutz, D. R., & Traiger, I. L. (1970) · IBM Systems Journal · doi:10.1147/sj.92.0078 · Cited by 1,302 · cited 1×

    “The memory model is based on the stack histogram obtained from the stack processing algorithm [19], which consumes a trace of memory references in a program, and builds a stack and its histogram S(∆) as follows: (1) if the reference is the first access to that trace element, set ∆ = ∞, increment S(∞) and push the refe…”
    Method
  • Automatically Tuned Linear Algebra Software

    Whaley, R. C., & Dongarra, J. J. (1998) · Conference on High Performance Computing (Supercomputing) · doi:10.5555/509058.509096 · Cited by 854

  • Evaluating associativity in CPU caches

    Hill, M. D., & Smith, A. J. (1989) · IEEE Transactions on Computers · doi:10.1109/12.40842 · Cited by 606 · cited 2×

    “This approximation has been proved to be quite accurate in [13].”
    Background
  • More iteration space tiling

    Wolfe, M. (1989) · Proceedings of the 1989 ACM/IEEE conference on Supercomputing - Supercomputing '89 · doi:10.1145/76263.76337 · Cited by 429 · cited 2×

    “Tiling [7, 33, 34], also known as blocking, is a transformation that increases the nesting degree of a loop, such that the working set of the innermost loop fits in the memory hierarchy level for which the transformation is applied.”
    Background
  • Tile size selection using cache organization and data layout

    Coleman, S., & McKinley, K. S. (1995) · Proceedings of the ACM SIGPLAN 1995 conference on Programming language design and implementation · doi:10.1145/207110.207162 · Cited by 402 · cited 2×

    “Tiling [7, 33, 34], also known as blocking, is a transformation that increases the nesting degree of a loop, such that the working set of the innermost loop fits in the memory hierarchy level for which the transformation is applied.”
    Background
  • Strategies for cache and local memory management by global program transformation

    Gannon, D., Jalby, W., & Gallivan, K. (1988) · Journal of Parallel and Distributed Computing · doi:10.1016/0743-7315(88)90014-7 · Cited by 350 · cited 2×

    “To summarize, in order to obtain totally accurate stack histograms, we assume that the analyzed loops satisfy the following conditions: (i) all subscript expressions are affine expressions of the loop indices, (ii) there are no conditional instructions in the body of the loop, (iii) the loop limits are constants or lo…”
    Background
  • Parallel programming with Polaris

    Blume, W., Doallo, R., Eigenmann, R., Grout, J., Hoeflinger, J., & Lawrence, T. (1996) · Computer · doi:10.1109/2.546612 · Cited by 333 · cited 1×

    “We have implemented our compile-time analysis stack processing instrumentation in the Polaris source-to-source compiler [3].”
    Method
  • Data-centric multi-level blocking

    Kodukula, I., Ahmed, N., & Pingali, K. (1997) · Proceedings of the ACM SIGPLAN 1997 conference on Programming language design and implementation · doi:10.1145/258915.258946 · Cited by 238 · cited 2×

    “Loop transformations that enhance data locality, such as tiling [7, 33, 34, 16], and fusion [18], or code transformations such as data shackling [14] and the product-space transformation [1] are techniques to increase data reuse.”

Show all 25 references

Cited by

Metadata

Authors
CaΒcaval, C., & Padua, D. A.
Venue
Proceedings of the 17th annual international conference on Supercomputing
Publisher
ACM
Published
2003-06-23
Pages
150-159
OpenAlex
W2029891792
Cited by
163
References
25
FWCI
5.26
Type
conference paper
Language
en
Open access
closed

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.