skip to main content
10.1145/3555776.3590826acmconferencesArticle/Chapter ViewAbstractPublication PagessacConference Proceedingsconference-collections
research-article

PKache: A Generic Framework for Data Plane Caching

Published: 07 June 2023 Publication History

Abstract

In-network caching promises to improve the performance of networked and edge applications as it shortens the paths to data. This is by storing so-called hot items in the network switches on-route between clients accessing the data and the storage servers. Since the data flows through those switches in any case, it is natural to cache hot items there.
Most software-managed caches treat the cache as a fully associative region. Alas, a fully associative design seems to be at odds with programmable switches' goal of handling packets in a short bounded amount of time, as well as their restricted programming model. In this work, we present PKache, a generic framework that employs limited associativity design and the domain-specific P4 language for data plane caching. We demonstrate PKache's utility by realizing multiple popular cache management schemes.

References

[1]
Dolev Adas, Gil Einziger, and Roy Friedman. 2022. Limited Associativity Makes Concurrent Software Caches a Breeze. In ICDCN.
[2]
Aaron Archer, Kevin Aydin, Mohammad Hossein Bateni, Vahab Mirrokni, Aaron Schild, Ray Yang, and Richard Zhuang. 2019. Cache-Aware Load Balancing of Data Center Applications. VLDB, 12, 6, (February 2019), 709--723.
[3]
[n. d.] Barefoot Tofino. https://barefootnetworks.com/products/brief-tofino/.
[4]
Ran Ben Basat, Sivaramakrishnan Ramanathan, Yuliang Li, Gianni Antichi, Minlan Yu, and Michael Mitzenmacher. 2020. PINT: Probabilistic In-band Network Telemetry. In ACM SIGCOMM.
[5]
L. A. Belady. 1966. A Atudy of Replacement Algorithms for a Virtual-Storage Computer. IBM Systems Journal, 5, 2, 78--101.
[6]
Aaron Blankstein, Siddhartha Sen, and Michael J. Freedman. 2017. Hyperbolic Caching: Flexible Caching for Web Applications. In USENIX ATC. (July 2017).
[7]
Pat Bosshart, Dan Daly, Glen Gibb, Martin Izzard, Nick McKeown, Jennifer Rexford, Cole Schlesinger, Dan Talayco, Amin Vahdat, George Varghese, et al. 2014. P4: programming protocol-independent packet processors. ACM SIGCOMM Computer Communication Review, 44, 3, 87--95.
[8]
Gregory V. Chockler, Danny Dolev, Roy Friedman, and Roman Vitenberg. 2000. Implementing a Caching Service for Distributed CORBA Objects. In IFIP/ACM Middleware (Lecture Notes in Computer Science). Joseph S. Sventek and Geoff Coulson, editors. Volume 1795, 1--23.
[9]
Graham Cormode and Shan Muthukrishnan. 2005. An Improved Data Stream Summary: the Count-Min Sketch and Its Applications. J. of Algorithms, 55, 1.
[10]
Dgraph. Ristretto: A High Performance Memory-Bound Go Cache. https://github.com/dgraph-io/ristretto, (2020).
[11]
Gil Einziger, Ohad Eytan, Roy Friedman, and Ben Manes. 2018. Adaptive Software Cache Management. In Middleware, 94--106.
[12]
Gil Einziger, Roy Friedman, and Ben Manes. 2017. TinyLFU: A Highly Efficient Cache Admission Policy. ACM Transactions on Storage (ToS), 13, 4, 1--31.
[13]
Ohad Eytan, Danny Harnik, Effi Ofer, Roy Friedman, and Ronen I. Kat. 2020. It's Time to Revisit LRU vs. FIFO. In USENIX HotStorage.
[14]
Charles Garrod, Amit Manjhi, Anastasia Ailamaki, Bruce Maggs, Todd Mowry, Christopher Olston, and Anthony Tomasic. 2018. Scalable Query Result Caching for Web Applications. VLDB, (August 2018), 550--561.
[15]
Felix Gessert, Michael Schaarschmidt, Wolfram Wingerath, Erik Witt, Eiko Yoneki, and Norbert Ritter. 2017. Quaestor: Query Web Caching for Database-as-a-Service Providers. VLDB, 10, 12, (August 2017), 1670--1681.
[16]
Shahram Ghandeharizadeh and Hieu Nguyen. 2019. Design, Implementation, and Evaluation of Write-Back Policy with Cache Augmented Data Stores. VLDB, 12, 8, (April 2019), 836--849.
[17]
John L. Hennessy and David A. Patterson. 2012. Computer Architecture - A Quantitative Approach (5. ed.) Morgan Kaufmann.
[18]
2019. Jericho and Trident. https://www.broadcom.com/blog/trident4-and-jericho2-offer-programmability-at-scale. (2019).
[19]
Song Jiang and Xiaodong Zhang. 2002. LIRS: an Efficient Low Inter-Reference Recency Set Replacement Policy to Improve Buffer Cache Performance. ACM SIGMETRICS Performance Evaluation Review, 30, 1, 31--42.
[20]
Xin Jin, Xiaozhou Li, Haoyu Zhang, Robert Soulé, Jeongkeun Lee, Nate Foster, Changhoon Kim, and Ion Stoica. 2017. NetCache: Balancing Key-Value Stores with Fast In-Network Caching. In ACM SOSP.
[21]
[n. d.] Jinja Documentation. https://jinja.palletsprojects.com/en/2.11.x/.
[22]
Theodore Johnson and Dennis Shasha. 1994. 2Q: A Low Overhead High Performance Buffer Management Replacement Algorithm. In VLDB, 439--450.
[23]
G. Karakostas and D. N. Serpanos. 2002. Exploitation of Different Types of Locality for Web Caches. In ISCC.
[24]
Tatsuya Kawano. A High Performance Concurrent Caching Library for Rust. https://github.com/moka-rs/moka, (2021).
[25]
Ben Manes. 2012. Caffeine: A High performance caching library for Java 8. https://github.com/ben-manes/caffeine.
[26]
N. McKeown. 2015. PISA: Protocol Independent Switch Architecture. In P4 Workshop. (2015).
[27]
Nimrod Megiddo and Dharmendra S Modha. 2003. ARC: A Self-Tuning, Low Overhead Replacement Cache. In Fast number 2003. Volume 3, 115--130.
[28]
Sejin Park and Chanik Park. 2017. FRD: A Filtering Based Buffer Cache Algorithm that Considers both Frequency and Reuse Distance. In IEEE MSST.
[29]
Kai Ren, Qing Zheng, Joy Arulraj, and Garth Gibson. 2017. SlimDB: A Space-Efficient Key-Value Storage Engine for Semi-Sorted Data. VLDB, 10, 13, (September 2017), 2037--2048.
[30]
[n. d.] Spectrum. https://www.mellanox.com/related-docs/prod%5C_silicon/PB%5C_Spectrum-3.pdf/.
[31]
[n. d.] The P4 Language Consortium. The P4 Language Specification, Version 1.2.0 - Release Candidate, October 2020. https://p4.org/p4-spec/docs/P4-16-v1.2.0.html/.
[32]
Guido Urdaneta, Guillaume Pierre, and Maarten van Steen. 2009. Wikipedia Workload Analysis for Decentralized Hosting. Elsevier Computer Networks, 53, 11, (July 2009), 1830--1845.
[33]
[n. d.] Using Redis as an LRU cache. https://redis.io/topics/lru-cache/.
[34]
Kefei Wang, Jian Liu, and Feng Chen. 2020. Put an Elephant Into a Fridge: Optimizing Cache Efficiency for In-Memory Key-Value Stores. VLDB, 13, 9, (May 2020), 1540--1554.
[35]
Xiangyao Yu, Yu Xia, Andrew Pavlo, Daniel Sanchez, Larry Rudolph, and Srinivas Devadas. 2018. Sundial: Harmonizing Concurrency Control and Caching in a Distributed OLTP Database Management System. VLDB, 11, 10, (June 2018).

Cited By

View all

Index Terms

  1. PKache: A Generic Framework for Data Plane Caching

      Recommendations

      Comments

      Information & Contributors

      Information

      Published In

      cover image ACM Conferences
      SAC '23: Proceedings of the 38th ACM/SIGAPP Symposium on Applied Computing
      March 2023
      1932 pages
      ISBN:9781450395175
      DOI:10.1145/3555776
      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].

      Sponsors

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      Published: 07 June 2023

      Permissions

      Request permissions for this article.

      Check for updates

      Qualifiers

      • Research-article

      Conference

      SAC '23
      Sponsor:

      Acceptance Rates

      Overall Acceptance Rate 1,650 of 6,669 submissions, 25%

      Upcoming Conference

      SAC '25
      The 40th ACM/SIGAPP Symposium on Applied Computing
      March 31 - April 4, 2025
      Catania , Italy

      Contributors

      Other Metrics

      Bibliometrics & Citations

      Bibliometrics

      Article Metrics

      • 0
        Total Citations
      • 67
        Total Downloads
      • Downloads (Last 12 months)22
      • Downloads (Last 6 weeks)1
      Reflects downloads up to 16 Feb 2025

      Other Metrics

      Citations

      Cited By

      View all

      View Options

      Login options

      View options

      PDF

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader

      Figures

      Tables

      Media

      Share

      Share

      Share this Publication link

      Share on social media