Exact analysis of the cache behavior of nested loops
The DOI matches its Crossref record; 1 of the 1 references it cites were found in a registry or an index.
Abstract
We develop from first principles an exact model of the behavior of loop nests executing in a memory hicrarchy, by using a nontraditional classification of misses that has the key property of composability. We use Presburger formulas to express various kinds of misses as well as the state of the cache at the end of the loop nest. We use existing tools to simplify these formulas and to count cache misses. The model is powerful enough to handle imperfect loop nests and various flavors of non-linear array layouts based on bit interleaving of array indices. We also indicate how to handle modest levels of associativity, and how to perform limited symbolic analysis of cache behavior. The complexity of the formulas relates to the static structure of the loop nest rather than to its dynamic trip count, allowing our model to gain efficiency in counting cache misses by exploiting repetitive patterns of cache behavior. Validation against cache simulation confirms the exactness of our formulation. Our method can serve as the basis for a static performance predictor to guide program and data transformations to improve performance.
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.
Integrity signals
Registry
Cites
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.
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
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 3×
“The structure of a single level of a memory hierarchy—a cache— is generally characterized by three parameters [30]: Associativity, Block size, and Capacity.”
BackgroundInfluential
Cited by
Self-Adapting Linear Algebra Algorithms and Software
Demmel, J., Dongarra, J., Eijkhout, V., Fuentes, E., Petitet, A., Vuduc, R., Whaley, R. C., & Yelick, K. (2005) · Proceedings of the IEEE · doi:10.1109/jproc.2004.840848 · Cited by 204
“For example, CSR storage prevents automatically tiling accesses to x for either registers or caches, as might be done in the dense case [40], [41], [42], [43].”
BackgroundProgram locality analysis using reuse distance
Zhong, Y., Shen, X., & Ding, C. (2009) · ACM Transactions on Programming Languages and Systems · doi:10.1145/1552309.1552310 · Cited by 166
“There are a number of compiler techniques that estimate the miss rate of a program [Porter.eld 1989; Ferrante et al. 1991; Ghosh et al. 1999; Chatterjee et al. 2001; Xue and Vera 2004].”
BackgroundA comparison of empirical and model-driven optimization
Yotov, K., Li, X., Ren, G., Cibulskis, M., DeJong, G., Garzaran, M., Padua, D., Pingali, K., Stodghill, P., & Wu, P. (2003) · ACM SIGPLAN Notices · doi:10.1145/780822.781140 · Cited by 165
Estimating cache misses and locality using stack distances
CaΒcaval, C., & Padua, D. A. (2003) · Proceedings of the 17th annual international conference on Supercomputing · doi:10.1145/782814.782836 · Cited by 163
“[6] use Presburger formulas to express various kinds of misses as well as the state of the cache at the beginning and at the end of a loop.”
Method(2002) · doi:10.5555/762761.762822 · Cited by 115
Metadata
- Authors
- Chatterjee, S., Parker, E., Hanlon, P. J., & Lebeck, A. R.
- Venue
- Proceedings of the ACM SIGPLAN 2001 conference on Programming language design and implementation
- Publisher
- ACM
- Published
- 2001-05
- Pages
- 286-297
- ISSN
- 1531-7102 (ISSN-L)
- OpenAlex
- W2065705265
- Cited by
- 163
- References
- 1
- FWCI
- 11.28
- 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
How to cite
Cite CoChat for the checks on this page, and the paper for its own findings.
- This page
- CoChat. (2026). Citation check: Exact analysis of the cache behavior of nested loops. https://app.cochat.ai/papers/10.1145/378795.378859
- The paper
- Chatterjee, S., Parker, E., Hanlon, P. J., & Lebeck, A. R. (2001). Exact analysis of the cache behavior of nested loops. Proceedings of the ACM SIGPLAN 2001 conference on Programming language design and implementation. https://doi.org/10.1145/378795.378859
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.