基于FPGA的JSON数据原始过滤
Raw Filtering of JSON Data on FPGAs
摘要:
许多大数据应用程序都包括对半结构化数据格式(如JSON)的数据流的处理。这种格式的一个缺点是,应用程序可能会花费大量的处理时间来无选择地解析所有数据。为了缓解这个问题,提出了原始过滤的概念,其想法是在昂贵的解析阶段之前从流中移除数据。然而,由于原始数据的准确过滤通常仅在数据已经被解析之后才可能,因此原始过滤器被设计为在允许误报的意义上是近似的,以便有效地实现。相反,以前提出的基于CPU的原始过滤技术,仅限于字符串匹配,我们提出了基于FPGA的原语过滤字符串,数字和数字范围。此外,还提出了一种尊重JSON数据基本结构的原语,可用于进一步提高引入的原始过滤器的准确性。所提出的原始过滤器原语的设计,以允许其组成根据一个给定的过滤器表达式的查询。因此,可以为FPGA创建复杂的原始过滤器,从而大幅减少生成的误报量,特别是对于物联网工作负载。由于存在准确性和资源消耗之间的权衡,我们使用RiotBench基准测试中的不同查询来评估原语以及组成的原始过滤器。我们的研究结果表明,高达94.3%的原始数据可以过滤,而不会产生任何观察到的假阳性,只使用几百个LUT。
英文摘要:
Many Big Data applications include the processing of data streams on semi-structured data formats such as JSON. A disadvantage of such formats is that an application may spend a significant amount of processing time just on unselectively parsing all data. To relax this issue, the concept of raw filtering is proposed with the idea to remove data from a stream prior to the costly parsing stage. However, as accurate filtering of raw data is often only possible after the data has been parsed, raw filters are designed to be approximate in the sense of allowing false-positives in order to be implemented efficiently. Contrary to previously proposed CPU-based raw filtering techniques that are restricted to string matching, we present FPGA-based primitives for filtering strings, numbers and also number ranges. In addition, a primitive respecting the basic structure of JSON data is proposed that can be used to further increase the accuracy of introduced raw filters. The proposed raw filter primitives are designed to allow for their composition according to a given filter expression of a query. Thus, complex raw filters can be created for FPGAs which enable a drastical decrease in the amount of generated false-positives, particularly for IoT workload. As there exists a trade-off between accuracy and resource consumption, we evaluate primitives as well as composed raw filters using different queries from the RiotBench benchmark. Our results show that up to 94.3% of the raw data can be filtered without producing any observed false-positives using only a few hundred LUTs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。