Online Paging with Heterogeneous Cache Slots

Marek Chrobak, Samuel Haney, Mehraneh Liaee, Debmalya Panigrahi, Rajmohan Rajaraman, Ravi Sundaram, Neal E. Young

Abstract

This paper introduces and analyzes Slot-Heterogeneous Paging, a generalization of the classic online paging problem. In this model, each page request specifies a subset of cache slots where the page must be placed. The study reveals a sharp contrast in complexity: while arbitrary slot subsets result in an exponential blow-up of the competitive ratio, hierarchical (laminar) structures—which reflect real-world partitioned caches—enable efficient, polynomial-time online algorithms. Through competitive analysis and novel primal-dual techniques, the authors establish tight bounds for various slot family configurations.

Introduction

In traditional theoretical models of caching, such as the standard Paging or $k$-Server problems, all $k$ cache slots are treated as identical and interchangeable. However, modern computing environments often feature heterogeneous slot constraints. For instance, Content Delivery Networks (CDNs) utilize multi-level distributed caches, and multi-core processors may dynamically partition cache regions for specific processes.

To bridge this gap, the authors propose the Slot-Heterogeneous Paging model. Here, a request is defined as a pair $(p, S)$, requiring page $p$ to be stored in some slot within the subset $S \subseteq \{1, \dots, k\}$. The complexity of the problem is determined by the family $\mathcal{S}$ of allowed slot sets. The primary objective is to determine the competitive ratio—the performance gap between an online algorithm and an optimal offline adversary—as a function of the cache size $k$ and the structure of $\mathcal{S}$.

Methodology

The authors utilize competitive analysis to evaluate their proposed algorithms. Key techniques include:

  • Adversary Arguments: Used to establish lower bounds by constructing request sequences that force online algorithms into frequent faults while allowing an offline optimal to remain efficient.
  • Problem Reductions: For hierarchical (laminar) caches, the authors simplify the problem by relaxing the single-page-per-slot constraint. They solve a related "Page-Laminar Paging" problem and then round the solution back to the original constraints.
  • Primal-Dual Linear Programming: To address the weighted version of the problem, the authors developed a novel primal-dual algorithm. This approach uses "residual costs" to manage evictions, overcoming the limitations of standard LP relaxations that fail to capture specific slot constraints.

Theoretical Insights

The research yields several critical insights into the nature of heterogeneous caching:

  1. The Cost of Flexibility: Allowing requests to target arbitrary subsets of slots makes the problem exponentially harder. The competitive ratio can escalate to $\Omega(2^k/\sqrt{k})$, far exceeding the $k$ ratio of standard paging.
  2. Complexity and Set Families: The difficulty is intrinsically linked to the size and structure of the set family $\mathcal{S}$. The deterministic ratio is shown to be bounded by $O(k^2|\mathcal{S}|)$.
  3. The Advantage of Hierarchies: Real-world caches typically follow hierarchical patterns (e.g., L1/L2/L3 caches). When $\mathcal{S}$ is "laminar" (nested or disjoint), the competitive ratio remains manageable at $O(hk)$, where $h$ is the hierarchy height.
  4. Offline Hardness: Unlike standard paging, where Belady’s algorithm provides an easy offline solution, even simple heterogeneous variants like "All-or-One Paging" are NP-hard in the offline setting.

Key Results

The paper provides a comprehensive set of bounds for different paging scenarios, summarized in the table below.

Summary of competitive ratios for various paging models.

Significant findings include:

  • Slot-Laminar Paging: Achieves a deterministic ratio of $O(hk)$ and a randomized ratio of $O(h^2 \log k)$.
  • Weighted All-or-One Paging: The authors present an $O(k)$-competitive deterministic algorithm, matching the optimal ratio for standard weighted paging within a constant factor.
  • One-of-$m$ Paging: Demonstrates the extreme difficulty of non-hierarchical constraints, with lower bounds reaching $\Omega(2^k/\sqrt{k})$.

Conclusion and Future Work

While this work establishes a robust theoretical foundation for heterogeneous paging, it focuses primarily on asymptotic bounds. Future research could explore:

  1. Tightening Bounds: Reducing the multiplicative dependence on hierarchy height $h$ in laminar cases.
  2. Randomized Complexity: Determining if randomized competitive ratios for arbitrary families can be reduced to poly-logarithmic functions of $k$ and $|\mathcal{S}|$.
  3. Empirical Validation: Testing these algorithms against real-world cache traces to evaluate practical overhead and constants hidden by Big-O notation.
  4. General Metric Spaces: Extending the Heterogeneous $k$-Server problem to arbitrary metric spaces.

Summary updated

BibTeX
@inproceedings{chrobak2023online,
  author = {Marek Chrobak and Samuel Haney and Mehraneh Liaee and Debmalya Panigrahi and Rajmohan Rajaraman and Ravi Sundaram and Neal E. Young},
  title = {{Online Paging with Heterogeneous Cache Slots}},
  booktitle = {STACS},
  year = {2023},
  doi = {10.4230/lipics.stacs.2023.23},
}
Figure