[Paper Review] Memory Hierarchy Design for Caching Middleware in the Age of NVM
This paper models cache design with multiple memory media (DRAM, NVM, Flash, Disk) as a Multiple Choice Knapsack Problem to decide what to cache and where, including replication vs. tiering, under budget and workload. It provides an offline algorithm and trace-driven evaluation for KVS and host-side caches.
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.
Motivation & Objective
- Motivate cache design in the age of non-volatile memory (NVM) and diverse storage media.
- Propose a framework to optimize cache configuration and data placement (replication vs. tiering) under budget.
- Model cache design as a Multiple Choice Knapsack Problem (MCKP) and develop a near-optimal solution.
- Evaluate the framework via trace-driven simulations on key-value stores and host-side caches.
- Provide actionable insights on when replication or tiering is advantageous under varying workloads and failure rates.
Proposed method
- Define stashes as candidate memory media with read/write latencies, bandwidths, and price per byte.
- Represent each data item by size, compute time, read/write frequencies, and model placement options across stashes.
- Formulate the Cache Configuration Problem as a MCKP to maximize placement benefit under a budget.
- Employ a greedy algorithm with viability pruning to solve the LP-relaxation and derive near-optimal integral solutions.
- Incorporate failure modelling via per-event failure rates and restoration costs to capture replication benefits.
- Evaluate via trace-driven simulations for both a key-value store (KVS) and a host-side cache, using two representative NVM types.
- Provide a methodology to compute failure rates from traces and device parameters.

Experimental results
Research questions
- RQ1How should a cache be configured when multiple storage media are available under a fixed budget?
- RQ2When is data replication across stashes advantageous versus single-copy tiering in a caching hierarchy?
- RQ3How do workload characteristics (read/write frequencies, item sizes) and failure rates influence optimal cache placement across stashes?
- RQ4Can a MCKP-based framework approximate the optimal cache configuration for KVS and host-side caches under realistic traces?
- RQ5What trade-offs emerge between cost, performance, and recovery in caching middleware with NVM?
Key findings
- Some combinations of storage media perform much better than others across budgets; e.g., Flash+NVM often a good choice for host-side caches, while DRAM+NVM suits KVS.
- Beyond a threshold budget, increasing cache size yields diminishing performance gains and may not justify cost.
- Purchasing a slower medium with larger capacity can outperform a pricey high-speed NVM for staging all data items.
- Optional replication can outperform tiering and is significantly better than replicating all items; selective replication provides best results under certain failure and workload conditions.
- There exist many near-optimal placements; restricting options can still achieve close-to-optimal average service time under budget constraints.
- The framework adapts to different storage media parameters and workloads and can guide high-level caching policy decisions.
![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](https://ar5iv.labs.arxiv.org/html/2506.05071/assets/images/Iterations.png)
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.