A model of workloads and its use in miss-rate prediction for fully associative caches
- 1 July 1992
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computers
- Vol. 41 (7) , 811-825
- https://doi.org/10.1109/12.256450
Abstract
A mathematical model for the behavior of programs or workloads is presented and from it is extracted 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, the function u(t, L), defined to be the number of unique lines of size L referenced before time t, is modeled. Empirical observations show that this function appears to have the form u(t, L)=(W L/sup a/t/sup b/) (d/sup log/ /sup 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.Keywords
This publication has 18 references indexed in Scilit:
- Evaluating associativity in CPU cachesIEEE Transactions on Computers, 1989
- The stack growth function: cache line reference modelsIEEE Transactions on Computers, 1989
- Line (Block) Size Choice for CPU Cache MemoriesIEEE Transactions on Computers, 1987
- Transient behavior of cache memoriesACM Transactions on Computer Systems, 1983
- Using cache memory to reduce processor-memory trafficPublished by Association for Computing Machinery (ACM) ,1983
- Performance Analysis of Cache MemoriesJournal of the ACM, 1978
- A Comparative Study of Set Associative Memory Mapping Algorithms and Their Use for Cache and Main MemoryIEEE Transactions on Software Engineering, 1978
- On Optimization of Storage HierarchiesIBM Journal of Research and Development, 1974
- A simple linear model of demand paging performanceCommunications of the ACM, 1974
- Properties of the working-set modelCommunications of the ACM, 1972