멀티코어 캐싱 전략의 최악의 경우 분석을 넘어선 연구
Beyond Worst-case Analysis of Multicore Caching Strategies
Beyond Worst-case Analysis of Multicore Caching Strategies
@misc{kamali2020beyond,
title = {Beyond Worst-case Analysis of Multicore Caching Strategies},
author = {Shahin Kamali and Helen Xu},
year = {2020},
eprint = {2011.02046},
archivePrefix = {arXiv},
primaryClass = {cs.DS},
url = {https://arxiv.org/abs/2011.02046}
}
Kamali, S., & Xu, H. (2020). Beyond Worst-case Analysis of Multicore Caching Strategies [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2011.02046
KAMALI S, XU H. Beyond Worst-case Analysis of Multicore Caching Strategies[EB/OL]. (2020-11-03)[2026-11-29]. https://arxiv.org/abs/2011.02046.
초록
여러 코어를 공유하는 캐시를 갖는 모든 프로세서에는 캐시 교체 알고리즘을 구현해야 한다. 이전 연구는 LRU 를 포함한 온라인 알고리즘의 광범위한 클래스가 입력 길이에 따라 경쟁 비율이 증가함을 보여왔다. 또한, 단일 코어 캐싱에서 최적인 오프라인 알고리즘인 Furthest-In-Future 도 다핵 환경에서는 경쟁력이 없다. 이러한 부정적 결과는 다핵 캐싱 알고리즘을 대안적 분석 측정을 통해 더 심층적으로 비교할 필요성을 시사한다. 구체적으로, 온라인 알고리즘에 적응하는 적의 능력은 온라인 알고리즘 간의 직접 비교의 필요성을 제기한다. 본 논문에서는 Angelopoulos 와 Schweitzer [JACM'13] 이 도입한 쌍대 분석의 일반화인 순환 분석 (cyclic analysis) 을 소개한다. 순환 분석은 쌍대 분석의 장점을 포착하면서도 다양한 온라인 문제의 알고리즘 비교에 더 유용하게 활용될 수 있는 유연성을 제공한다. 특히, 다핵 캐싱 알고리즘 분석에 있어 최악의 경우 분석을 넘어선 첫걸음을 내딛는다. 우리는 순환 분석을 사용하여 다핵 캐싱 알고리즘 간의 관계를 확립하며, 참조의 지역성 (locality of reference) 이 존재할 때 LRU 가 다른 모든 다핵 캐싱 알고리즘보다 우월함을 증명한다.
Every processor with multiple cores sharing a cache needs to implement a cache-replacement algorithm. Previous work demonstrated that the competitive ratio of a large class of online algorithms, including Least-Recently-Used (LRU), grows with the length of the input. Furthermore, even offline algorithms like Furthest-In-Future, the optimal algorithm in single-core caching, cannot compete in the multicore setting. These negative results motivate a more in-depth comparison of multicore caching algorithms via alternative analysis measures. Specifically, the power of the adversary to adapt to online algorithms suggests the need for a direct comparison of online algorithms to each other. In this paper, we introduce cyclic analysis, a generalization of bijective analysis introduced by Angelopoulos and Schweitzer [JACM'13]. Cyclic analysis captures the advantages of bijective analysis while offering flexibility that makes it more useful for comparing algorithms for a variety online problems. In particular, we take the first steps beyond worst-case analysis for analysis of multicore caching algorithms. We use cyclic analysis to establish relationships between multicore caching algorithms, including the advantage of LRU over all other multicore caching algorithms in the presence of locality of reference.