A MODEL OF WORKLOADS AND ITS USE IN MISS-RATE PREDICTION FOR FULLY ASSOCIATIVE CACHES

被引:21
作者
SINGH, JP
STONE, HS
THIEBAUT, DF
机构
[1] SMITH COLL,DEPT COMP SCI,NORTHAMPTON,MA 01059
[2] IBM CORP,DIV RES,YORKTOWN HTS,NY 10598
关键词
CACHE MEMORY; LOCALITY; POWER-LAW MODEL; MISS RATIO; MISS RATE; SET ASSOCIATIVE; SPATIAL LOCALITY; TEMPORAL LOCALITY;
D O I
10.1109/12.256450
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
We present a mathematical model for the behavior of programs or workloads and extract from it the miss ratio of a finite, fully associative cache (or other first-level memory) using Least-Recently-Used replacement under those workloads. To obtain miss ratios, we first model the function u(t, L) defined to be the number of unique lines of size L referenced before time t. Empirical observations show that this function appears to have the form u (t, L) = WL(a)t(b)d(log L log t) where W, a, b, d are constants that are related, respectively, to the working set size, locality of references to nearby addresses (spatial locality), temporal locality (locality in time not attributable to spatial locality), and interactions between spatial locality and temporal locality. The miss ratio of a finite fully associative cache can be approximated as the time derivative of u(t, L) evaluated where the function has a value equal to the size of the cache. When the miss ratios from this model are compared to measured miss ratios for a representative trace, the accuracy is high for large caches. For smaller caches, the model is close but not highly precise, although the general shapes of the predicted curves agree with those of the measured curves.
引用
收藏
页码:811 / 825
页数:15
相关论文
共 24 条
[1]   AN ANALYTICAL CACHE MODEL [J].
AGARWAL, A ;
HOROWITZ, M ;
HENNESSY, J .
ACM TRANSACTIONS ON COMPUTER SYSTEMS, 1989, 7 (02) :184-215
[2]  
AGARWAL A, 1989, COMMUNICATION JAN
[3]  
Chow C. K., 1975, IBM Technical Disclosure Bulletin, V17, P3163
[4]   OPTIMIZATION OF STORAGE HIERARCHIES [J].
CHOW, CK .
IBM JOURNAL OF RESEARCH AND DEVELOPMENT, 1974, 18 (03) :194-203
[5]   DETERMINATION OF CACHES CAPACITY AND ITS MATCHING STORAGE HIERARCHY [J].
CHOW, CK .
IEEE TRANSACTIONS ON COMPUTERS, 1976, 25 (02) :157-164
[6]   PROPERTIES OF WORKING-SET MODEL [J].
DENNING, PJ ;
SCHWARTZ, SC .
COMMUNICATIONS OF THE ACM, 1972, 15 (03) :191-&
[7]  
EASTON MC, 1978, IEEE T COMPUT, V27, P404, DOI 10.1109/TC.1978.1675119
[8]   COLD-START VS WARM-START MISS RATIOS [J].
EASTON, MC ;
FAGIN, R .
COMMUNICATIONS OF THE ACM, 1978, 21 (10) :866-872
[9]   EXPECTED NUMBER OF DISTINCT SITES VISITED BY A RANDOM WALK WITH AN INFINITE VARIANCE [J].
GILLIS, JE ;
WEISS, GH .
JOURNAL OF MATHEMATICAL PHYSICS, 1970, 11 (04) :1307-+
[10]  
Goodman J. R., 1983, 10th Annual International Conference on Computer Architecture Conference Proceedings, P124, DOI 10.1145/800046.801647