PARALLEL DATA LAB 

PDL Abstract

FrozenHot Cache: Rethinking Cache Management for Modern Hardware

EuroSys 2023, Rome, Italy, May 8th-12th, 2023.

Ziyue Qiu†§‡, Juncheng Yang‡, Juncheng Zhang†, Cheng Li†^, Xiaosong Ma*, Qi Chen§, Mao Yang§, Yinlong Xu†^

† University of Science and Technology of China
§ Microsoft Research
^ Anhui Province Key Laboratory of High Performance Computing
‡ Carnegie Mellon University
* Qatar Computing Research Institute, HBKU

http://www.pdl.cmu.edu/

Caching is crucial for accelerating data access, employed as a ubiquitous design in modern systems at many parts of computer systems. With increasing core count, and shrink- ing latency gap between cache and modern storage devices, hit-path scalability becomes increasingly critical. However, existing production in-memory caches often use list-based management with promotion on each cache hit, which re- quires extensive locking and poses a significant overhead for scaling beyond a few cores. Moreover, existing techniques for improving scalability either (1) only focus on the indexing structure and do not improve cache management scalability, or (2) sacrifice efficiency or miss-path scalability.

Inspired by highly skewed data popularity and short-term hotspot stability in cache workloads, we propose Frozen- Hot, a generic approach to improve the scalability of list-based caches. FrozenHot partitions the cache space into two parts: a frozen cache and a dynamic cache. The frozen cache serves requests for hot objects with minimal latency by eliminating promotion and locking, while the latter leverages the existing cache design to achieve workload adaptivity. We built FrozenHot as a library that can be easily integrated into existing systems. We demonstrate its performance by enabling FrozenHot in two production systems: HHVM and RocksDB using under 100 lines of code. Evaluated using pro- duction traces from MSR and Twitter, FrozenHot improves the throughput of three baseline cache algorithms by up to 551%. Compared to stock RocksDB, FrozenHot-enhanced RocksDB shows a higher throughput on all YCSB workloads with up to 90% increase, as well as reduced tail latency.

FULL PAPER: pdf
SLIDES: pdf
VIDEO: youtube