Spatial Locality and Granularity Change in Caching

05/28/2022
by   Nathan Beckmann, et al.
0

Caches exploit temporal and spatial locality to allow a small memory to provide fast access to data stored in large, slow memory. The temporal aspect of locality is extremely well studied and understood, but the spatial aspect much less so. We seek to gain an increased understanding of spatial locality by defining and studying the Granularity-Change Caching Problem. This problem modifies the traditional caching setup by grouping data items into blocks, such that a cache can choose any subset of a block to load for the same cost as loading any individual item in the block. We show that modeling such spatial locality significantly changes the caching problem. This begins with a proof that Granularity-Change Caching is NP-Complete in the offline setting, even when all items have unit size and all blocks have unit load cost. In the online setting, we show a lower bound for competitive ratios of deterministic policies that is significantly worse than traditional caching. Moreover, we present a deterministic replacement policy called Item-Block Layered Partitioning and show that it obtains a competitive ratio close to that lower bound. Moreover, our bounds reveal a new issue arising in the Granularity-Change Caching Problem where the choice of offline cache size affects the competitiveness of different online algorithms relative to one another. To deal with this issue, we extend a prior (temporal) locality model to account for spatial locality, and provide a general lower bound in addition to an upper bound for Item-Block Layered Partitioning.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/27/2019

Near-Optimal Bounds for Online Caching with Machine Learned Advice

In the model of online caching with machine learned advice, introduced b...
research
05/04/2023

Efficient Caching with Reserves via Marking

Online caching is among the most fundamental and well-studied problems i...
research
02/11/2020

An Optimal Algorithm for Online Multiple Knapsack

In the online multiple knapsack problem, an algorithm faces a stream of ...
research
05/30/2020

Lower Bounds for Caching with Delayed Hits

Caches are a fundamental component of latency-sensitive computer systems...
research
11/18/2022

ACIC: Admission-Controlled Instruction Cache

The front end bottleneck in datacenter workloads has come under increase...
research
12/13/2016

Spatial multi-LRU: Distributed Caching for Wireless Networks with Coverage Overlaps

This article introduces a novel family of decentralised caching policies...
research
02/21/2019

Locality

The performance of modern computation is characterized by locality of re...

Please sign up or login with your details

Forgot password? Click here to reset