Abstract
Buddy-RAM is a novel architecture designed to perform bulk bitwise operations (AND, OR, NOT) directly within DRAM chips. By leveraging the analog operating principles of DRAM, Buddy-RAM eliminates the data movement bottleneck between memory and the processor. Evaluation shows that Buddy-RAM achieves up to 25x higher throughput and 60x lower energy consumption compared to state-of-the-art CPUs and GPUs for data-intensive workloads like database analytics and DNA sequence alignment.
Introduction
Modern computing systems are increasingly limited by the "Von Neumann bottleneck," where the narrow bandwidth between the processor and memory restricts performance for data-heavy applications. Tasks such as database indexing, encryption, and bioinformatics require simple bitwise operations on massive datasets. Traditionally, these operations require fetching data into the CPU, processing it, and writing it back, wasting significant time and energy. Buddy-RAM addresses this by enabling "in-memory" computation, transforming DRAM from a passive storage medium into a functional logic unit.
Proposed Architecture
Buddy-RAM achieves functional completeness—the ability to perform any logical operation—through two primary DRAM-internal mechanisms: Triple-Row Activation (TRA) and the Dual-Contact Cell (DCC).
Triple-Row Activation (TRA)
The core mechanism for bitwise AND and OR operations is Triple-Row Activation. By simultaneously activating three rows (A, B, and C) connected to the same sense amplifier, the resulting voltage on the bitline follows a majority function: $Result = (A \cdot B) + (B \cdot C) + (C \cdot A)$.
By fixing one row (e.g., row C) to a logical '0', the operation simplifies to a bitwise AND. Conversely, fixing it to '1' results in a bitwise OR. This analog charge-sharing process allows for massive parallelism across DRAM banks.
Dual-Contact Cell (DCC)
To achieve functional completeness, Buddy-RAM introduces a specialized "Dual-Contact Cell" to perform bitwise NOT operations. A standard sense amplifier naturally generates two complementary logic values. The DCC is designed to capture the inverted value from the sense amplifier's internal node, effectively performing a NOT operation without additional logic gates.
System Integration
Buddy-RAM integrates these mechanisms with RowClone, a technique for rapid row-to-row data copying within DRAM. This allows the system to move data into designated "computation rows" where TRA and DCC operations are performed. The hardware modifications, including a split row decoder, result in a negligible 1% area overhead.
Evaluation and Results
The architecture was evaluated using SPICE simulations for circuit reliability and the Gem5 simulator for system-level performance on real-world workloads, including database bitmap indices and BitWeaving.
Performance and Energy
Compared to a high-end Intel Skylake CPU, Buddy-RAM provides a 10.9x to 25.6x improvement in raw bitwise throughput. Energy efficiency is improved by 25.1x to 59.5x due to the elimination of off-chip memory bus toggling.
Application Speedups
- Database Queries: 6.0x average speedup.
- BitWeaving Scans: 7.0x average speedup.
- Set Operations: 3.0x faster than conventional CPU-based implementations.
Discussion and Limitations
While Buddy-RAM offers significant gains, it faces challenges regarding data alignment and software integration. Operations are performed on entire 8KB DRAM rows; thus, unaligned data or smaller operations reduce efficiency. Furthermore, adopting Buddy-RAM requires new ISA instructions and updates to compilers and operating systems to manage cache coherence and memory mapping. Future work must also validate these analog operations on physical silicon to ensure reliability across varying temperatures and voltages.
Conclusion
Buddy-RAM demonstrates that treating DRAM as an analog computing substrate can bypass the memory bandwidth bottleneck. By providing a minimalist, functionally complete set of in-memory bitwise operations, it offers a scalable and energy-efficient path for future data-centric computing.
Summary updated