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 条
[11]   EVALUATING ASSOCIATIVITY IN CPU CACHES [J].
HILL, MD ;
SMITH, AJ .
IEEE TRANSACTIONS ON COMPUTERS, 1989, 38 (12) :1612-1630
[12]  
HILL MD, 1991, IEEE T COMPUT, V40, P371
[13]   THE STACK GROWTH-FUNCTION - CACHE LINE REFERENCE MODELS [J].
KOBAYASHI, M ;
MACDOUGALL, MH .
IEEE TRANSACTIONS ON COMPUTERS, 1989, 38 (06) :798-805
[14]  
Mandelbrot B.B., 1983, AMJPHYS
[15]   PERFORMANCE ANALYSIS OF CACHE MEMORIES [J].
RAO, GS .
JOURNAL OF THE ACM, 1978, 25 (03) :378-395
[16]   SIMPLE LINEAR-MODEL OF DEMAND PAGING PERFORMANCE [J].
SALTZER, JH .
COMMUNICATIONS OF THE ACM, 1974, 17 (04) :181-186
[17]   LINE (BLOCK) SIZE CHOICE FOR CPU CACHE MEMORIES [J].
SMITH, AJ .
IEEE TRANSACTIONS ON COMPUTERS, 1987, 36 (09) :1063-1075
[19]   TRANSIENT-BEHAVIOR OF CACHE MEMORIES [J].
STRECKER, WD .
ACM TRANSACTIONS ON COMPUTER SYSTEMS, 1983, 1 (04) :281-293