arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1210.5093cs.DCcs.FL
收藏

多核、SIMD和云计算环境下的推测并行DFA成员测试

A Speculative Parallel DFA Membership Test for Multicore, SIMD and Cloud Computing Environments

Yousun Ko, Minyoung Jung, Yo-Sub Han, Bernd Burgstaller

摘要:

我们提出的技术,并行化的确定性有限自动机(DFA)的成员资格测试。我们的方法通过使用推测并行匹配多个字节来搜索任意正则表达式。我们将输入字符串划分为块,并行匹配块,并组合匹配结果。我们的并行匹配算法利用结构DFA属性,以尽量减少投机开销。与以前的方法不同,我们的推测是无故障的,即,(1)保持了顺序语义,以及(2)完全避免了减速。在具有用于索引内存加载的SIMD查询操作的架构上,我们的匹配操作是完全向量化的。建议的负载平衡方案使用一个离线分析步骤,以确定每个participating处理器的匹配能力。基于匹配能力,DFA匹配在诸如云计算环境的非同构并行架构上负载平衡。我们评估了我们的投机DFA成员测试的一组代表性的基准,从Perl兼容的正则表达式(PCRE)库和PROSITE蛋白质数据库。评估在英特尔众核测试实验室(英特尔MTL)的4 CPU(40核)共享内存节点、用于8路完全矢量化SIMD执行的英特尔AVX2 RISC模拟器以及Amazon EC2计算云上的20节点(288核)群集上进行。

英文摘要:

We present techniques to parallelize membership tests for Deterministic Finite Automata (DFAs). Our method searches arbitrary regular expressions by matching multiple bytes in parallel using speculation. We partition the input string into chunks, match chunks in parallel, and combine the matching results. Our parallel matching algorithm exploits structural DFA properties to minimize the speculative overhead. Unlike previous approaches, our speculation is failure-free, i.e., (1) sequential semantics are maintained, and (2) speed-downs are avoided altogether. On architectures with a SIMD gather-operation for indexed memory loads, our matching operation is fully vectorized. The proposed load-balancing scheme uses an off-line profiling step to determine the matching capacity of each par- ticipating processor. Based on matching capacities, DFA matches are load-balanced on inhomogeneous parallel architectures such as cloud computing environments. We evaluated our speculative DFA membership test for a representative set of benchmarks from the Perl-compatible Regular Expression (PCRE) library and the PROSITE protein database. Evaluation was conducted on a 4 CPU (40 cores) shared-memory node of the Intel Manycore Testing Lab (Intel MTL), on the Intel AVX2 SDE simulator for 8-way fully vectorized SIMD execution, and on a 20-node (288 cores) cluster on the Amazon EC2 computing cloud.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑