ACM Home Page
Please provide us with feedback. Feedback
An approximate analysis of the LRU and FIFO buffer replacement schemes
Full text PdfPdf (957 KB)
Source Joint International Conference on Measurement and Modeling of Computer Systems archive
Proceedings of the 1990 ACM SIGMETRICS conference on Measurement and modeling of computer systems table of contents
Univ. of Colorado, Boulder, Colorado, United States
Pages: 143 - 152  
Year of Publication: 1990
ISBN:0-89791-359-0
Also published in ...
Authors
Asit Dan  Department of Electrical and Computer Engineering, University of Massachusetts, Amherst, MA
Don Towsley  Department of Computer and Information Science, University of Massachusetts, Amherst, MA
Sponsor
SIGMETRICS: ACM Special Interest Group on Measurement and Evaluation
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 20,   Downloads (12 Months): 93,   Citation Count: 28
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/98457.98525
What is a DOI?

ABSTRACT

In this paper, we develop approximate analytical models for predicting the buffer hit probability under the Least Recently Used (LRU) and First In First Out (FIFO) buffer replacement policies under the independent reference model. In the case of the analysis of the LRU policy, the computational complexity for estimating the buffer hit probability is O(KB) where B is the size of the buffer and K denotes the number of items having distinct access probabilities. In the case of the FIFO policy, the solution algorithm is iterative and the computational complexity of each iteration is O(K). Results from these models are compared to exact results for models originally developed by King [KING71] for small values of the buffer size, B, and the total number of items sharing the buffer, D. Results are also compared with results from a simulation for large values of B and D. In most cases, the error is extremely small (less than 0.1%) for both LRU and FIFO, and a maximum error of 3% is observed for very small buffer size (less than 5) when the access probabilities are extremely skewed. To demonstrate the usefulness of the model, we consider two applications. In our first application, we compare the LRU and FIFO policies to an optimal static buffer allocation policy for a database consisting of two classes of data items. We observe that the performance of LRU is close to that of the optimal allocation. As the optimal allocation requires knowledge of the access probabilities, the LRU policy is preferred when this information is unavailable. We also observe that the LRU policy always performs better than the FIFO policy in our experiments. In our second application, we show that if multiple independent reference streams on mutually disjoint sets of data compete for the same buffer, it is better to partition the buffer using an optimal allocation policy than to share a common buffer.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
AVEN76
Aven, O.I., L.B. Boguslavsky, and ~. A. Kogan, "Some Results on Distribution-Free Analysis of Paging Algorithms," IEEE Transactions on Computers, Vol. C-25, No. 7, pp. 737-745, July 1976.
 
BABA83
Babaoglu, O. and D. Ferrari, "Two-Level Replacement Decisions in Paging Stores," IEEE Transacgions on Computers, Vol. C- 32, No. 12, pp. 1151-1159, December 1983.
 
COFF73
 
DAN89
Dan, A., D. Dias and P. S. Yu, "Buffer Model under Skewed Data Access for a Data Sharing Environment" (Work in progress).
 
FLAJ87
Flajolet, P., D. Gardy and L. Thimonier, "Birthday Paradox, Coupon Collectors, Caching Algorithms and Self-organizing Search", Tech Rep. 720 INRIA, Domaine Voluceau, Rocquencourt, BP 105 78153 Le Chesnay Cedex (France), August 1987.
 
FOX66
Fox, B.,"Discrete Optimization via Marginal Analysis," Managemen$ Science, Vol. 13, pp. 210-216, November 1966.
FRAN74
KEAR89
 
KING71
King, W. F., "Analysis of Paging Algorithms," In Proc. IFIP Congress, pages 485- 490, Ljublanjana, Yugoslavia, aug 1971.
LANG77
RAO78
 
SACC87
SMIT82
 
STON89
Stone, H. S., .}. L. Wolf, and J. Turek, Optimal Partitioning of Cache Memory, Research Report RC14444 (64697), IBM, March 1989.
 
TENG84
Teng, J. Z. and R. A. Gumaer, "Managing IBM Database 2 Buffers to Maximize Performance, "IBM System Journal, Vol. 23, No. 2, pp. 211-218, t984.
 
VAN89
J.L. van den Berg, private communication, November 1989.
VERK85

CITED BY  28