arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1503.07624cs.DS
收藏

自适应缓存替换策略分析

Analyzing Adaptive Cache Replacement Strategies

Mario E. Consuegra, Wendy A. Martinez, Giri Narasimhan, Raju Rangaswami, Leo Shao, Giuseppe Vietri

摘要:

自适应替换缓存(ARC)和具有自适应替换的时钟(CAR)是最先进的“自适应”缓存替换算法,其被发明以改进经典缓存替换策略(诸如LRU、LFU和时钟)的缺点。通过将仅访问过一次的项和访问更频繁的项分离出来,ARC和CAR都能够控制单次访问项淹没缓存并推出更频繁访问项的有害影响。ARC和CAR在实践中的表现都超过了经典和流行的同类产品。这两种算法都很复杂,但很流行。尽管它们可以被视为具有“自适应”扭曲的在线算法,但ARC和CAR竞争力的理论证明在十多年内仍未解决。我们表明,CAR(和ARC)的竞争比有一个下限N + 1(其中N是缓存的大小)和上限18N(4N ARC)。如果提供给ARC或CAR的缓存大小大于提供给OPT的缓存大小,则我们显示出提高的竞争力比率。上述结果的重要含义是,不存在“病态”最坏情况请求序列,其可能使ARC和CAR的性能恶化超过与LRU相比的恒定因子。

英文摘要:

Adaptive Replacement Cache (ARC) and CLOCK with Adaptive Replacement (CAR) are state-of-the- art "adaptive" cache replacement algorithms invented to improve on the shortcomings of classical cache replacement policies such as LRU, LFU and CLOCK. By separating out items that have been accessed only once and items that have been accessed more frequently, both ARC and CAR are able to control the harmful effect of single-access items flooding the cache and pushing out more frequently accessed items. Both ARC and CAR have been shown to outperform their classical and popular counterparts in practice. Both algorithms are complex, yet popular. Even though they can be treated as online algorithms with an "adaptive" twist, a theoretical proof of the competitiveness of ARC and CAR remained unsolved for over a decade. We show that the competitiveness ratio of CAR (and ARC) has a lower bound of N + 1 (where N is the size of the cache) and an upper bound of 18N (4N for ARC). If the size of cache offered to ARC or CAR is larger than the one provided to OPT, then we show improved competitiveness ratios. The important implication of the above results are that no "pathological" worst-case request sequences exist that could deteriorate the performance of ARC and CAR by more than a constant factor as compared to LRU.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑