FrozenHot Cache: Rethinking Cache Management for Modern Hardware

Ziyue Qiu, Juncheng Yang, Juncheng Zhang, Cheng Li, Xiaosong Ma, Qi Chen, Mao Yang, Yinlong Xu

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

11 Citations (Scopus)

Abstract

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 shrinking 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 requires 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 FrozenHot, 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 production 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.

Original languageEnglish
Title of host publicationProceedings Of The Eighteenth European Conference On Computer Systems, Eurosys 2023
PublisherAssociation for Computing Machinery, Inc
Pages557-573
Number of pages17
ISBN (Electronic)9781450394871
DOIs
Publication statusPublished - 8 May 2023
Event18th European Conference on Computer Systems, EuroSys 2023 - Rome, Italy
Duration: 8 May 202312 May 2023

Publication series

NameProceedings of the 18th European Conference on Computer Systems, EuroSys 2023

Conference

Conference18th European Conference on Computer Systems, EuroSys 2023
Country/TerritoryItaly
CityRome
Period8/05/2312/05/23

Keywords

  • Caching
  • Concurrency Algorithm
  • Performance Scalability
  • Storage

Fingerprint

Dive into the research topics of 'FrozenHot Cache: Rethinking Cache Management for Modern Hardware'. Together they form a unique fingerprint.

Cite this