Storage Class Memory Aware Data Management

Bishwaranjan Bhattacharjee, Mustafa Canim, Christian A. Lang, George A. Mihaila, Kenneth A. RossIEEE Data Eng. Bull 2010

The "memory wall" has long defined the performance limits of database systems, primarily due to the significant latency gap between fast, expensive DRAM and slow, inexpensive Hard Disk Drives (HDDs). The emergence of Storage Class Memory (SCM)—technologies such as NAND Flash and Phase Change Memory—offers a promising middle tier in the storage hierarchy. However, effectively integrating SCM requires more than simple hardware replacement; it necessitates fundamental changes in data placement and algorithmic design. This paper explores three key contributions from IBM Research to optimize database systems for SCM.

Intelligent Data Management Strategies

The researchers propose a multi-pronged approach to leverage SCM's unique performance characteristics, balancing static optimization with dynamic adaptation.

Object Placement Advisor (OPA)

For static workloads, the OPA acts as a profiling tool that treats data placement as a classic "Knapsack Problem." By calculating the access density—the I/O time saved per unit of storage—the OPA uses a greedy heuristic to recommend which database objects (tables or indexes) should be migrated to SCM to maximize overall system throughput. In TPC-C benchmarks, this approach achieved a 10x throughput boost by placing only 36% of the data on an SSD.

Temperature-Aware Caching (TAC)

In dynamic environments where workloads shift, a static approach is insufficient. The authors introduce TAC, which treats SCM as an "L2 Cache" or bufferpool extension between DRAM and Disk. Unlike traditional Least Recently Used (LRU) policies, TAC employs a "temperature" metric based on the time spent reading or writing a page. This allows the system to prioritize caching data that would otherwise incur high-latency random reads from the HDD.

System architecture for Temperature-Aware Caching (left) and its performance comparison against standard replacement policies (right).

Buffered Bloom Filter (BBF)

Standard data structures like Bloom filters are typically designed to reside entirely in DRAM. When these structures exceed DRAM capacity and spill onto SCM, performance often degrades significantly. The BBF addresses this by splitting the filter into a small DRAM-based Buffer Layer and a large SCM-based Filter Layer. By batching writes and reads, the BBF hides SCM latency, enabling the use of massive, highly accurate filters that far exceed DRAM limits.

Performance Evaluation

The proposed methods were evaluated using industry-standard benchmarks like TPC-C and synthetic Bloom filter workloads.

  • Cache Efficiency: As shown in the comparative analysis, the TAC algorithm consistently outperformed standard replacement policies such as LRU and ARC. It proved particularly effective when the SCM cache size was small relative to the main memory bufferpool, demonstrating superior selectivity in data caching.
  • Bloom Filter Optimization: The BBF demonstrated significant performance advantages over traditional Bloom filters. Experimental results indicate that the BBF maintains lower execution times even as the available memory size decreases. Furthermore, because the SCM allows for a much larger bit-vector, the BBF produced at least an order of magnitude fewer false positives than traditional DRAM-only implementations.
Execution times for Buffered Bloom Filters (BBF) versus Traditional Bloom Filters across varying memory sizes.

Conclusion

The integration of SCM into the storage hierarchy provides a critical opportunity to bridge the performance gap between memory and disk. By combining static placement advisors, dynamic temperature-aware caching, and latency-hiding data structures like the Buffered Bloom Filter, database systems can achieve order-of-magnitude performance improvements. Future work will likely focus on even lower-latency SCMs like Phase Change Memory, which may further simplify these architectural adaptations through byte-addressability.

Summary updated

BibTeX
@article{bhattacharjee2010storage,
  author = {Bishwaranjan Bhattacharjee and Mustafa Canim and Christian A. Lang and George A. Mihaila and Kenneth A. Ross},
  title = {{Storage Class Memory Aware Data Management}},
  journal = {IEEE Data Eng. Bull.},
  year = {2010},
}
Figure