skip to main content
research-article
Free Access

Some Mathematical Facts About Optimal Cache Replacement

Published:16 December 2016Publication History
Skip Abstract Section

Abstract

This article exposes and proves some mathematical facts about optimal cache replacement that were previously unknown or not proved rigorously. An explicit formula is obtained, giving OPT hits and misses as a function of past references. Several mathematical facts are derived from this formula, including a proof that OPT miss curves are always convex, and a new algorithm called OPT tokens, for reasoning about optimal replacement.

References

  1. A. V. Aho, P. J. Denning, and J. D. Ullman. 1971. Principles of optimal page replacement. Journal of the ACM 18, 1 (Jan. 1971). Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. N. Beckmann and D. Sanchez. 2015. Talus: A simple way to remove cliffs in cache performance. In International Symposium on High Performance Computer Architecture (HPCA).Google ScholarGoogle Scholar
  3. L. A. Belady. 1966. A study of replacement algorithms for virtual-storage computers. IBM Systems Journal 5, 2 (1966). Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. L. A. Belady and F. P. Palermo. 1974. On-line measurement of paging behavior by the multivalued MIN algorithm. IBM Journal of Research and Development 18, 1 (Jan. 1974). Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. J. Brock, X. Gu, B. Bao, and C. Ding. 2013. Pacman: Program-assisted cache management. In International Symposium on Memory Management (ISMM). Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. D. Burger and T. M. Austin. 1997. The simplescalar tool set, version 2.0. ACM SIGARCH Computer Architecture News 25, 3 (June 1997). Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. E. G. Coffman and P. J. Denning. 1973. Operating Systems Theory. Prentice-Hall. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. A. Cohen and W. A. Burkhard. 1995. A proof of the optimality of the MIN paging algorithm using linear programming duality. Operations Research Letters 18, 1 (Aug. 1995). Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. A. Jain and C. Lin. 2016. Back to the future: Leveraging Belady’s algorithm for improved cache replacement. In International Symposium on Computer Architecture (ISCA). Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. D. E. Knuth. 1985. An analysis of optimum caching. Journal of Algorithms 6, 2 (June 1985). Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. M.-K. Lee, P. Michaud, J. S. Sim, and D. Nyang. 2016. A simple proof of optimality for the MIN cache replacement policy. Information Processing. Letters 116, 2 (Feb. 2016). Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. W.-F. Lin and S. Reinhardt. 2002. Predicting Last-Touch References Under Optimal Replacement. Technical Report CSE-TR-447-02. University of Michigan.Google ScholarGoogle Scholar
  13. R. L. Mattson, J. Gecsei, D. R. Slutz, and I. L. Traiger. 1970. Evaluation techniques for storage hierarchies. IBM Systems Journal 9, 2 (1970). Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. S. McFarling. 1991. Program Analysis And Optimization For Machines With Instruction Cache. Ph.D. dissertation. Stanford University. Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. T. R. Puzak. 1985. Analysis of Cache Replacement Algorithms. Ph.D. dissertation. University of Massachusetts Amherst. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. K. Rajan and R. Govindarajan. 2007. Emulating optimal replacement with a shepherd cache. In International Symposium on Microarchitecture (MICRO). Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. A. J. Smith. 1976. Analysis of the optimal, look-ahead demand paging algorithms. SIAM Journal on Computing 5, 4 (Dec. 1976).Google ScholarGoogle ScholarCross RefCross Ref
  18. J. E. Smith and J. R. Goodman. 1985. Instruction cache replacement policies and organizations. IEEE Transactions on Computers C-34, 3 (March 1985). Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. R. A. Sugumar and S. G. Abraham. 1993. Efficient simulation of caches under optimal replacement with applications to miss characterization. In ACM SIGMETRICS. Google ScholarGoogle ScholarDigital LibraryDigital Library
  20. O. Temam. 1999. An algorithm for optimally exploiting spatial and temporal locality in upper memory levels. IEEE Transactions on Computers 48, 2 (Feb. 1999). Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. B. Van Roy. 2007. A short proof of optimality for the MIN cache replacement algorithm. Information Processing Letters 102, 2 (April 2007). Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. W. Vogler. 2008. Another short proof of optimality for the MIN cache replacement algorithm. Information Processing Letters 106, 5 (May 2008). Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Some Mathematical Facts About Optimal Cache Replacement

      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

      Full Access

      • Published in

        cover image ACM Transactions on Architecture and Code Optimization
        ACM Transactions on Architecture and Code Optimization  Volume 13, Issue 4
        December 2016
        648 pages
        ISSN:1544-3566
        EISSN:1544-3973
        DOI:10.1145/3012405
        Issue’s Table of Contents

        Copyright © 2016 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 the author(s) 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: 16 December 2016
        • Revised: 1 November 2016
        • Accepted: 1 November 2016
        • Received: 1 August 2016
        Published in taco Volume 13, Issue 4

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article
        • Research
        • Refereed

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader