Lune

SOSP2023顶会

FIFO queues are all you need for cache eviction

Juncheng Yang, Yazhuo Zhang, Ziyue Qiu, Yao Yue, Rashmi Vinayak

摘要

As a cache eviction algorithm, FIFO has a lot of attractive properties, such as simplicity, speed, scalability, and flashfriendliness. The most prominent criticism of FIFO is its low efficiency (high miss ratio).

In this work, we demonstrate a simple, scalable FIFObased algorithm with three static queues (S3-FIFO). Evaluated on 6594 cache traces from 14 datasets, we show that S3-FIFO has lower miss ratios than state-of-the-art algorithms across traces. Moreover, S3-FIFO's efficiency is robust -it has the lowest mean miss ratio on 10 of the 14 datasets. FIFO queues enable S3-FIFO to achieve good scalability with 6× higher throughput compared to optimized LRU at 16 threads.

Our insight is that most objects in skewed workloads will only be accessed once in a short window, so it is critical to evict them early (also called quick demotion). The key of S3-FIFO is a small FIFO queue that filters out most objects from entering the main cache, which provides a guaranteed demotion speed and high demotion precision.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Baleen: ML Admission & Prefetching for Flash Caches 引用了 OSCA: An Online-Model Based Cache Allocation Scheme in Cloud Block Storage Systems
  • Baleen: ML Admission & Prefetching for Flash Caches 引用了 The CacheLib Caching Engine: Design and Experiences at Scale
  • The Storage Hierarchy is Not a Hierarchy: Optimizing Caching on Modern Storage Devices with Orthus 引用了 A large scale analysis of hundreds of in-memory cache clusters at Twitter
  • SIEVE is Simpler than LRU: an Efficient Turn-Key Eviction Algorithm for Web Caches 引用了 The CacheLib Caching Engine: Design and Experiences at Scale
  • SIEVE is Simpler than LRU: an Efficient Turn-Key Eviction Algorithm for Web Caches 引用了 A large scale analysis of hundreds of in-memory cache clusters at Twitter
  • KVCache Cache in the Wild: Characterizing and Optimizing KVCache Cache at a Large Cloud Provider 引用了 SIEVE is Simpler than LRU: an Efficient Turn-Key Eviction Algorithm for Web Caches
  • KVCache Cache in the Wild: Characterizing and Optimizing KVCache Cache at a Large Cloud Provider 引用了 The CacheLib Caching Engine: Design and Experiences at Scale
  • KVCache Cache in the Wild: Characterizing and Optimizing KVCache Cache at a Large Cloud Provider 引用了 InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Management
  • KVCache Cache in the Wild: Characterizing and Optimizing KVCache Cache at a Large Cloud Provider 引用了 A large scale analysis of hundreds of in-memory cache clusters at Twitter
  • InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Management 引用了 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
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper32

  1. InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache ManagementWonbeom Lee, Jungi Lee, Junghwan Seo, Jaewoong SimOSDI 2024 · 248 次引用
  2. KVCache Cache in the Wild: Characterizing and Optimizing KVCache Cache at a Large Cloud ProviderJiahao Wang, Jinbo Han, Xingda Wei, Sijie Shen 等USENIX ATC 2025 · 70 次引用
  3. SIEVE is Simpler than LRU: an Efficient Turn-Key Eviction Algorithm for Web CachesYazhuo Zhang, Juncheng Yang, Yao Yue, Ymir Vigfusson 等NSDI 2024 · 63 次引用
  4. Baleen: ML Admission & Prefetching for Flash CachesDaniel Lin-Kit Wong, Hao Wu, Carson Molder, Sathya Gunasekar 等FAST 2024 · 26 次引用
  5. Bagpipe: Accelerating Deep Recommendation Model TrainingSaurabh Agarwal, Chengpo Yan, Ziyi Zhang, Shivaram VenkataramanSOSP 2023 · 17 次引用

它引用的 Paper23

  1. A large scale analysis of hundreds of in-memory cache clusters at TwitterJuncheng Yang, Yao Yue, K. V. RashmiOSDI 2020 · 245 次引用
  2. The CacheLib Caching Engine: Design and Experiences at ScaleBenjamin Berg, Daniel S. Berger, Sara McAllister, Isaac Grosof 等OSDI 2020 · 145 次引用
  3. LinnOS: Predictability on Unpredictable Flash Storage with a Light Neural NetworkMingzhe Hao, Levent Toksoz, Nanqinqin Li, Edward Edberg Halim 等OSDI 2020 · 97 次引用
  4. OSCA: An Online-Model Based Cache Allocation Scheme in Cloud Block Storage SystemsYu Zhang, Ping Huang, Ke Zhou, Hua Wang 等USENIX ATC 2020 · 74 次引用
  5. The Storage Hierarchy is Not a Hierarchy: Optimizing Caching on Modern Storage Devices with OrthusKan Wu, Zhihan Guo, Guanzhou Hu, Kaiwei Tu 等FAST 2021 · 73 次引用

相关 Paper

  1. Learning-Augmented Heuristics: Simple Yet Smart, Robust and Interpretable Cache EvictionHaocheng Xia, William Nixon, Bintang Dwi Marthen, Pranav Bhandari 等OSDI 2026 · 1 次引用
  2. Demystifying and Improving Lazy Promotion in Cache EvictionQinghan Chen, Muhammad Haekal Muhyidin Al-Araby, Ziyue Qiu, Zhuofan Chen 等VLDB 2026
  3. Merlin: An Efficient Adaptive Cache Eviction Algorithm via Fine-Grained CharacterizationLiujia Li, Jinhao Guo, Yi Fan, Jianyu Wu 等OSDI 2026
  4. FrozenHot Cache: Rethinking Cache Management for Modern HardwareZiyue Qiu, Juncheng Yang, Juncheng Zhang, Cheng Li 等EuroSys 2023 · 33 次引用
  5. Segcache: a memory-efficient and scalable in-memory key-value cache for small objectsJuncheng Yang, Yao Yue, Rashmi VinayakNSDI 2021 · 70 次引用
黄昏的海面,两侧是细线勾勒的悬崖