Array regrouping and structure splitting using whole-program reference affinity
Yutao Zhong, Maksim Orlovich, Xipeng Shen et al. · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · 2004
While the memory of most machines is organized as a hierarchy, program data are laid out in a uniform address space. This paper defines a model of reference affinity, which measures how close a group of data are accessed together in a reference trace. It proves that the model gives a hierarchical partition of program data. At the top is the set of all data with the weakest affinity. At the bottom is each data element with the strongest affinity. Based on the theoretical model, the paper presents k-distance analysis, a practical test for the hierarchical affinity of source-level data. When used for array regrouping and structure splitting, k-distance analysis consistently outperforms data organizations given by the programmer, compiler analysis, frequency profiling, statistical clustering, and all other methods we have tried.
Cited by 129 works. doi:10.1145/996841.996872 Open-access PDF
Authors
References
- Some methods for classification and analysis of multivariate observations
- Clustering Algorithms
- Clustering Algorithms.
- An empirical study of FORTRAN programs
- Department of Computer Science
- Evaluation techniques for storage hierarchies
- X-means: Extending K-means with Efficient Estimation of the Number of Clusters
- A data locality optimizing algorithm
- Strategies for cache and local memory management by global program transformation
- Optimizing Compilers for Modern Architectures: A Dependence-based Approach