Understanding Bulk-Bitwise Processing In-Memory Through Database Analytics

Ben Perach, Ronny Ronen, Benny Kimelfeld, Shahar Kvatinsky
3/20/2022
cs.ARcs.ET

Official code: benperach/gem5_PIM_extension (8 stars, C++, last commit 2022-11-01).

Abstract

Bulk-bitwise processing-in-memory (PIM), where large bitwise operations are performed in parallel by the memory array itself, is an emerging form of computation with the potential to mitigate the memory wall problem. This paper examines the capabilities of bulk-bitwise PIM by constructing PIMDB, a fully-digital system based on memristive stateful logic, utilizing and focusing on in-memory bulk-bitwise operations, designed to accelerate a real-life workload: analytical processing of relational databases.

Show full abstract

We introduce a host processor programming model to support bulk-bitwise PIM in virtual memory, develop techniques to efficiently perform in-memory filtering and aggregation operations, and adapt the application data set into the memory. To understand bulk-bitwise PIM, we compare it to an equivalent in-memory database on the same host system. We show that bulk-bitwise PIM substantially lowers the number of required memory read operations, thus accelerating TPC-H filter operations by 1.6$\times$--18$\times$ and full queries by 56$\times$--608$\times$, while reducing the energy consumption by 1.7$\times$--18.6$\times$ and 0.81$\times$--12$\times$ for these benchmarks, respectively. Our extensive evaluation uses the gem5 full-system simulation environment. The simulations also evaluate cell endurance, showing that the required endurance is within the range of existing endurance of RRAM devices.

View on arXivView PDF

Code Implementations(1)

A gem5 extension, introducing a bulk-bitwise PIM module. This extension include a programming model for bulk-bitwise PIM and additional X86 instruction to interact with the PIM module.

83C++, PythonMar 19, 20224 years ago

Similar Papers

Cite this paper

@article{perach2022understanding,
  title  = {Understanding Bulk-Bitwise Processing In-Memory Through Database Analytics},
  author = {Ben Perach and Ronny Ronen and Benny Kimelfeld and Shahar Kvatinsky},
  year   = {2022},
  eprint = {2203.10486},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.10486}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.10486.svg)](https://codeofpaper.com/paper/2203.10486)

Discussion