Skip to main content
QUICK REVIEW

[Paper Review] Buddy-RAM: Improving the Performance and Efficiency of Bulk Bitwise Operations Using DRAM

Vivek Seshadri, Donghyuk Lee|arXiv (Cornell University)|Nov 30, 2016
Parallel Computing and Optimization TechniquesComputer Science36 references54 citations
TL;DR

Buddy-RAM proposes a novel mechanism to perform functionally complete bulk bitwise operations (AND, OR, NOT) directly inside DRAM by exploiting the analog behavior of sense amplifiers and triple-row activation, achieving 10.9X–25.6X higher throughput and 25.1X–59.5X lower energy consumption compared to conventional methods, with up to 7.0X performance gains in real-world workloads like database queries and set operations.

ABSTRACT

Bitwise operations are an important component of modern day programming. Many widely-used data structures (e.g., bitmap indices in databases) rely on fast bitwise operations on large bit vectors to achieve high performance. Unfortunately, in existing systems, regardless of the underlying architecture (e.g., CPU, GPU, FPGA), the throughput of such bulk bitwise operations is limited by the available memory bandwidth. We propose Buddy, a new mechanism that exploits the analog operation of DRAM to perform bulk bitwise operations completely inside the DRAM chip. Buddy consists of two components. First, simultaneous activation of three DRAM rows that are connected to the same set of sense amplifiers enables us to perform bitwise AND and OR operations. Second, the inverters present in each sense amplifier enables us to perform bitwise NOT operations, with modest changes to the DRAM array. These two components make Buddy functionally complete. Our implementation of Buddy largely exploits the existing DRAM structure and interface, and incurs low overhead (1% of DRAM chip area). Our evaluations based on SPICE simulations show that, across seven commonly-used bitwise operations, Buddy provides between 10.9X---25.6X improvement in raw throughput and 25.1X---59.5X reduction in energy consumption. We evaluate three real-world data-intensive applications that exploit bitwise operations: 1) bitmap indices, 2) BitWeaving, and 3) bitvector-based implementation of sets. Our evaluations show that Buddy significantly outperforms the state-of-the-art.

Motivation & Objective

  • Address the performance bottleneck in bulk bitwise operations caused by memory bandwidth limitations in modern systems.
  • Overcome the inefficiency of transferring large bit vectors between processor and main memory for bitwise operations.
  • Enable high-throughput, low-energy bitwise operations directly within DRAM using existing hardware components.
  • Design a low-cost, practical solution that integrates seamlessly with standard DRAM architecture and interface.
  • Demonstrate the applicability and performance benefits of the proposed mechanism across diverse data-intensive workloads.

Proposed method

  • Utilize simultaneous activation of three DRAM rows sharing the same sense amplifier array to implement a bitwise majority function, enabling AND and OR operations through controlled initial states of the rows.
  • Leverage the inherent inverters in each sense amplifier to perform bitwise NOT operations by connecting a dual-contact 2T-1C cell to both inverter inputs.
  • Integrate the Buddy-AND/OR and Buddy-NOT components with RowClone to achieve functional completeness for all bitwise operations.
  • Restrict triple-row activation to a predefined set of three rows per subarray to minimize area and control complexity, avoiding full replication of address buses and decoders.
  • Ensure reliability under process variation through SPICE simulations, validating correct operation across multiple process corners.
  • Maintain backward compatibility by using standard DRAM commands and interface, minimizing changes to existing memory controller and system software.

Experimental results

Research questions

  • RQ1Can bitwise operations be efficiently performed inside DRAM using existing analog circuitry without significant area or power overhead?
  • RQ2How can the sense amplifier’s analog behavior be exploited to implement logical operations like AND, OR, and NOT at the row level?
  • RQ3What is the performance and energy efficiency gain of performing bulk bitwise operations in DRAM compared to off-chip execution?
  • RQ4How does the proposed mechanism scale across diverse workloads such as database queries, set operations, and DNA sequence analysis?
  • RQ5To what extent can the mechanism be integrated into existing DRAM architectures with minimal modification and cost?

Key findings

  • Buddy-RAM achieves 10.9X to 25.6X higher raw throughput for seven common bitwise operations compared to a state-of-the-art SIMD baseline.
  • Energy consumption for bitwise operations is reduced by 25.1X to 59.5X compared to conventional approaches.
  • Database queries using bitmap indices see a 6.0X performance improvement when accelerated by Buddy-RAM.
  • BitWeaving, a technique for fast database scans, achieves an average 7.0X speedup across various scan parameters when using Buddy-RAM.
  • Set operations (intersection, union, difference) show a 3.0X performance improvement over conventional implementations.
  • The mechanism incurs only 1% area overhead on the DRAM chip, demonstrating low cost and practical feasibility.

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.