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

优化内容分发网络缓存的替换策略:超越Belady以获得看似难以实现的字节未命中率

Optimizing Replacement Policies for Content Delivery Network Caching: Beyond Belady to Attain A Seemingly Unattainable Byte Miss Ratio

Peng Wang, Yu Liu

摘要:

当在内容分发网络(CDN)缓存中面对不同大小的对象/文件时,通过近似Belady来追求最佳对象未命中率(OMR)不再确保最佳字节未命中率(BMR),从而对如何在CDN中实现卓越的BMR产生了困惑。为了解决这个问题,我们通过实验观察到,存在一个时间窗口来延迟具有最长重用距离的对象的驱逐,以在不增加OMR的情况下提高BMR。因此,我们引入了一个深度强化学习(RL)模型,通过动态监控OMR和BMR的变化来捕捉这个时间窗口,并在时间窗口中实施BMR友好的策略。基于此策略,我们提出了一个Belady和大小驱逐(LRU-BaSE)算法,减少BMR,同时保持OMR。为了使LRU-BaSE有效和实用,我们用双管齐下的方法解决RL的反馈延迟问题。一方面,我们观察到LRU缓存队列的后部包含大多数驱逐候选者,这使得LRU-BaSE可以缩短决策区域。另一方面,CDN上的请求分布使得将学习区域划分为多个子区域是可行的,每个子区域都是以减少的时间和增加的准确性来学习的。在实际的CDN系统中,与LRU相比,LRU-BaSE可以平均减少30.05%的“回操作系统”流量和17.07%的访问延迟。仿真结果表明,LRU-BaSE的性能优于现有的缓存替换策略,平均而言,LRU-BaSE的BMR分别比Belady和Practical Flow-based Offline Optimal(PFOO)的BMR低0.63%和0.33%。此外,与学习放松Belady(LRB)相比,LRU-BaSE在面对工作负载漂移时可以产生相对稳定的性能。

英文摘要:

When facing objects/files of differing sizes in content delivery networks (CDNs) caches, pursuing an optimal object miss ratio (OMR) by approximating Belady no longer ensures an optimal byte miss ratio (BMR), creating confusion about how to achieve a superior BMR in CDNs. To address this issue, we experimentally observe that there exists a time window to delay the eviction of the object with the longest reuse distance to improve BMR without increasing OMR. As a result, we introduce a deep reinforcement learning (RL) model to capture this time window by dynamically monitoring the changes in OMR and BMR, and implementing a BMR-friendly policy in the time window. Based on this policy, we propose a Belady and Size Eviction (LRU-BaSE) algorithm, reducing BMR while maintaining OMR. To make LRU-BaSE efficient and practical, we address the feedback delay problem of RL with a two-pronged approach. On the one hand, our observation of a rear section of the LRU cache queue containing most of the eviction candidates allows LRU-BaSE to shorten the decision region. On the other hand, the request distribution on CDNs makes it feasible to divide the learning region into multiple sub-regions that are each learned with reduced time and increased accuracy. In real CDN systems, compared to LRU, LRU-BaSE can reduce "backing to OS" traffic and access latency by 30.05\% and 17.07\%, respectively, on average. The results on the simulator confirm that LRU-BaSE outperforms the state-of-the-art cache replacement policies, where LRU-BaSE's BMR is 0.63\% and 0.33\% less than that of Belady and Practical Flow-based Offline Optimal (PFOO), respectively, on average. In addition, compared to Learning Relaxed Belady (LRB), LRU-BaSE can yield relatively stable performance when facing workload drift.

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

↑