TCAM-SSD: A Framework for Search-Based Computing in Solid-State Drives
Abstract
As the amount of data produced in society continues to grow at an exponential rate, modern applications are incurring significant performance and energy penalties due to high data movement between the CPU and memory/storage. While processing in main memory can alleviate these penalties, it is becoming increasingly difficult to keep large datasets entirely in main memory. This has led to a recent push for in-storage computation, where processing is performed inside the storage device. We propose TCAM-SSD, a new framework for search-based computation inside the NAND flash memory arrays of a conventional solid-state drive (SSD), which requires lightweight modifications to only the array periphery and firmware. TCAM-SSD introduces a search manager and link table, which can logically partition the NAND flash memory's contents into search-enabled regions and standard storage regions. Together, these light firmware changes enable TCAM-SSD to seamlessly handle block I/O operations, in addition to new search operations, thereby reducing end-to-end execution time and total data movement. We provide an NVMe-compatible interface that provides programmers with the ability to dynamically allocate data on and make use of TCAM-SSD, allowing the system to be leveraged by a wide variety of applications. We evaluate three example use cases of TCAM-SSD to demonstrate its benefits. For transactional databases, TCAM-SSD can mitigate the performance penalties for applications with large datasets, achieving a 60.9% speedup over a conventional system that retrieves data from the SSD and computes using the CPU. For database analytics, TCAM-SSD provides an average speedup of 17.7x over a conventional system for a collection of analytical queries. For graph analytics, we combine TCAM-SSD's associative search with a sparse data structure, speeding up graph computing for larger-than-memory datasets by 14.5%.
Empirical ResultsBrowse all benchmarks →
| Benchmark | Method | Metric | Score | Protocol / Evidence |
|---|---|---|---|---|
| TPC-C · OLTP workload | TCAM-SSD | workload speedup | 60.9% | Oltp Workload · transactions=1 million · search-region=single warehouse · table-entries=3 million · baseline-index=LastName hash indexSource quoteL704: We observe that over the course of the workload, TCAM-SSD achieves a speedup of \urevRW{60.9%} over DBx1000. |
| TPC-H · database analytics (Query 1 and Query 2 | TCAM-SSD | average scan speedup across analytical queries | 17.7× | Database Analytics · queries=Query 1 and Query 2 · scale-factor=100 · scan-table-size=74 GBSource quoteL22: For database analytics, TCAM-SSD \tSG{provides} an average speedup of \urevRW{17.7}× over a conventional system for a collection of analytical queries. |
| TPC-H · database analytics, Query 1 | TCAM-SSD | scan speedup | 18.3× | Database Analytics · query=Query 1 · scale-factor=100 · scan-table-size=74 GBSource quoteL755: For the database that we generate, TCAM-SSD \tRW{on average} speeds up the scan operation for Query~1 by \urevRW{18.3}×, and Query~2 by \urevRW{17.1}×, |
| TPC-H · database analytics, Query 2 | TCAM-SSD | scan speedup | 17.1× | Database Analytics · query=Query 2 · optimization=fused-key · scale-factor=100 · scan-table-size=74 GBSource quoteL755: For the database that we generate, TCAM-SSD \tRW{on average} speeds up the scan operation for Query~1 by \urevRW{18.3}×, and Query~2 by \urevRW{17.1}×, |
| SSSP · vertex traversals, average across evaluated networks | TCAM-SSD (TCAM-256) | performance improvement | 14.5% | Graph Traversal · variant=TCAM-256 · locality=0% · comparison=OOM · index-access-assumption=every access is a DRAM row missSource quoteL902: \tSG{Fourth, because TCAM-256 uses our optimized data structure, it} can further improve the performance for large graphs with vertices with high degrees with an average improvement of {14.5}% and {4.3}% over OOM and TCAM (NP), respectively. |
| SSSP · vertex traversals, average across evaluated networks | TCAM-SSD (TCAM-256) | performance improvement | 4.3% | Graph Traversal · variant=TCAM-256 · locality=0% · comparison=TCAM (NP) · index-access-assumption=every access is a DRAM row missSource quoteL902: \tSG{Fourth, because TCAM-256 uses our optimized data structure, it} can further improve the performance for large graphs with vertices with high degrees with an average improvement of {14.5}% and {4.3}% over OOM and TCAM (NP), respectively. |
BibTeX
@misc{wong2024tcam,
author = {Ryan Wong and Nikita Kim and Kevin Higgs and Sapan Agarwal and Engin Ipek and Saugata Ghose and Ben Feinberg},
title = {{TCAM-SSD: A Framework for Search-Based Computing in Solid-State Drives}},
year = {2024},
eprint = {2403.06938},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2403.06938},
}Ask Althea to put this paper to the test.
Loading related content...