轻量级健壮的大小感知缓存管理
Lightweight Robust Size Aware Cache Management
摘要:
现代键值存储、对象存储、因特网代理高速缓存以及内容分发网络(CDN)通常管理不同大小的对象,例如,blob、不同长度的视频文件、不同分辨率的图像以及小文档。在这样的工作负载中,大小感知的缓存策略优于大小无关的算法。不幸的是,现有的尺寸感知算法往往过于复杂和计算昂贵。我们的工作遵循一个更平易近人的模式,我们扩展了流行的(大小不经意)TinyLFU缓存准入政策,以处理可变大小的项目。在两个流行的缓存库中实现我们的方法只需要做很小的修改。我们表明,我们的算法产生竞争力或更好的命中率和字节命中率相比,最先进的大小感知算法,如AdaptSize,LHD,LRB,GDSF。此外,运行时比较表明,与最佳替代方案相比,我们的实现速度最多快3倍,即,它带来了低得多的CPU开销。
英文摘要:
Modern key-value stores, object stores, Internet proxy caches, as well as Content Delivery Networks (CDN) often manage objects of diverse sizes, e.g., blobs, video files of different lengths, images with varying resolution, and small documents. In such workloads, size-aware cache policies outperform size-oblivious algorithms. Unfortunately, existing size-aware algorithms tend to be overly complicated and computationally~expensive. Our work follows a more approachable pattern; we extend the prevalent (size-oblivious) TinyLFU cache admission policy to handle variable sized items. Implementing our approach inside two popular caching libraries only requires minor changes. We show that our algorithms yield competitive or better hit-ratios and byte hit-ratios compared to the state of the art size-aware algorithms such as AdaptSize, LHD, LRB, and GDSF. Further, a runtime comparison indicates that our implementation is faster by up to x3 compared to the best alternative, i.e., it imposes much lower CPU overhead.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。