Skip to main content

Minimizing Cache Usage in Paging

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 7846))

Abstract

Traditional paging models seek algorithms that maximize their performance while using the maximum amount of cache resources available. However, in many applications this resource is shared or its usage involves a cost. In this work we introduce the Minimum Cache Usage problem, which is an extension to the classic paging problem that accounts for the efficient use of cache resources by paging algorithms. In this problem, the cost of a paging algorithm is a combination of both its number of faults and the amount of cache it uses, where the relative cost of faults and cache usage can vary with the application. We present a simple family of online paging algorithms that adapt to the ratio α between cache and fault costs, achieving competitive ratios that vary with α, and that are between 2 and the cache size k. Furthermore, for sequences with high locality of reference, we show that the competitive ratio is at most 2, and provide evidence of the competitiveness of our algorithms on real world traces. Finally, we show that the offline problem admits a polynomial time algorithm. In doing so, we define a reduction of paging with cache usage to weighted interval scheduling on identical machines.

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

Buying options

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 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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Lemon graph library, http://lemon.cs.elte.hu/trac/lemon

  2. Trace reduction for virtual memory simulation, http://www.cs.amherst.edu/sfkaplan/research/trace-reduction/index.html

  3. Arkin, E.M., Silverberg, E.B.: Scheduling jobs with fixed start and end times. Discrete Appl. Math. 18(1), 1–8 (1987)

    Article  MathSciNet  MATH  Google Scholar 

  4. Barve, R.D., Grove, E.F., Vitter, J.S.: Application-controlled paging for a shared cache. SIAM J. Comput. 29, 1290–1303 (2000)

    Article  MathSciNet  MATH  Google Scholar 

  5. Belady, L.A.: A study of replacement algorithms for virtual-storage computer. IBM Systems Journal 5(2), 78–101 (1966)

    Article  Google Scholar 

  6. Borodin, A., El-Yaniv, R.: Online computation and competitive analysis. Cambridge University Press, New York (1998)

    MATH  Google Scholar 

  7. Bouzina, K.I., Emmons, H.: Interval scheduling on identical machines. Journal of Global Optimization 9, 379–393 (1996)

    Article  MathSciNet  MATH  Google Scholar 

  8. Brehob, M., Wagner, S., Torng, E., Enbody, R.J.: Optimal replacement is NP-hard for nonstandard caches. IEEE Trans. Computers 53(1), 73–76 (2004)

    Article  Google Scholar 

  9. Cao, P., Felten, E.W., Li, K.: Application-controlled file caching policies. In: Proceedings of USTC, vol. 1, pp. 171–182 (1994)

    Google Scholar 

  10. Cao, P., Irani, S.: Cost-aware WWW proxy caching algorithms. In: Proceedings of USITS, p. 18 (1997)

    Google Scholar 

  11. Chrobak, M., Karloff, H., Payne, T., Vishwanathan, S.: New results on server problems. SIAM J. Discret. Math. 4(2), 172–181 (1991)

    Article  MathSciNet  MATH  Google Scholar 

  12. Chrobak, M.: SIGACT news online algorithms column 17. SIGACT News 41(4), 114–121 (2010)

    Article  Google Scholar 

  13. Chrobak, M., Woeginger, G.J., Makino, K., Xu, H.: Caching is hard - even in the fault model. Algorithmica 63(4), 781–794 (2012)

    Article  MathSciNet  MATH  Google Scholar 

  14. Csirik, J., Imreh, C., Noga, J., Seiden, S.S., Woeginger, G.J.: Buying a constant competitive ratio for paging. In: Meyer auf der Heide, F. (ed.) ESA 2001. LNCS, vol. 2161, pp. 98–108. Springer, Heidelberg (2001)

    Chapter  Google Scholar 

  15. Dorrigiv, R., López-Ortiz, A., Munro, J.I.: On the relative dominance of paging algorithms. Theor. Comput. Sci. 410(38-40), 3694–3701 (2009)

    Article  MATH  Google Scholar 

  16. Feuerstein, E., Strejilevich de Loma, A.: On-line multi-threaded paging. Algorithmica 32(1), 36–60 (2002)

    Article  MathSciNet  MATH  Google Scholar 

  17. Hassidim, A.: Cache replacement policies for multicore processors. In: Yao, A.C.C. (ed.) ICS, pp. 501–509. Tsinghua University Press (2010)

    Google Scholar 

  18. Irani, S.: Page replacement with multi-size pages and applications to web caching. In: Proceedings of STOC, pp. 701–710. ACM (1997)

    Google Scholar 

  19. Kaplan, S.F., Smaragdakis, Y., Wilson, P.R.: Flexible reference trace reduction for vm simulations. ACM Trans. Model. Comput. Simul. 13(1), 1–38 (2003)

    Article  Google Scholar 

  20. López-Ortiz, A., Salinger, A.: Minimizing cache usage in paging. Tech. Rep. CS-2012-15, University of Waterloo (2012), http://www.cs.uwaterloo.ca/research/tr/2012/CS-2012-15.pdf

  21. López-Ortiz, A., Salinger, A.: Paging for multi-core shared caches. In: Goldwasser, S. (ed.) ITCS, pp. 113–127. ACM (2012)

    Google Scholar 

  22. Miyatake, H., Tanaka, M., Mori, Y.: A design for high-speed low-power CMOS fully parallel content-addressable memory macros. IEEE JSSC 36(6), 956–968 (2001)

    Google Scholar 

  23. Moruz, G., Negoescu, A.: Outperforming LRU via competitive analysis on parametrized inputs for paging. In: Proceedings of SODA, pp. 1669–1680 (2012)

    Google Scholar 

  24. Pagiamtzis, K., Sheikholeslami, A.: Content-addressable memory (CAM) circuits and architectures: A tutorial and survey. IEEE JSSC 41(3), 712–727 (2006)

    Google Scholar 

  25. Panagiotou, K., Souza, A.: On adequate performance measures for paging. In: Proceedings of STOC, pp. 487–496. ACM (2006)

    Google Scholar 

  26. Sleator, D.D., Tarjan, R.E.: Amortized efficiency of list update and paging rules. Commun. ACM 28(2), 202–208 (1985)

    Article  MathSciNet  Google Scholar 

  27. Torng, E.: A unified analysis of paging and caching. Algorithmica 20, 194–203 (1998)

    Article  MathSciNet  Google Scholar 

  28. Wagner, S.: Restricted Cache Scheduling. Ph.D. thesis, Michigan State Univ. (2001)

    Google Scholar 

  29. Young, N.E.: On-line file caching. In: Proc. of SODA, pp. 82–86. SIAM (1998)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

López-Ortiz, A., Salinger, A. (2013). Minimizing Cache Usage in Paging. In: Erlebach, T., Persiano, G. (eds) Approximation and Online Algorithms. WAOA 2012. Lecture Notes in Computer Science, vol 7846. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-38016-7_13

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-38016-7_13

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-38015-0

  • Online ISBN: 978-3-642-38016-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics