Skip to main content
QUICK REVIEW

[论文解读] Memory Hierarchy Design for Caching Middleware in the Age of NVM

Shahram Ghandeharizadeh, Sandy Irani|ArXiv.org|Jun 5, 2025
Advanced Data Storage TechnologiesComputer Science参考文献 26被引用 4
一句话总结

本论文将包含多种存储介质(DRAM、NVM、Flash、Disk)的缓存设计建模为一个多项式背包问题,以在预算和工作负载约束下决定缓存内容及其位置,包括副本与分层,以及缓存的放置与复制。它提供离线算法和基于跟踪的评估,针对 KVS 和主机端缓存。

ABSTRACT

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.

研究动机与目标

  • 在非易失性内存(NVM)与多样化存储介质时代,推动缓存设计。
  • 提出一个框架,在预算约束下优化缓存配置和数据放置(副本 vs 分层)。
  • 将缓存设计建模为一个多选背包问题(MCKP)并开发近似最优解。
  • 通过基于跟踪的仿真评估该框架在键值存储和主机端缓存上的表现。
  • 在变化的工作负载和故障率下,提供在何时采用副本或分层的可操作洞察。

提出的方法

  • 将 stash 定义为具备读写延迟、带宽和每字节价格的候选内存介质。
  • 用数据项的大小、计算时间、读写频率来表示,并建模跨 stash 的放置选项。
  • 将缓存配置问题形式化为一个 MCKP,以在预算下最大化放置收益。
  • 采用带可行性修剪的贪心算法求解 LP 松弛并导出近似最优的整数解。
  • 通过逐事件故障率和恢复成本的建模来捕捉副本带来的收益。
  • 通过基于跟踪的仿真,对两个代表性 NVM 类型的 KVS 与主机端缓存进行评估。
  • 提供一种从跟踪和设备参数计算故障率的方法。
Figure 1: Average service time of processing a social networking workload with different choice of storage medium for the cache.
Figure 1: Average service time of processing a social networking workload with different choice of storage medium for the cache.

实验结果

研究问题

  • RQ1在固定预算下,当可用多种存储介质时,应该如何配置缓存?
  • RQ2在缓存层次结构中,跨 stash 的数据副本何时比单拷贝分层更有利?
  • RQ3工作负载特征(读/写频率、项大小)和故障率如何影响 stash 间的最优缓存放置?
  • RQ4在现实跟踪下,基于 MCKP 的框架是否能逼近 KVS 和主机端缓存的最优缓存配置?
  • RQ5在具有 NVM 的缓存中,成本、性能和恢复之间存在哪些权衡?

主要发现

  • 在预算的不同组合下,一些存储介质的组合表现明显好于其他组合;例如,对于主机端缓存,Flash+NVM 常是一个不错的选择,而对 KVS,DRAM+NVM 更为合适。
  • 超过某一预算阈值后,增加缓存容量的性能提升趋于递减,可能不再物有所值。
  • 以较慢的介质但更大容量来承载所有数据项的阶段性数据,可以在某些场景中超越以高价高速 NVM 的表现。
  • 可选的副本在某些条件下优于分层,且显著优于对所有项进行复制;在特定故障与工作负载条件下,选择性副本能带来最佳结果。
  • 存在许多近似最优的放置解;在预算约束下,限制可选项仍可实现接近最优的平均服务时间。
  • 该框架可适配不同存储介质参数和工作负载,能够指导高层缓存策略决策。
Figure 2 : Illustration of SetViableOptions . Before the first iteration, the viableList for $k$ is initialized to $[\emptyset]$ . The algorithm examines each segment connecting $P_{\emptyset}$ to the three placements to the right and selects $P_{F}$ because the segment from $P_{\emptyset}$ to $P_{F
Figure 2 : Illustration of SetViableOptions . Before the first iteration, the viableList for $k$ is initialized to $[\emptyset]$ . The algorithm examines each segment connecting $P_{\emptyset}$ to the three placements to the right and selects $P_{F}$ because the segment from $P_{\emptyset}$ to $P_{F

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。