Skip to main content

Markov Analysis of Optimum Caching as an Equivalent Alternative to Belady’s Algorithm Without Look-Ahead

  • Conference paper
  • First Online:
Measurement, Modelling and Evaluation of Computing Systems (MMB 2018)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 10740))

Abstract

Belady’s algorithm defines a strategy for updating cache content in order to achieve the optimum hit rate, based on full information being available about future requests. In this work, we design a Markov state model to analyze and evaluate the hit rate of clairvoyant optimum caching.

We start deriving a new steady state solution for a cache that can store only a single object when requests are independent with arbitrary distribution. Results in literature are restricted to uniform request and we have to transfer them from paging systems to web caches, which refer to slightly different preconditions.

When we follow each specified state transition of the Markov process per request, this leads to an alternative implementation of Belady’s algorithm. Therefore the Markov approach can also be applied as an alternative to Belady’s algorithm for evaluating optimum caching based on request traces, in simulations and other use cases, e.g. for code optimization. Remarkably, the Markov process decides about optimum caching hits per request based on cache content, based on knowledge only of the past without look-ahead.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Beckmann, N., Sanchez, D.: Maximizing cache performance under uncertainty. In: Proceedings of the 23rd Symposium on High Performance Computer Architecture (HPCA) (2017)

    Google Scholar 

  2. Belady, L.A.: A study of replacement algorithms for a virtual-storage computer. IBM Syst. J. 2, 78–101 (1966)

    Article  Google Scholar 

  3. Breslau, L., et al.: Web caching and Zipf-like distributions: evidence and implications. In: Proceedings of the IEEE Infocom (1999)

    Google Scholar 

  4. Che, H., Tung, Y., Wang, Z.: Hierarchic web caching systems: modeling, design and experimental results. IEEE JSAC 20(7), 1305–1314 (2002)

    Google Scholar 

  5. Famaey, J., Iterbeke, F., Wauters, T., De Turck, F.: Towards a predictive cache replacement strategy for multimedia content. J. Netw. Comput. Appl. 36(1), 219–227 (2013)

    Article  Google Scholar 

  6. Gilmore, P.W.: Akamai & ISPs, Presentation UKNOF25 (2013). slideplayer.com/slide/10588098

  7. Guo, J., Garzarán, M.J., Padua, D.: The power of Belady’s algorithm in register allocation for long basic blocks. In: Rauchwerger, L. (ed.) LCPC 2003. LNCS, vol. 2958, pp. 374–389. Springer, Heidelberg (2004). https://doi.org/10.1007/978-3-540-24644-2_24

    Chapter  Google Scholar 

  8. Hasslinger, G., Hartleb, F.: Content delivery and caching from a network provider’s perspective. Comput. Netw. 55, 3991–4006 (2011). Special Issue on Internet based Content Delivery

    Article  Google Scholar 

  9. Hasslinger, G., Ntougias, K., Hasslinger, F.: Performance and precision of web caching simulations including a random generator for Zipf request pattern. In: Remke, A., Haverkort, B.R. (eds.) MMB&DFT 2016. LNCS, vol. 9629, pp. 60–76. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-31559-1_7

    Chapter  Google Scholar 

  10. Hasslinger, G., Kunbaz, M., Hasslinger, F., Bauschert, T.: Web caching evaluation from wikipedia request statistics. In: Proceedings of the 15th Symposium on Modeling and Optimization in Mobile, Ad Hoc, and Wireless Networks (WiOpt 2017), Paris, France (2017)

    Google Scholar 

  11. Hasslinger, G., Ntougias, K., Hasslinger, F., Hohlfeld, O.: Performance evaluation for new web caching strategies combining LRU with score based object selection. Comput. Netw. 125, 172–186 (2017)

    Article  Google Scholar 

  12. Jain, A., Lin, C.: Back to the future: leveraging Belady’s algorithm for improved cache replacement. In: Proceedings of the 43rd Annual International Symposium on Computer Architecture (ISCA) (2016)

    Google Scholar 

  13. Knuth, D.E.: An analysis of optimum caching. J. Algorithms 6, 181–199 (1985)

    Article  MathSciNet  MATH  Google Scholar 

  14. Lee, D., et al.: LRFU: a spectrum of policies that subsumes the least recently used and least frequently used policies. IEEE Trans. Comput. 50(12), 1352–1361 (2001)

    Article  MathSciNet  Google Scholar 

  15. Megiddo, N., Modha, S.: Outperforming LRU with an adaptive replacement cache algorithm. IEEE Comput. 37(4), 58–65 (2004)

    Article  Google Scholar 

  16. Podlipnik, S., Böszörmenyi, L.: A survey of web cache replacement strategies. ACM Comput. Surv. 35(4), 374–398 (2003)

    Article  Google Scholar 

  17. Shah, K., Mitra, A., Matani, D.: An O(1) algorithm for implementing the LFU cache eviction scheme. Technical report (2010). available via dhruvbird.com/lfu.pdf or en.wikipedia.org/wiki/Least_frequently_used

  18. Smith, A.J.: Analysis of the optimal, look-ahead demand paging algorithms. SIAM J. Comput. 5(4), 743–757 (1976)

    Article  MathSciNet  MATH  Google Scholar 

  19. Wikipedia statistics and information. https://meta.wikimedia.org/wiki/Wikimedia_servers, https://wikitech.wikimedia.org/wiki/Global_traffic_routing

Download references

Acknowledgements

This work has received funding from the European Union’s Horizon 2020 research and innovation programme in the EU SSICLOPS project <www.ssiclops.eu> under grant agreement No. 644866. This work reflects only the author’s views and the European Commission is not responsible for any use that may be made of the information it contains. The author would like to thank the anonymous reviewer, whose detailed report allowed to improve and correct several parts of this work.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Gerhard Hasslinger .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer International Publishing AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Hasslinger, G. (2018). Markov Analysis of Optimum Caching as an Equivalent Alternative to Belady’s Algorithm Without Look-Ahead. In: German, R., Hielscher, KS., Krieger, U. (eds) Measurement, Modelling and Evaluation of Computing Systems. MMB 2018. Lecture Notes in Computer Science(), vol 10740. Springer, Cham. https://doi.org/10.1007/978-3-319-74947-1_3

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-74947-1_3

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-74946-4

  • Online ISBN: 978-3-319-74947-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics