skip to main content
10.1145/977091.977136acmconferencesArticle/Chapter ViewAbstractPublication PagescfConference Proceedingsconference-collections
Article

Approximating the optimal replacement algorithm

Published:14 April 2004Publication History

ABSTRACT

LRU is the de facto standard page replacement strategy. It is well-known, however, that there are many situations where LRU behaves far from optimal. We present a replacement policy that approximates the optimal algorithm OPT more closely by predicting the time each page will be referenced again and by evicting the page that has the largest predicted time of next reference. Experiments using several benchmarks from the SPEC 2000 benchmark suite show that our algorithm is superior to LRU, in some cases by as much as 25%-30% and in one case by more than 100%.

References

  1. Jean-Loup Baer and Tien-Fu Chen. An Effective On-Chip Preloading Scheme to Reduce Data Access Penalty. In Proc. Supercomputing'91, 1991. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. A. Borodin, S. Irani, P. Raghavan, and B. Schieber. Competitive Paging With Locality of Reference. In Proc. Symp. on Theory of Computing, 1991. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. D. Burger and T.M. Austin. The SimpleScalar Tool Set, Version 2.0. Technical Report 1342, Univ. of Wisconsin-Madison, Comp. Sci. Dept., 1997.Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Amos Fiat and Ziv Rosen. Experimental Studies of Access Graph Based Heuristics: Beating the LRU Standard? In Proc. 8th ACM-SIAM Symposium on Discrete Algorithms (SODA'97), pages 63--72, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. J.W.C. Fu, J. H. Patel, and Bob L. Janssens. Stride Directed Prefetching in Scalar Processors. In Proc. Int. Symp. on Microarchitecture, 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. J.L. Hennessy and D.A. Patterson. Computer Architecture - A Quantitative Approach. Morgan Kaufmann, third edition, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. Sandy Irani, Anna R. Karlin, and Steven Phillips. Strongly Competitive Algorithms for Paging With Locality of Reference. SIAM Journal on Computing, 25(3), 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. Yvon Jegou and Olivier Temam. Speculative Prefetching. In Proc. Int. Conf. on Supercomputing, pages 57--66, 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. T. Johnson and D. Shasha. 2Q: A Low Overhead High Performance Buffer Management Replacement Algorithm. In Proc. 20th Int. Conf. on Very Large Data Bases, pages 439--450, 1994. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. A.J. KleinOsowski, John Flynn, Nancy Meares, and David J. Lilja. Adapting the SPEC 2000 Benchmark Suite for Simulation-Based Computer Architecture Research. In Proc. Workshop on Workload Characterization, Int. Conf. on Computer Design (ICCD), 2000.Google ScholarGoogle Scholar
  11. Nimrod Megiddo and D. S. Modha. ARC: A Self-tuning, Low Overhead Replacement Cache. In Proc. 2nd USENIX Conf. on File and Storage Technologies, 2003. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. Elizabeth J. O'Neil, Patrick E. O'Neil, and Gerhard Weikum. The LRU-K Page Replacement Algorithm for Database Disk Buffering. In Proc. ACM SIGMOD Int. Conf. on Management of Data, pages 297--306, 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. D.D. Sleator and R.E. Tarjan. Amortized Efficiency of List Update and Paging Rules. Communications of the ACM, 28(2):202--208, 1985. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. R. A. Sugumar and S. G. Abraham. Efficient Simulation of Caches Under Optimal Replacement With Applications to Miss Characterization. In Proc. ACM SIGMETRICS Conf. on Measurement and Modeling Computer Systems, 1993. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. Wayne A. Wong and Jean-Loup Baer. Modified LRU Policies for Improving Second-Level Cache Behavior. In Proc. Int. Symp. on High-Performance Computer Architecture, 2000.Google ScholarGoogle Scholar

Index Terms

  1. Approximating the optimal replacement algorithm

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in
  • Published in

    cover image ACM Conferences
    CF '04: Proceedings of the 1st conference on Computing frontiers
    April 2004
    522 pages
    ISBN:1581137419
    DOI:10.1145/977091

    Copyright © 2004 ACM

    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 14 April 2004

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • Article

    Acceptance Rates

    Overall Acceptance Rate240of680submissions,35%

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader