[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.1145/2803140.2803146acmotherconferencesArticle/Chapter ViewAbstractPublication PagesimdmConference Proceedingsconference-collections
research-article

Cost-based Memory Partitioning and Management in Memcached

Published: 31 August 2015 Publication History

Abstract

In this work we present a cost-based memory partitioning and management mechanism for Memcached, an in-memory key-value store used as Web cache, that is able to dynamically adapt to user requests and manage the memory according to both object sizes and costs. We then present a comparative analysis of the vanilla memory management scheme of Memcached and our approach, using real traces from a major content delivery network operator. Our results indicate that our scheme achieves near-optimal performance, striking a good balance between the performance perceived by end-users and the pressure imposed on back-end servers.

References

[1]
Caching with twemcache and calcification. https://blog.twitter.com/2012/caching-with-twemcache. Accessed: 2015-06-01.
[2]
gperftools. https://code.google.com/p/gperftools/. Accessed: 2015-06-01.
[3]
Memcached. http://memcached.org. Accessed: 2015-06-01.
[4]
Redis. http://redis.io/. Accessed: 2015-06-01.
[5]
Twemcache. https://github.com/twitter/twemcache. Accessed: 2015-06-01.
[6]
B. Atikoglu, Y. Xu, E. Frachtenberg, S. Jiang, and M. Paleczny. Workload analysis of a large-scale key-value store. In Proceedings of the 12th ACM SIGMETRICS/PERFORMANCE joint international conference on Measurement and Modeling of Computer Systems, 2012.
[7]
O. Bahat and A. Makowski. Optimal replacement policies for non-uniform cache objects with optional eviction. In Proceedings of the Twenty-Second Annual Joint Conference of the IEEE Computer and Communications (INFOCOM), 2003.
[8]
E. Biersack, D. Carra, R. L. Cigno, P. Rodriguez, and P. Felber. Overlay architectures for file distribution: Fundamental performance analysis for homogeneous and heterogeneous cases. Computer Networks, 51(3):901--917, 2007.
[9]
G. Blelloch and P. Gibbons. Effectively sharing a cache among threads. In Proceedings of the sixteenth annual ACM symposium on Parallelism in algorithms and architectures (SPAA), 2004.
[10]
P. Cao and S. Irani. Cost-aware WWW proxy caching algorithms. In Proceedings of the USENIX Annual Technical Conference, 1997.
[11]
D. Carra, R. L. Cigno, and E. Biersack. Graph based modeling of p2p streaming systems. In Proceedings of 6th International IFIP-TC6 Networking Conference on NETWORKING, May 2007.
[12]
D. Carra, R. L. Cigno, and E. Biersack. Stochastic graph processes for performance evaluation of content delivery applications in overlay networks. IEEE Transactions on Parallel and Distributed Systems, 19(2):247--261, 2008.
[13]
D. Carra and P. Michiardi. Memory partitioning in memcached: An experimental performance analysis. In Proceedings of IEEE International Conference on Communications (ICC), June 2014.
[14]
D. Carra, M. Steiner, and P. Michiardi. Adaptive load balancing in kad. In Proceedings of International Conference on Peer-to-Peer Computing (P2P), Sept. 2011.
[15]
R. L. Cigno, A. Russo, and D. Carra. On some fundamental properties of p2p push/pull protocols. In Proceedings of 2nd International Conference on Communications and Electronics (HUT-ICCE), June 2008.
[16]
J. Evans. A scalable concurrent malloc(3) implementation for freebsd. Unpublished, April 2006.
[17]
B. Fan and D. Andersen. MemC3: Compact and concurrent memcache with dumber caching and smarter hashing. In Proceedings of the 10th USENIX Symposium on Networked Systems Design and Implementation (NSDI), 2013.
[18]
N. Gunther, S. Subramanyam, and S. Parvu. Hidden scalability gotchas in memcached and friends. In VELOCITY Web Performance and Operations Conference, 2010.
[19]
J. Jung, E. Sit, H. Balakrishnan, and R. Morris. DNS performance and the effectiveness of caching. In ACM SIGCOMM Workshop on Internet Measurement (IMW), 2001.
[20]
A. Khakpour and R. J. Peters. Optimizing multi-hit caching for long tail content. US Patent n.US20130179529 A1, Jul 2013.
[21]
R. L. Mattson, J. Gecsei, D. R. Slutz, and I. L. Traiger. Evaluation techniques for storage hierarchies. IBM Syst. J., 9(2):78--117, June 1970.
[22]
P. Michiardi, D. Carra, F. Albanese, and A. Bestavros. Peer-assisted content distribution on a budget. Computer Networks, 55(7):2038--2048, 2012.
[23]
R. Nishtala, H. Fugal, S. Grimm, M. Kwiatkowski, H. Lee, H. Li, R. McElroy, M. Paleczny, D. Peek, P. Saab, D. Stafford, T. Tung, and V. Venkataramani. Scaling memcache at facebook. In Proceedings of the 10th USENIX Symposium on Networked Systems Design and Implementation (NSDI), 2013.
[24]
M. Qureshi and Y. Patt. Utility-based cache partitioning: A low-overhead, high-performance, runtime mechanism to partition shared caches. In Proceedings of the 39th Annual IEEE/ACM International Symposium on Microarchitecture, 2006.
[25]
S. Saroiu, K. P. Gummadi, R. J. Dunn, S. D. Gribble, and M. Levy. An analysis of Internet content delivery systems. SIGOPS Operating System Review, 36(SI):315--327, 2002.
[26]
D. Starobinski and D. Tse. Probabilistic methods for web caching. Performance Evaluation, 46(2-3):125--137, 2001.
[27]
G. Suh, L. Rudolph, and S. Devadas. Dynamic partitioning of shared cache memory. The Journal of Supercomputing, 28(1):7--26, April 2004.
[28]
D. Thiebaut, H. Stone, and J. Wolf. Improving disk cache hit-ratios through cache partitioning. IEEE Transactions on Computers, 41(6):665--676, jun 1992.
[29]
A. Wiggins and J. Langston. Enhancing the Scalability of Memcached. In Intel document, unpublished, http://software.intel.com/en-us/articles/enhancing-the-scalability-of-memcached, 2012.

Cited By

View all
  • (2023)An Implementation of Memcached Data Partitioning and Sharding Optimization using Apache Benchmark2023 2nd International Conference on Automation, Computing and Renewable Systems (ICACRS)10.1109/ICACRS58579.2023.10404608(1751-1756)Online publication date: 11-Dec-2023
  • (2016)Cache Replacement Based on Distance to Origin ServersIEEE Transactions on Network and Service Management10.1109/TNSM.2016.260024013:4(848-859)Online publication date: 1-Dec-2016

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Other conferences
IMDM '15: Proceedings of the 3rd VLDB Workshop on In-Memory Data Mangement and Analytics
August 2015
63 pages
ISBN:9781450337137
DOI:10.1145/2803140
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]

In-Cooperation

  • SAMSUNG: SAMSUNG
  • VLDB Endowment: Very Large Database Endowment
  • Microsoft: Microsoft

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 31 August 2015

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. In-memory storage
  2. Web cache

Qualifiers

  • Research-article
  • Research
  • Refereed limited

Conference

IMDM '15

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)4
  • Downloads (Last 6 weeks)0
Reflects downloads up to 07 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2023)An Implementation of Memcached Data Partitioning and Sharding Optimization using Apache Benchmark2023 2nd International Conference on Automation, Computing and Renewable Systems (ICACRS)10.1109/ICACRS58579.2023.10404608(1751-1756)Online publication date: 11-Dec-2023
  • (2016)Cache Replacement Based on Distance to Origin ServersIEEE Transactions on Network and Service Management10.1109/TNSM.2016.260024013:4(848-859)Online publication date: 1-Dec-2016

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media