Lune

OOPSLA2024顶会

HybridSA: GPU Acceleration of Multi-pattern Regex Matching using Bit Parallelism

Alexis Le Glaunec, Lingkun Kong, Konstantinos Mamouras

摘要

Multi-pattern matching is widely used in modern software for applications requiring high throughput such as protein search, network traffic inspection, virus or spam detection. Graphics Processor Units (GPUs) excel at executing massively parallel workloads. Regular expression (regex) matching is typically performed by simulating the execution of deterministic finite automata (DFAs) or nondeterministic finite automata (NFAs). The natural implementations of these automata simulation algorithms on GPUs are highly inefficient because they give rise to irregular memory access patterns.

This paper presents HybridSA, a heterogeneous CPU-GPU parallel engine for multi-pattern matching. HybridSA uses bit parallelism to efficiently simulate NFAs on GPUs, thus reducing the number of memory accesses and increasing the throughput. Our bit-parallel algorithms extend the classical shift-and algorithm for string matching to a large class of regular expressions and reduce automata simulation to a small number of bitwise operations. We have developed a compiler to translate regular expressions into bit masks, perform optimizations, and choose the best algorithms to run on the GPU. The majority of the regular expressions are accelerated on the GPU, while the patterns that exhibit random memory accesses are executed on the CPU in parallel. We evaluate HybridSA against state-of-the-art CPU and GPU engines, as well as a hybrid combination of the two. HybridSA achieves between 4 and 60 times higher throughput than the state-of-the-art CPU engine and between 4 and 233 times better than the state-of-the-art GPU engine across a collection of real-world benchmarks.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 4 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Static Analysis for Efficient Streaming Tokenization 引用了 Software-hardware codesign for efficient in-memory regular pattern matching
  • Static Analysis for Efficient Streaming Tokenization 引用了 RAP: Reconfigurable Automata Processor
  • Static Analysis for Efficient Streaming Tokenization 引用了 Interleaved Bitstream Execution for Multi-Pattern Regex Matching on GPUs
  • Static Analysis for Efficient Streaming Tokenization 引用了 Regular Expression Matching using Bit Vector Automata
  • Static Analysis for Efficient Streaming Tokenization 引用了 Efficient Matching of Regular Expressions with Lookaround Assertions
  • Software-hardware codesign for efficient in-memory regular pattern matching 引用了 CAMA: Energy and Memory Efficient Automata Processing in Content-Addressable Memories
  • Software-hardware codesign for efficient in-memory regular pattern matching 引用了 Why GPUs are Slow at Executing NFAs and How to Make them Faster
  • RAP: Reconfigurable Automata Processor 引用了 Software-hardware codesign for efficient in-memory regular pattern matching
  • RAP: Reconfigurable Automata Processor 引用了 CAMA: Energy and Memory Efficient Automata Processing in Content-Addressable Memories
  • RAP: Reconfigurable Automata Processor 引用了 Why GPUs are Slow at Executing NFAs and How to Make them Faster
  • RAP: Reconfigurable Automata Processor 引用了 Regular Expression Matching using Bit Vector Automata
  • Interleaved Bitstream Execution for Multi-Pattern Regex Matching on GPUs 引用了 Software-hardware codesign for efficient in-memory regular pattern matching
  • Interleaved Bitstream Execution for Multi-Pattern Regex Matching on GPUs 引用了 Why GPUs are Slow at Executing NFAs and How to Make them Faster
  • Interleaved Bitstream Execution for Multi-Pattern Regex Matching on GPUs 引用了 Regular Expression Matching using Bit Vector Automata
  • Regular Expression Matching using Bit Vector Automata 引用了 Software-hardware codesign for efficient in-memory regular pattern matching
  • Efficient Matching of Regular Expressions with Lookaround Assertions 引用了 Software-hardware codesign for efficient in-memory regular pattern matching
  • Efficient Matching of Regular Expressions with Lookaround Assertions 引用了 Regular Expression Matching using Bit Vector Automata
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. Interleaved Bitstream Execution for Multi-Pattern Regex Matching on GPUsTianao Ge, Xiaowen Chu, Hongyuan LiuMICRO 2025 · 4 次引用
  2. Analyzing Near-Network Hardware Acceleration with Co-Processing on DPUsDimitrios Giouroukis, Dwi P. A. Nugroho, Varun Pandey, Steffen Zeuch 等VLDB 2025 · 3 次引用
  3. RAP: Reconfigurable Automata ProcessorZiyuan Wen, Alexis Le Glaunec, Konstantinos Mamouras, Kaiyuan YangISCA 2025 · 2 次引用
  4. Static Analysis for Efficient Streaming TokenizationAngela W. Li, Yudi Yang, Konstantinos MamourasASPLOS 2026 · 1 次引用

它引用的 Paper8

  1. Why GPUs are Slow at Executing NFAs and How to Make them FasterHongyuan Liu, Sreepathi Pai, Adwait JogASPLOS 2020 · 31 次引用
  2. Software-hardware codesign for efficient in-memory regular pattern matchingLingkun Kong, Qixuan Yu, Agnishom Chattopadhyay, Alexis Le Glaunec 等PLDI 2022 · 23 次引用
  3. Regular Expression Matching using Bit Vector AutomataAlexis Le Glaunec, Lingkun Kong, Konstantinos MamourasOOPSLA 2023 · 22 次引用
  4. Efficient Matching of Regular Expressions with Lookaround AssertionsKonstantinos Mamouras, Agnishom ChattopadhyayPOPL 2024 · 19 次引用
  5. CAMA: Energy and Memory Efficient Automata Processing in Content-Addressable MemoriesYi Huang, Zhiyu Chen, Dai Li, Kaiyuan YangHPCA 2022 · 12 次引用

相关 Paper

  1. Impala: Algorithm/Architecture Co-Design for In-Memory Multi-Stride Pattern MatchingElaheh Sadredini, Reza Rahimi, Marzieh Lenjani, Mircea Stan 等HPCA 2020 · 43 次引用
  2. ngAP: Non-blocking Large-scale Automata Processing on GPUsTianao Ge, Tong Zhang, Hongyuan LiuASPLOS 2024 · 11 次引用
  3. BVAP: Energy and Memory Efficient Automata Processing for Regular Expressions with Bounded RepetitionsZiyuan Wen, Lingkun Kong, Alexis Le Glaunec, Konstantinos Mamouras 等ASPLOS 2024 · 11 次引用
  4. Cognitive Correlative Encoding for Genome Sequence Matching in Hyperdimensional SystemPrathyush Poduval, Zhuowen Zou, Xunzhao Yin, Elaheh Sadredini 等DAC 2021 · 39 次引用
  5. FlexAmata: A Universal and Efficient Adaption of Applications to Spatial Automata Processing AcceleratorsElaheh Sadredini, Reza Rahimi, Marzieh Lenjani, Mircea Stan 等ASPLOS 2020 · 23 次引用
黄昏的海面,两侧是细线勾勒的悬崖