Increment - and - Freeze: Every Cache, Everywhere, All of the Time
Increment - and - Freeze: Every Cache, Everywhere, All of the Time
复制标题
增量和冻结:每时每刻、无处不在的每个缓存
DOI:
10.1145/3558481.3591085
复制
发表时间:
2023
期刊:
影响因子:
--
通讯作者:
Evan West
中科院分区:
文献类型:
--
作者:
M. A. Bender;Daniel DeLayo;Bradley C. Kuszmaul;William Kuszmaul;Evan West
One of the most basic algorithmic problems concerning caches is to compute the LRU hit-rate curve on a given trace. Unfortunately, the known algorithms exhibit poor data locality and fail to scale to large caches. It is widely believed that the LRU hit-rate curve cannot be computed efficiently enough to be used in online production settings. This has led to a large literature on heuristics that aim to approximate the curve efficiently. In this paper, we show that the poor data locality of past algorithms can be avoided. We introduce a new algorithm, called Increment-and-Freeze, for computing exact LRU hit-rate curves. The algorithm achieves RAM-model complexity O(n log n), external-memory complexity O(n over B log n), and parallelism Θ(log n). We also present two theoretical extensions of Increment-and-Freeze, one that achieves SORT complexity in the external-memory model, and one that achieves a parallel span of O(log2 n) which is near linear parallelism, while maintaining work efficiency. We implement Increment-and-Freeze and obtain a speedup of up to 9x over the classical augmented-tree algorithm on a single processor. On 16 threads, the speedup becomes as large as 60x. In comparison to the previous state-of-the-art parallel algorithm, Increment-and-Freeze achieves a speedup of up to 10x when both algorithms use the same number of threads.
DOI:
10.1145/3224427
发表时间:
2018
期刊:
Proceedings of the ACM on Measurement and Analysis of Computing Systems
影响因子:
--
作者:
Berger, Daniel S.;Beckmann, Nathan;Harchol-Balter, Mor
通讯作者:
Harchol-Balter, Mor