On Estimating and Enhancing Cache Effectiveness
On Estimating and Enhancing Cache Effectiveness
复制标题
关于评估和增强缓存有效性
DOI:
--
复制
发表时间:
1991
期刊:
影响因子:
--
通讯作者:
W. Thrash
中科院分区:
文献类型:
--
作者:
J. Ferrante;Vivek Sarkar;W. Thrash
In this paper, we consider automatic analysis of a program's cache usage to achieve greater cache effectiveness. We show how to estimate efficiently the number of distinct cache lines used by a given loop in a nest of loops. Given this estimate of the number of cache lines needed, we can estimate the number of cache misses for a nest of loops. Our estimates can be used to guide program transformations such as loop interchange to achieve greater cache effectiveness. We present simulation results that show our estimates are reasonable for simple cases such as matrix multiply. We analyze the array sizes for which our estimates differ from our simulation results, and provide recommendations on how to handle such arrays in practice.