Clock2Q+: 一种简单且高效的元数据缓存替换算法
Clock2Q+: A Simple and Efficient Replacement Algorithm for Metadata Cache in VMware vSAN
AI总结:
Clock2Q+是一种针对元数据缓存的高效替换算法,通过引入相关窗口提升性能,优于现有算法。
摘要:
缓存替换算法是存储系统的关键构建模块。本文研究了元数据缓存的特点,并论证了即使对应的数据访问不包含相关引用,元数据缓存本质上也表现出相关引用。相关引用的存在会降低缓存替换算法的有效性,因为这些引用常常被错误地归类为热点块。Clock2Q+专门针对元数据缓存设计,并已在VMware的两大旗舰存储产品vSAN和VDFS中实现。类似于S3-FIFO,Clock2Q+使用三个队列;然而,Clock2Q+在Small FIFO队列中引入了一个相关窗口,其中该窗口内的块不设置引用位。这种简单的改进使Clock2Q+在性能上优于最先进的替换算法。与第二名的S3-FIFO相比,Clock2Q+在元数据跟踪上实现了高达28.5%的命中率降低。Clock2Q+具备大规模存储系统所需的基本特性:它在缓存命中时具有低CPU开销,内存开销低,能够高效扩展到多个CPU,并且易于调优和实现。此外,Clock2Q+在数据跟踪上也优于最先进的缓存替换算法。
英文摘要:
Cache replacement algorithms are critical building blocks of storage systems. This paper examines the characteristics of metadata caches and argues that they inherently exhibit correlated references, even when the corresponding data accesses do not contain correlated references. The presence of correlated references reduces the effectiveness of cache replacement algorithms because these references are often mistakenly categorized as hot blocks. Clock2Q+ is specifically designed for metadata caches and has been implemented in vSAN and VDFS, two flagship storage products of VMware by Broadcom. Similar to S3-FIFO, Clock2Q+ uses three queues; however, Clock2Q+ introduces a correlation window in the Small FIFO queue, where blocks in this window do not set the reference bit. This simple enhancement allows Clock2Q+ to outperform state-of-the-art replacement algorithms. Compared to S3-FIFO, the second-best performing algorithm, Clock2Q+ achieves up to a 28.5% lower miss ratio on metadata traces. Clock2Q+ possesses the essential properties required for large-scale storage systems: it has low CPU overhead on cache hits, low memory overhead, scales efficiently to multiple CPUs, and is both easy to tune and implement. Additionally, Clock2Q+ outperforms state-of-the-art cache replacement algorithms on data traces as well.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。