arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.14349cs.DBcs.AR
收藏

Relational Memory:对列和列的本机内存访问

Relational Memory: Native In-Memory Accesses on Rows and Columns

Shahin Roozkhosh, Denis Hoornaert, Ju Hyoung Mun, Tarikul Islam Papon, Ahmed Sanaullah, Ulrich Drepper, Renato Mancuso, Manos Athanassoulis

摘要:

分析数据库系统通常被设计为使用列优先的数据布局来仅访问所需的字段。另一方面,行优先存储数据对于访问、插入或更新整个行非常有效。在运行时将行转换为列是昂贵的,因此,许多分析系统以行优先的形式摄取数据,并在后台将其转换为列,以方便将来的分析查询。如果我们总是能够有效地访问所需的列集,那么这种设计会有什么变化呢?为了解决这个问题,我们提出了一种全新的方法来进行数据从行到列的转换。我们基于嵌入式平台的最新进展,采用可重新编程逻辑来设计行和列上的本机内存访问。我们的方法,称为关系内存,依赖于一个基于FPGA的加速器,它位于CPU和主内存之间,并透明地将基本数据转换为任何一组列,在运行时开销最小。这种设计允许访问任何列组,就好像它已经存在于内存中一样。我们在实际硬件中实现和部署关系内存,我们表明,我们可以访问所需的列高达1.63倍的速度比访问他们从行的对应,同时匹配的性能的纯列访问低投影,并优于它高达1.87倍的投影(和元组重建成本)的增加。此外,我们的方法可以很容易地扩展到支持卸载到硬件的许多操作,例如,选择、分组、聚合和连接,具有极大地简化软件逻辑和加速查询执行的潜力。

英文摘要:

Analytical database systems are typically designed to use a column-first data layout to access only the desired fields. On the other hand, storing data row-first works great for accessing, inserting, or updating entire rows. Transforming rows to columns at runtime is expensive, hence, many analytical systems ingest data in row-first form and transform it in the background to columns to facilitate future analytical queries. How will this design change if we can always efficiently access only the desired set of columns? To address this question, we present a radically new approach to data transformation from rows to columns. We build upon recent advancements in embedded platforms with re-programmable logic to design native in-memory access on rows and columns. Our approach, termed Relational Memory, relies on an FPGA- based accelerator that sits between the CPU and main memory and transparently transforms base data to any group of columns with minimal overhead at runtime. This design allows accessing any group of columns as if it already exists in memory. We implement and deploy Relational Memory in real hardware, and we show that we can access the desired columns up to 1.63x faster than accessing them from their row-wise counterpart, while matching the performance of a pure columnar access for low projectivity, and outperforming it by up to 1.87x as projectivity (and tuple re-construction cost) increases. Moreover, our approach can be easily extended to support offloading of a number of operations to hardware, e.g., selection, group by, aggregation, and joins, having the potential to vastly simplify the software logic and accelerate the query execution.

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

↑