Lune

SOSP2021顶会

Kangaroo: Caching Billions of Tiny Objects on Flash

Sara McAllister, Benjamin Berg, Julian Tutuncu-Macias, Juncheng Yang, Sathya Gunasekar, Jimmy Lu, Daniel S. Berger, Nathan Beckmann, Gregory R. Ganger

摘要

Many social-media and IoT services have very large working sets consisting of billions of tiny (≈100 B) objects. Large, flash-based caches are important to serving these working sets at acceptable monetary cost. However, caching tiny objects on flash is challenging for two reasons: (i) SSDs can read/write data only in multi-KB "pages" that are much larger than a single object, stressing the limited number of times flash can be written; and (ii) very few bits per cached object can be kept in DRAM without losing flash's cost advantage. Unfortunately, existing flash-cache designs fall short of addressing these challenges: write-optimized designs require too much DRAM, and DRAM-optimized designs require too many flash writes.

We present Kangaroo, a new flash-cache design that optimizes both DRAM usage and flash writes to maximize cache performance while minimizing cost. Kangaroo combines a large, set-associative cache with a small, log-structured cache. The set-associative cache requires minimal DRAM, while the log-structured cache minimizes Kangaroo's flash writes. Experiments using traces from Facebook and Twitter show that Kangaroo achieves DRAM usage close to the best prior DRAM-optimized design, flash writes close to the best prior write-optimized design, and miss ratios better than both. Kangaroo's design is Pareto-optimal across a range of allowed write rates, DRAM sizes, and flash sizes, reducing misses by 29% over the state of the art. These results are corroborated with a test deployment of Kangaroo in a production flash cache at Facebook.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 35 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • GL-Cache: Group-level learning for efficient and high-performance caching 引用了 Learning Relaxed Belady for Content Distribution Network Caching
  • GL-Cache: Group-level learning for efficient and high-performance caching 引用了 Segcache: a memory-efficient and scalable in-memory key-value cache for small objects
  • GL-Cache: Group-level learning for efficient and high-performance caching 引用了 The CacheLib Caching Engine: Design and Experiences at Scale
  • GL-Cache: Group-level learning for efficient and high-performance caching 引用了 A large scale analysis of hundreds of in-memory cache clusters at Twitter
  • Segcache: a memory-efficient and scalable in-memory key-value cache for small objects 引用了 Learning Relaxed Belady for Content Distribution Network Caching
  • FIFO queues are all you need for cache eviction 引用了 GL-Cache: Group-level learning for efficient and high-performance caching
  • FIFO queues are all you need for cache eviction 引用了 Segcache: a memory-efficient and scalable in-memory key-value cache for small objects
  • FIFO queues are all you need for cache eviction 引用了 The CacheLib Caching Engine: Design and Experiences at Scale
  • FIFO queues are all you need for cache eviction 引用了 A large scale analysis of hundreds of in-memory cache clusters at Twitter
  • The CacheLib Caching Engine: Design and Experiences at Scale 引用了 Learning Relaxed Belady for Content Distribution Network Caching
  • Twine: A Unified Cluster Management System for Shared Infrastructure 引用了 The CacheLib Caching Engine: Design and Experiences at Scale
  • TMO: transparent memory offloading in datacenters 引用了 The CacheLib Caching Engine: Design and Experiences at Scale
  • A large scale analysis of hundreds of in-memory cache clusters at Twitter 引用了 The CacheLib Caching Engine: Design and Experiences at Scale
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper35

  1. TMO: transparent memory offloading in datacentersJohannes Weiner, Niket Agarwal, Dan Schatzberg, Leon Yang 等ASPLOS 2022 · 103 次引用
  2. GL-Cache: Group-level learning for efficient and high-performance cachingJuncheng Yang, Ziming Mao, Yao Yue, K. V. RashmiFAST 2023 · 60 次引用
  3. FIFO queues are all you need for cache evictionJuncheng Yang, Yazhuo Zhang, Ziyue Qiu, Yao Yue 等SOSP 2023 · 54 次引用
  4. Designing Cloud Servers for Lower CarbonJaylen Wang, Daniel S. Berger, Fiodar Kazhamiaka, Celine Irvene 等ISCA 2024 · 49 次引用
  5. Strata: Hierarchical Context Caching for Long Context Language Model ServingZhiqiang Xie, Ziyi Xu, Mark Zhao, Yuwei An 等OSDI 2026 · 40 次引用

它引用的 Paper5

  1. A large scale analysis of hundreds of in-memory cache clusters at TwitterJuncheng Yang, Yao Yue, K. V. RashmiOSDI 2020 · 245 次引用
  2. Learning Relaxed Belady for Content Distribution Network CachingZhenyu Song, Daniel S. Berger, Kai Li, Wyatt LloydNSDI 2020 · 193 次引用
  3. The CacheLib Caching Engine: Design and Experiences at ScaleBenjamin Berg, Daniel S. Berger, Sara McAllister, Isaac Grosof 等OSDI 2020 · 145 次引用
  4. Twine: A Unified Cluster Management System for Shared InfrastructureChunqiang Tang, Kenny Yu, Kaushik Veeraraghavan, Jonathan Kaldor 等OSDI 2020 · 107 次引用
  5. Segcache: a memory-efficient and scalable in-memory key-value cache for small objectsJuncheng Yang, Yao Yue, Rashmi VinayakNSDI 2021 · 70 次引用

相关 Paper

  1. Nemo: A Low-Write-Amplification Cache for Tiny Objects on Log-Structured Flash DevicesXufeng Yang, Tingting Tan, Jingxin Hu, Congming Gao 等ASPLOS 2026
  2. Improving Performance of Flash Based Key-Value Stores Using Storage Class Memory as a Volatile Memory ExtensionHiwot Tadese Kassa, Jason Akers, Mrinmoy Ghosh, Zhichao Cao 等USENIX ATC 2021 · 46 次引用
  3. All-Flash Array Key-Value Cache for Large ObjectsJinhyung Koo, Jinwook Bae, Minjeong Yuk, Seonggyun Oh 等EuroSys 2023 · 9 次引用
  4. MIDAS: Minimizing Write Amplification in Log-Structured Systems through Adaptive Group Number and Size ConfigurationSeonggyun Oh, Jeeyun Kim, Soyoung Han, Jaeho Kim 等FAST 2024 · 16 次引用
  5. TSCache: An Efficient Flash-based Caching Scheme for Time-series Data WorkloadsJian Liu, Kefei Wang, Feng ChenVLDB 2021 · 12 次引用
黄昏的海面,两侧是细线勾勒的悬崖