An Associativity Threshold Phenomenon in Set-Associative Caches
April 11, 2023 Β· Declared Dead Β· π ACM Symposium on Parallelism in Algorithms and Architectures
"No code URL or promise found in abstract"
Evidence collected by the PWNC Scanner
Authors
Michael A. Bender, Rathish Das, MartΓn Farach-Colton, Guido Tagliavini
arXiv ID
2304.04954
Category
cs.DS: Data Structures & Algorithms
Citations
5
Venue
ACM Symposium on Parallelism in Algorithms and Architectures
Last Checked
4 months ago
Abstract
In an $Ξ±$-way set-associative cache, the cache is partitioned into disjoint sets of size $Ξ±$, and each item can only be cached in one set, typically selected via a hash function. Set-associative caches are widely used and have many benefits, e.g., in terms of latency or concurrency, over fully associative caches, but they often incur more cache misses. As the set size $Ξ±$ decreases, the benefits increase, but the paging costs worsen. In this paper we characterize the performance of an $Ξ±$-way set-associative LRU cache of total size $k$, as a function of $Ξ±= Ξ±(k)$. We prove the following, assuming that sets are selected using a fully random hash function: - For $Ξ±= Ο(\log k)$, the paging cost of an $Ξ±$-way set-associative LRU cache is within additive $O(1)$ of that a fully-associative LRU cache of size $(1-o(1))k$, with probability $1 - 1/\operatorname{poly}(k)$, for all request sequences of length $\operatorname{poly}(k)$. - For $Ξ±= o(\log k)$, and for all $c = O(1)$ and $r = O(1)$, the paging cost of an $Ξ±$-way set-associative LRU cache is not within a factor $c$ of that a fully-associative LRU cache of size $k/r$, for some request sequence of length $O(k^{1.01})$. - For $Ξ±= Ο(\log k)$, if the hash function can be occasionally changed, the paging cost of an $Ξ±$-way set-associative LRU cache is within a factor $1 + o(1)$ of that a fully-associative LRU cache of size $(1-o(1))k$, with probability $1 - 1/\operatorname{poly}(k)$, for request sequences of arbitrary (e.g., super-polynomial) length. Some of our results generalize to other paging algorithms besides LRU, such as least-frequently used (LFU).
Community Contributions
Found the code? Know the venue? Think something is wrong? Let us know!
π Similar Papers
In the same crypt β Data Structures & Algorithms
π
π
The Cartographer
R.I.P.
π»
Ghosted
Route Planning in Transportation Networks
R.I.P.
π»
Ghosted
Near-linear time approximation algorithms for optimal transport via Sinkhorn iteration
R.I.P.
π»
Ghosted
Hierarchical Clustering: Objective Functions and Algorithms
R.I.P.
π»
Ghosted
Graph Isomorphism in Quasipolynomial Time
π
π
The Cartographer
Simulation optimization: A review of algorithms and applications
Died the same way β π» Ghosted
R.I.P.
π»
Ghosted
Federated Learning: Strategies for Improving Communication Efficiency
R.I.P.
π»
Ghosted
In-Datacenter Performance Analysis of a Tensor Processing Unit
R.I.P.
π»
Ghosted
Deep Convolutional Neural Networks for Computer-Aided Detection: CNN Architectures, Dataset Characteristics and Transfer Learning
R.I.P.
π»
Ghosted