Dependency-Aware Online Caching

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Dallot, Julien, Fesharaki, Amirmehdi Jafari, Pacut, Maciej, Schmid, Stefan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910311435468800
author Dallot, Julien
Fesharaki, Amirmehdi Jafari
Pacut, Maciej
Schmid, Stefan
author_facet Dallot, Julien
Fesharaki, Amirmehdi Jafari
Pacut, Maciej
Schmid, Stefan
contents We consider a variant of the online caching problem where the items exhibit dependencies among each other: an item can reside in the cache only if all its dependent items are also in the cache. The dependency relations can form any directed acyclic graph. These requirements arise e.g., in systems such as CacheFlow (SOSR 2016) that cache forwarding rules for packet classification in IP-based communication networks. First, we present an optimal randomized online caching algorithm which accounts for dependencies among the items. Our randomized algorithm is $O( \log k)$-competitive, where $k$ is the size of the cache, meaning that our algorithm never incurs the cost of $O(\log k)$ times higher than even an optimal algorithm that knows the future input sequence. Second, we consider the bypassing model, where requests can be served at a fixed price without fetching the item and its dependencies into the cache -- a variant of caching with dependencies introduced by Bienkowski et al. at SPAA 2017. For this setting, we give an $O( \sqrt{k \cdot \log k})$-competitive algorithm, which significantly improves the best known competitiveness. We conduct a small case study, to find out that our algorithm incurs on average 2x lower cost.
format Preprint
id arxiv_https___arxiv_org_abs_2401_17146
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Dependency-Aware Online Caching
Dallot, Julien
Fesharaki, Amirmehdi Jafari
Pacut, Maciej
Schmid, Stefan
Data Structures and Algorithms
We consider a variant of the online caching problem where the items exhibit dependencies among each other: an item can reside in the cache only if all its dependent items are also in the cache. The dependency relations can form any directed acyclic graph. These requirements arise e.g., in systems such as CacheFlow (SOSR 2016) that cache forwarding rules for packet classification in IP-based communication networks. First, we present an optimal randomized online caching algorithm which accounts for dependencies among the items. Our randomized algorithm is $O( \log k)$-competitive, where $k$ is the size of the cache, meaning that our algorithm never incurs the cost of $O(\log k)$ times higher than even an optimal algorithm that knows the future input sequence. Second, we consider the bypassing model, where requests can be served at a fixed price without fetching the item and its dependencies into the cache -- a variant of caching with dependencies introduced by Bienkowski et al. at SPAA 2017. For this setting, we give an $O( \sqrt{k \cdot \log k})$-competitive algorithm, which significantly improves the best known competitiveness. We conduct a small case study, to find out that our algorithm incurs on average 2x lower cost.
title Dependency-Aware Online Caching
topic Data Structures and Algorithms
url https://arxiv.org/abs/2401.17146