NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Asymptotic Miss Ratio of LRU Caching with Consistent Hashing

Kaiyi Ji, Guocong Quan, Jian Tan

Introduction

In modern large-scale distributed systems, no single server can store the entirety of a massive dataset. To manage this, engineers deploy clusters of servers coordinated by consistent hashing. This technique distributes data items across a ring of partitions, ensuring that the addition or removal of nodes minimizes data reshuffling. While the behavior of a single cache using the Least-Recently Used (LRU) policy is well-understood, predicting the aggregate performance of a distributed cluster has historically been a significant mathematical challenge.

A recent study from researchers at The Ohio State University, "Asymptotic Miss Ratio of LRU Caching with Consistent Hashing," provides a rigorous solution. The authors demonstrate that a complex cluster of LRU servers effectively behaves like a single, massive "virtual" cache, offering a powerful abstraction for system design.

The Distributed Caching Challenge

The primary difficulty in analyzing distributed caches lies in the randomness of the hash function. In a consistent hashing scheme, data item requests are mapped to a hash ring, where they are assigned to the nearest server in a clockwise direction.

Consistent hashing mechanism: Data requests are mapped via a hash function H(.) to a ring containing server nodes and partitions.

Because the hash function is essentially random, the workload and resulting miss ratio—the percentage of requests that must be fetched from a slow back-end—on any individual server are random variables. Previous research often relied on simplified assumptions or isolated single-server models, failing to account for the interplay between consistent hashing and LRU dynamics in a heterogeneous cluster.

Methodology: Bridging the Gap

The researchers employed a combination of stochastic modeling and asymptotic analysis to bridge this gap:

  • Workload Modeling: They utilized the Independent Reference Model (IRM) with a Zipf distribution, which accurately reflects the "long tail" popularity of web traffic.
  • Simple Uniform Hashing Assumption (SUHA): This assumes the hash function distributes keys uniformly across the ring's partitions.
  • Asymptotic Convergence: By conditioning on the random hash function, the authors proved that while individual server performance varies, the total cluster miss ratio converges to a deterministic value as the system scales.
  • Characteristic Time Approximation (CTA): They extended the CTA—a standard tool for single LRU caches—to the distributed environment, proving its continued validity in a cluster setting.

Key Results: The Virtual Pooling Principle

The study's most significant finding is the "one-to-one equivalence" principle. It posits that a distributed cluster of many small LRU caches performs identically to a single, large virtual LRU cache with a mathematically predictable size.

Empirical results showing the alignment between the cluster miss probability, the virtual LRU cache, and the characteristic time approximation.

As shown in the experimental results, the theoretical predictions (CTA) match empirical simulations of both the cluster and the equivalent virtual cache almost perfectly. This "virtual pooling" holds even in heterogeneous environments where servers have different cache capacities. This allows engineers to use simple single-server formulas to plan and optimize complex multi-server deployments.

Limitations and Future Outlook

While providing a robust framework, the authors identify several avenues for future research:

  • Temporal Locality: The IRM assumes independent requests, whereas real-world traffic often exhibits bursts of repeated requests for the same item.
  • Distribution Variety: The current derivation focuses on Zipf-like distributions; other popularity patterns may require further study.
  • Alternative Policies: Extending this mathematical "green light" to other eviction policies like LFU (Least Frequently Used) or ARC (Adaptive Replacement Cache) remains an open challenge.

For architects of distributed key-value stores like Memcached or Redis, this research provides the theoretical foundation to treat a cluster as a single, predictable resource.

Summary updated

BibTeX
@inproceedings{ji2018asymptotic,
  author = {Kaiyi Ji and Guocong Quan and Jian Tan},
  title = {{Asymptotic Miss Ratio of LRU Caching with Consistent Hashing}},
  booktitle = {INFOCOM},
  year = {2018},
  doi = {10.1109/infocom.2018.8485860},
}
Figure