Efficient Calculation of Expected Miss Ratios in the Independent Reference Model
Efficient Calculation of Expected Miss Ratios in the Independent Reference Model
复制标题
独立参考模型中预期缺失率的高效计算
DOI:
10.1137/0207025
复制
发表时间:
1978
期刊:
影响因子:
--
通讯作者:
T. G. Price
中科院分区:
文献类型:
--
作者:
Ronald Fagin;T. G. Price
In the independent reference model of program behavior, King’s formulas for the expected FIFO (“first-in-first-out”) and expected LRU (“least-recently-used”) miss ratios each contain an exponential number of terms (very roughly $n^{{\text{CAP}}} $, where n is the number of pages and CAP is the capacity of main memory). Hence, under the straightforward algorithms, these formulas are computationally intractable. We present an algorithm which is both efficient (there are $O(n \cdot {\text{CAP}})$ additions, multiplications, and divisions) and provably numerically stable, for calculating the expected FIFO miss ratio. In the case of LRU, we present an efficient method, based on an urn model, for obtaining an unbiased estimate of the expected LRU miss ratio (the method requires $O(n \cdot {\text{CAP}})$ additions and comparisons, and $O({\text{CAP}})$ divisions and random number generations).