Skip to main content
QUICK REVIEW

[Paper Review] Algorithmic Building Blocks for Asymmetric Memories

Yan Gu, Yihan Sun|arXiv (Cornell University)|Jun 27, 2018
Advanced Data Storage TechnologiesComputer Science8 citations
TL;DR

This paper introduces and evaluates write-efficient algorithms for asymmetric non-volatile main memory, where writes are significantly more expensive than reads. By optimizing fundamental data structures—hash tables, binary search trees, sorting, and graph traversal—using techniques like phased Dijkstra’s algorithm and cache-aware design, the authors demonstrate up to 7.6x reduction in asymmetric I/O cost compared to standard implementations, especially effective at high write cost factors (ω = 100).

ABSTRACT

The future of main memory appears to lie in the direction of new non-volatile memory technologies that provide strong capacity-to-performance ratios, but have write operations that are much more expensive than reads in terms of energy, bandwidth, and latency. This asymmetry can have a significant effect on algorithm design, and in many cases it is possible to reduce writes at the cost of reads. In this paper, we study which algorithmic techniques are useful in designing practical write-efficient algorithms. We focus on several fundamental algorithmic building blocks including unordered set/map implemented using hash tables, ordered set/map implemented using various binary search trees, comparison sort, and graph traversal algorithms including breadth-first search and Dijkstra's algorithm. We introduce new algorithms and implementations that can reduce writes, and analyze the performance experimentally using a software simulator. Finally we summarize interesting lessons and directions in designing write-efficient algorithms.

Motivation & Objective

  • Address the growing challenge of asymmetric memory costs, where writes are significantly more expensive than reads in emerging non-volatile memory technologies.
  • Bridge the gap between theoretical write-efficient algorithms and practical performance by measuring I/O behavior in a software simulator.
  • Identify and evaluate algorithmic techniques that reduce write operations in fundamental building blocks like hash tables, search trees, sorting, and graph traversal.
  • Assess the impact of cache policies, cache size, and data structure parameters on write efficiency in asymmetric memory workloads.
  • Provide practical insights and implementation guidelines for designing efficient algorithms tailored to future non-volatile main memory systems.

Proposed method

  • Develop a software simulator to precisely count read and write transfers to main memory, using cache configurations as proxies for latency, bandwidth, and energy costs.
  • Adopt the Asymmetric RAM (ARAM) model with parameter ω to abstract the relative cost of writes versus reads, enabling theoretical and empirical analysis.
  • Implement and evaluate phased Dijkstra’s algorithm, which fits the priority queue computation within the cache to avoid intermediate writes to main memory.
  • Compare multiple caching policies—SplitPool and Static—on various graph workloads to assess their impact on write efficiency.
  • Systematically vary priority queue size and cache size to study trade-offs between number of phases and cache utilization in phased algorithms.
  • Use real-world graph datasets (e.g., road networks, webgraphs, social networks) to evaluate performance across diverse workloads and parameter settings.

Experimental results

Research questions

  • RQ1How do different algorithmic techniques reduce write operations in fundamental data structures like hash tables and binary search trees under asymmetric memory constraints?
  • RQ2To what extent can phased Dijkstra’s algorithm outperform the standard binary heap implementation in terms of asymmetric I/O cost across diverse graph workloads?
  • RQ3How do varying cache policies (e.g., SplitPool vs. Static) affect write efficiency in asymmetric memory scenarios?
  • RQ4What is the optimal configuration of priority queue size relative to cache size for minimizing write cost in phased Dijkstra’s algorithm?
  • RQ5How robust are write-efficient algorithms to variations in write cost (ω), cache size (M), and cache-line size (B) across different workloads?

Key findings

  • Phased Dijkstra’s algorithm reduces asymmetric I/O cost by up to 7.6x compared to the binary heap implementation when ω = 100, particularly effective on large graphs like YouTube and DBLP.
  • On road network graphs (PA and TX Roadmap), phased Dijkstra reduces write transfers by up to 40% under high ω, with the Static cache policy yielding significantly fewer writes than SplitPool.
  • The performance of phased Dijkstra is robust to variations in priority queue size and cache policies, with minimal impact on I/O cost when parameters are within a reasonable range.
  • For the 2D and 3D grid graphs, phased Dijkstra achieves near-optimal performance with write transfer counts consistently below 1.2 across all ω values, indicating strong cache efficiency.
  • On large-scale webgraphs like Stan Webgraph and NDU Webgraph, phased Dijkstra maintains write transfer counts below 1.1, demonstrating consistent efficiency even at high ω.
  • The study confirms that fitting computation within the cache—minimizing main memory writes—is a powerful strategy, applicable not only to Dijkstra’s algorithm but also to sorting, minimum spanning tree, and other I/O-bound problems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.