arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2411.01246cs.DBcs.DScs.PF
收藏

CAMP:一种用于键值存储的成本自适应多队列驱逐策略

CAMP: A Cost Adaptive Multi-Queue Eviction Policy for Key-Value Stores

Shahram Ghandeharizadeh, Sandy Irani, Jenny Lam, Jason Yap

AI总结:

本文提出面向通用键值存储的成本自适应多队列驱逐策略CAMP,以近似GDS并达到LRU级效率,同时兼顾键值对大小与重算成本;实验证明其速度等同LRU且性能优于LRU及人工池化方案。

摘要:

Cost Adaptive Multi-queue eviction Policy(CAMP,成本自适应多队列驱逐策略)是一种面向通用键值存储(KVS)的算法,用于管理由具有不同访问模式、键值大小以及每个键值对成本各不相同的应用所计算出的键值对。CAMP是Greedy Dual Size(GDS)算法的一种近似,能够以与LRU同样高效的方式实现。特别地,CAMP的驱逐策略与GDS的策略同样有效,但为作出这些决策只需对内部数据结构进行少得多的更新。与使用队列实现LRU类似,它基于对不同键值对的请求历史来适应不断变化的工作负载模式。它优于LRU,因为它同时考虑键值对的大小和成本,以在相互竞争的应用之间最大化可用内存的效用。我们将CAMP与LRU以及另一种需要人工干预、将内存划分为池并把键值对分组分配给不同池的替代方案进行了比较。结果表明,CAMP与LRU一样快,同时性能优于LRU和基于池的替代方案。我们还给出了使用Twitter版本memcached实现CAMP的结果。

英文摘要:

Cost Adaptive Multi-queue eviction Policy (CAMP) is an algorithm for a general purpose key-value store (KVS) that manages key-value pairs computed by applications with different access patterns, key-value sizes, and varying costs for each key-value pair. CAMP is an approximation of the Greedy Dual Size (GDS) algorithm that can be implemented as efficiently as LRU. In particular, CAMP's eviction policies are as effective as those of GDS but require only a small fraction of the updates to an internal data structure in order to make those decisions. Similar to an implementation of LRU using queues, it adapts to changing workload patterns based on the history of requests for different key-value pairs. It is superior to LRU because it considers both the size and cost of key-value pairs to maximize the utility of the available memory across competing applications. We compare CAMP with both LRU and an alternative that requires human intervention to partition memory into pools and assign grouping of key-value pairs to different pools. The results demonstrate CAMP is as fast as LRU while outperforming both LRU and the pooled alternative. We also present results from an implementation of CAMP using Twitter's version of memcached.

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

↑