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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
Beckmann, N., Sanchez, D.: Maximizing cache performance under uncertainty. In: Proceedings of the 23rd Symposium on High Performance Computer Architecture (HPCA) (2017)
Belady, L.A.: A study of replacement algorithms for a virtual-storage computer. IBM Syst. J. 2, 78–101 (1966)
Breslau, L., et al.: Web caching and Zipf-like distributions: evidence and implications. In: Proceedings of the IEEE Infocom (1999)
Che, H., Tung, Y., Wang, Z.: Hierarchic web caching systems: modeling, design and experimental results. IEEE JSAC 20(7), 1305–1314 (2002)
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)
Gilmore, P.W.: Akamai & ISPs, Presentation UKNOF25 (2013). slideplayer.com/slide/10588098
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
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
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
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)
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)
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)
Knuth, D.E.: An analysis of optimum caching. J. Algorithms 6, 181–199 (1985)
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)
Megiddo, N., Modha, S.: Outperforming LRU with an adaptive replacement cache algorithm. IEEE Comput. 37(4), 58–65 (2004)
Podlipnik, S., Böszörmenyi, L.: A survey of web cache replacement strategies. ACM Comput. Surv. 35(4), 374–398 (2003)
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
Smith, A.J.: Analysis of the optimal, look-ahead demand paging algorithms. SIAM J. Comput. 5(4), 743–757 (1976)
Wikipedia statistics and information. https://meta.wikimedia.org/wiki/Wikimedia_servers, https://wikitech.wikimedia.org/wiki/Global_traffic_routing
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
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer International Publishing AG
About this paper
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)