Skip to main content
QUICK REVIEW

[Paper Review] StreamBox-HBM: Stream Analytics on High Bandwidth Hybrid Memory

Hongyu Miao, Myeongjae Jeon|arXiv (Cornell University)|Jan 4, 2019
Advanced Database Systems and QueriesComputer Science47 references16 citations
TL;DR

StreamBox-HBM is a stream analytics engine that optimizes performance on hybrid HBM-DRAM systems by using sequential-access sorting on Key Pointer Arrays (KPAs) stored in HBM, dynamically managing data placement to exploit HBM's high bandwidth while minimizing capacity usage. It achieves 110 million records per second and 238 GB/s memory bandwidth on a 64-core Intel Knights Landing system, outperforming existing engines by up to 10x.

ABSTRACT

Stream analytics have an insatiable demand for memory and performance. Emerging hybrid memories combine commodity DDR4 DRAM with 3D-stacked High Bandwidth Memory (HBM) DRAM to meet such demands. However, achieving this promise is challenging because (1) HBM is capacity-limited and (2) HBM boosts performance best for sequential access and high parallelism workloads. At first glance, stream analytics appear a particularly poor match for HBM because they have high capacity demands and data grouping operations, their most demanding computations, use random access. This paper presents the design and implementation of StreamBox-HBM, a stream analytics engine that exploits hybrid memories to achieve scalable high performance. StreamBox-HBM performs data grouping with sequential access sorting algorithms in HBM, in contrast to random access hashing algorithms commonly used in DRAM. StreamBox-HBM solely uses HBM to store Key Pointer Array (KPA) data structures that contain only partial records (keys and pointers to full records) for grouping operations. It dynamically creates and manages prodigious data and pipeline parallelism, choosing when to allocate KPAs in HBM. It dynamically optimizes for both the high bandwidth and limited capacity of HBM, and the limited bandwidth and high capacity of standard DRAM. StreamBox-HBM achieves 110 million records per second and 238 GB/s memory bandwidth while effectively utilizing all 64 cores of Intel's Knights Landing, a commercial server with hybrid memory. It outperforms stream engines with sequential access algorithms without KPAs by 7x and stream engines with random access algorithms by an order of magnitude in throughput. To the best of our knowledge, StreamBox-HBM is the first stream engine optimized for hybrid memories.

Motivation & Objective

  • Address the challenge of achieving high throughput and low latency in stream analytics on hybrid memory systems with limited HBM capacity and high bandwidth.
  • Overcome the mismatch between HBM's strengths (sequential access, high bandwidth) and stream analytics' reliance on random-access hashing for grouping operations.
  • Design a runtime system that dynamically manages data placement between HBM and DRAM and exposes fine-grained parallelism to match HBM's performance characteristics.
  • Enable scalable, high-performance stream processing by minimizing HBM footprint while maximizing utilization of HBM's bandwidth through sequential algorithms.
  • Demonstrate that software-driven data management in hybrid memory is more effective than hardware transparency for stream analytics workloads.

Proposed method

  • Dynamically extract only keys and record pointers into Key Pointer Arrays (KPAs) for grouping operations, storing them exclusively in HBM to minimize memory footprint.
  • Use sequential-access parallel sorting, merging, and vectorized operations on KPAs to exploit HBM’s high bandwidth and low latency for grouped data.
  • Implement out-of-order bundle processing to expose data and pipeline parallelism, dynamically balancing work across 64 cores on Knights Landing.
  • Manage hybrid memory placement by allocating complete records in DRAM and only KPA metadata in HBM, based on runtime resource usage and workload characteristics.
  • Divide streaming windows into bundles to enable task-level parallelism and optimize for both throughput and low output delay.
  • Leverage wide vector instructions and memory access patterns that favor sequential access, contrasting with traditional hash-based grouping in DRAM.

Experimental results

Research questions

  • RQ1Can sequential-access algorithms on HBM outperform random-access hashing algorithms in DRAM for stream analytics grouping operations?
  • RQ2How can limited HBM capacity be effectively managed to maximize performance in high-throughput stream processing?
  • RQ3What runtime mechanisms enable dynamic, application-aware data placement between HBM and DRAM to optimize for both bandwidth and capacity?
  • RQ4To what extent can software-driven data management outperform hardware-transparent memory management in hybrid memory systems for stream analytics?
  • RQ5Can a stream engine achieve sub-second output delay and tens of millions of records per second using only HBM for critical grouping data structures?

Key findings

  • StreamBox-HBM achieves 110 million records per second and 238 GB/s memory bandwidth on a 64-core Intel Knights Landing system with hybrid HBM-DRAM.
  • It outperforms stream engines using sequential-access algorithms without KPAs by 7× in throughput.
  • It achieves an order-of-magnitude improvement over engines using random-access hashing algorithms in DRAM.
  • The system dynamically manages KPA placement in HBM and DRAM based on workload and resource usage, minimizing HBM footprint while maximizing bandwidth utilization.
  • The use of sequential sorting on KPAs in HBM enables high performance despite HBM’s limited capacity, demonstrating the effectiveness of software-optimized data placement.
  • StreamBox-HBM is the first stream analytics engine specifically designed and optimized for hybrid HBM-DRAM memory systems.

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.