AdCache: Adaptive Cache Management with Admission Control for LSM-tree Key-Value Stores

Jiarui Ye, Junfeng Liu, Siqiang LuoEDBT 2026

Abstract

AdCache is a reinforcement learning-based caching system designed for Log-Structured Merge (LSM) tree storage engines. By dynamically balancing memory between block-based and result-based caching and employing intelligent admission control, AdCache addresses the inherent conflicts between point lookups and range scans. Evaluation results demonstrate that AdCache achieves up to 14% higher hit rates and a 25% reduction in disk reads compared to traditional static configurations.

Introduction

Modern data-intensive applications rely on LSM-tree key-value stores, such as RocksDB, for their high write performance. However, these systems often struggle with read efficiency due to two conflicting access patterns: point lookups and range scans. Traditional caching strategies typically force a choice between block-based caching, which is efficient for lookups but sensitive to frequent file reorganizations (compactions), and result-based caching, which is resilient to compactions but prone to "cache pollution" from infrequent, large-scale scans. Because real-world workloads are dynamic, static memory allocation between these two types inevitably leads to sub-optimal performance.

Methods

AdCache treats cache management as a continuous optimization problem solved by a Reinforcement Learning (RL) framework. The system maintains a hybrid architecture with a dynamic boundary between a block cache and a range cache.

AdCache System Architecture

As shown in the architecture above, an Actor-Critic RL controller runs in the background, observing system statistics such as hit/miss rates, scan lengths, and compaction frequency. It outputs two critical decisions: the optimal memory ratio between the two cache types and admission thresholds for new data.

To ensure a unified optimization goal, the authors developed an I/O-based reward model that estimates the physical I/O saved by every cache hit, allowing the RL agent to make apples-to-apples comparisons between block and result hits. Furthermore, AdCache implements intelligent admission control: point lookups are filtered by frequency using a Count-Min Sketch, while range scans are subject to "partial admission" to prevent a single massive scan from displacing useful data.

Key Results

AdCache was evaluated against standard RocksDB configurations using both static and dynamic workloads. The system demonstrated significant improvements across several key metrics:

  • Higher Efficiency: AdCache achieved up to a 14% higher cache hit rate compared to the default RocksDB block cache.
  • Reduced Disk Strain: It reduced SST (disk) reads by up to 25%, which is critical for extending the lifespan of SSDs and reducing overall latency.
  • Throughput Gains: In dynamic workloads that shift between scan-heavy and lookup-heavy patterns, AdCache improved average throughput by 12%.
Hit Rate Performance Comparison

The performance comparison highlights how AdCache consistently maintains a higher hit rate across the spectrum of read-heavy to write-heavy workloads, effectively acting as the upper performance envelope for the various static caching strategies.

Conclusion

AdCache demonstrates that reinforcement learning can effectively manage the complexities of LSM-tree caching with minimal overhead. The RL model's memory footprint is only about 2.2 MB, and its asynchronous operation ensures that query latency is not impacted by the optimization process. While future work may explore multi-tier storage applications, AdCache currently provides a robust, self-tuning solution for modern high-performance key-value stores.

Summary updated

BibTeX
@inproceedings{ye2026adcache,
  author = {Jiarui Ye and Junfeng Liu and Siqiang Luo},
  title = {{AdCache: Adaptive Cache Management with Admission Control for LSM-tree Key-Value Stores}},
  booktitle = {EDBT},
  year = {2026},
  url = {https://openreview.net/forum?id=M0hfQ0N5cE},
}
Figure