arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.05071cs.DBcs.ARcs.DS
收藏

NVM 时代缓存中间件的内存层次结构设计

Memory Hierarchy Design for Caching Middleware in the Age of NVM

Shahram Ghandeharizadeh, Sandy Irani, Jenny Lam

AI总结:

本文将 NVM 时代缓存层次结构配置建模为多选择背包问题,利用线性规划松弛高效逼近最优解,并在键值存储和主机端缓存场景中证明低故障率、频繁更新时数据分层优于复制。

摘要:

存储技术的进步使非易失性存储器(NVM)成为一种新的存储介质。NVM 与动态随机存取存储器(DRAM)、固态硬盘(SSD)和磁盘一起,为系统设计者在设计缓存中间件时提供了广泛的选择。此外,在缓存内存层次结构的多个层级中复制数据项的设计决策,可以通过在内存故障时提供更快的恢复时间来提升整体系统性能。在给定固定预算的情况下,关键的配置问题是:哪些存储介质应构成内存层次结构?每个层级的存储容量是多少?数据应在层次结构的不同层级之间进行复制还是分区?我们将这些缓存配置问题建模为多选择背包问题(MCKP)的一个实例。该模型以每种内存类型的规格以及应用的数据库特征及其工作负载为指导。尽管 MCKP 是 NP 完全的,但其线性规划松弛可以高效求解,并可用于紧密逼近最优解。我们使用由此得到的简单算法,在键值存储(例如 memcached)以及主机端缓存(例如 Flashcache)的内存层次结构背景下评估设计权衡。结果表明,在特定故障率和工作负载特征下,选择性复制是合适的。在故障率较低且数据更新频繁的情况下,将数据分层存储于构成缓存的不同存储介质中优于复制。

英文摘要:

Advances in storage technology have introduced Non-Volatile Memory, NVM, as a new storage medium. NVM, along with Dynamic Random Access Memory (DRAM), Solid State Disk (SSD), and Disk present a system designer with a wide array of options in designing caching middleware. Moreover, design decisions to replicate a data item in more than one level of a caching memory hierarchy may enhance the overall system performance with a faster recovery time in the event of a memory failure. Given a fixed budget, the key configuration questions are: Which storage media should constitute the memory hierarchy? What is the storage capacity of each hierarchy? Should data be replicated or partitioned across the different levels of the hierarchy? We model these cache configuration questions as an instance of the Multiple Choice Knapsack Problem (MCKP). This model is guided by the specification of each type of memory along with an application's database characteristics and its workload. Although MCKP is NP-complete, its linear programming relaxation is efficiently solvable and can be used to closely approximate the optimal solution. We use the resulting simple algorithm to evaluate design tradeoffs in the context of a memory hierarchy for a Key-Value Store (e.g., memcached) as well as a host-side cache (e.g., Flashcache). The results show selective replication is appropriate with certain failure rates and workload characteristics. With a slim failure rate and frequent data updates, tiering of data across the different storage media that constitute the cache is superior to replication.

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

↑