Skip to main content
QUICK REVIEW

[Paper Review] Lower Bounds for Caching with Delayed Hits

Peter Manohar, Jalani Williams|arXiv (Cornell University)|May 30, 2020
Optimization and Search ProblemsComputer Science6 references5 citations
TL;DR

This paper establishes fundamental theoretical limits for caching with delayed hits—a model where requests can arrive while data is still being fetched, leading to partial hits. It proves a competitive ratio lower bound of Ω(kZ) for deterministic online algorithms and shows that standard delayed hits latency is not antimonotonic; it further proposes a modified model that restores antimonotonicity by always forwarding requests to the backing store, even on hits.

ABSTRACT

Caches are a fundamental component of latency-sensitive computer systems. Recent work of [ASWB20] has initiated the study of delayed hits: a phenomenon in caches that occurs when the latency between the cache and backing store is much larger than the time between new requests. We present two results for the delayed hits caching model. (1) Competitive ratio lower bound. We prove that the competitive ratio of the algorithm in [ASWB20], and more generally of any deterministic online algorithm for delayed hits, is at least Omega(kZ), where k is the cache size and Z is the delay parameter. (2) Antimonotonicity of the delayed hits latency. Antimonotonicity is a naturally desirable property of cache latency: having a cache hit instead of a cache miss should result in lower overall latency. We prove that the latency of the delayed hits model is not antimonotone by exhibiting a scenario where having a cache hit instead of a miss results in an increase in overall latency. We additionally present a modification of the delayed hits model that makes the latency antimonotone.

Motivation & Objective

  • To understand the theoretical performance limits of online caching algorithms in the delayed hits model, where requests can arrive during data fetch.
  • To analyze whether the latency of the delayed hits model satisfies the intuitive property of antimonotonicity—where cache hits should not increase latency.
  • To provide a formal theoretical foundation for delayed hits, a phenomenon that significantly impacts real-world system latency but lacks prior theoretical analysis.
  • To propose a modified delayed hits model that restores antimonotonicity, ensuring that cache hits do not worsen overall latency.

Proposed method

  • Construct a deterministic request sequence where any online algorithm incurs kZ misses, while the optimal offline algorithm incurs only one miss, to prove the Ω(kZ) competitive ratio lower bound.
  • Define the latency function ℓσ(b₁,…,bₜ) for the delayed hits model, where bᵢ = 1 indicates a delayed hit, and show that this function is not antimonotone.
  • Introduce a modified model where every request is sent to the backing store regardless of cache state, ensuring that any item requested in the last Z time units is available for immediate serving.
  • Define a new latency function ℓ′σ(b₁,…,bₜ) that depends only on request times and item identities, not on hit/miss status, to eliminate dependencies that break antimonotonicity.
  • Prove that the modified latency function ℓ′σ is antimonotone by showing that increasing the number of hits (i.e., b′ ≥ b) cannot increase total latency.
  • Construct a simulation of any algorithm in the antimonotone model using a larger cache in the original model, showing that performance in the antimonotone model is no worse than in the original.

Experimental results

Research questions

  • RQ1What is the best possible competitive ratio achievable by any deterministic online algorithm in the delayed hits caching model?
  • RQ2Does the latency in the delayed hits model satisfy the intuitive property of antimonotonicity—i.e., do cache hits always reduce or maintain latency?
  • RQ3Can a modified version of the delayed hits model restore antimonotonicity while preserving the practical behavior of delayed hits?
  • RQ4How does the performance of algorithms in the antimonotone delayed hits model relate to that in the original delayed hits model?
  • RQ5What is the minimal cache size required to simulate an algorithm designed for the antimonotone delayed hits model within the original delayed hits model?

Key findings

  • The competitive ratio of any deterministic online algorithm for the delayed hits problem is at least Ω(kZ), where k is the cache size and Z is the fetch delay.
  • The latency function in the standard delayed hits model is not antimonotone, as demonstrated by a scenario where a cache hit can lead to higher overall latency than a miss.
  • The paper constructs a counterexample showing that a request sequence can result in higher total latency when a hit occurs compared to when it misses, due to dependencies on in-flight requests.
  • A modified delayed hits model is proposed where every request is sent to the backing store regardless of cache state, ensuring that the latency function becomes antimonotone.
  • The modified model's latency function ℓ′σ is proven to be antimonotone, as increasing the number of hits (b′ ≥ b) cannot increase total latency.
  • Any algorithm in the antimonotone delayed hits model can be simulated in the original model using a cache of size at most k + Z, showing that the antimonotone model is no more powerful in terms of performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.