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

REMOP: 远程内存感知的算子优化

REMOP: REmote-Memory-aware OPerator Optimization

University of Toronto(多伦多大学);Confluent Inc.(Confluent公司);Concordia University(康考迪亚大学);Microsoft Corporation(微软公司)

Shiquan Zhang, Yunhao Mao, Yuqiu Zhang, Gengrui Zhang, Jeyhun Karimov, Hans-Arno Jacobsen

AI总结:

针对远程内存环境下查询处理中数据传输轮次过多的问题,提出REMOP框架,通过轮次感知的算子内内存策略优化内存溢出执行,在DuckDB中实现三种算子,减少高达97%的传输轮次和48%的算子运行时间。

摘要:

远程和分离内存层扩展了分析数据库引擎的有效内存容量,但也重塑了内存溢出查询处理的成本结构。当算子溢出到本地DRAM之外时,将页面移动到远程内存既会产生数据传输时间,也会产生每次传输的固定往返延迟。经典的算子分析和缓冲区分配启发式方法主要通过最小化总I/O量来针对磁盘溢出。在远程内存下,这些策略可能不是最优的,因为它们可能触发过多的传输轮次。我们提出了REMOP,一个远程内存感知的算子优化框架,它使用传输轮次感知的算子内内存策略来改善内存预算紧张下的内存溢出执行。REMOP将传输轮次数引入延迟成本模型,并推导出算子特定的缓冲区划分策略,在DuckDB中为阻塞嵌套循环连接、外部归并排序和外部哈希连接实例化了该方法。我们在双节点计算-内存测试平台上的评估表明,在溢出密集的微基准测试中,REMOP减少了高达97%的传输轮次和高达48%的算子运行时间,并将溢出TPC-H和TPC-DS查询的平均运行时间分别降低了22.7%和26.4%。

英文摘要:

Remote and disaggregated memory tiers expand the effective memory capacity of analytical database engines, but they also reshape the cost structure of out-of-memory query processing. When an operator spills beyond local DRAM, moving pages to remote memory incurs both data-transfer time and a fixed round-trip latency per transfer. Classical operator analyses and buffer-allocation heuristics primarily target disk spilling by minimizing total I/O volume. Under remote memory, these strategies can be suboptimal because they may trigger excessive transfer rounds. We present REMOP, a remote-memory-aware operator optimization framework that uses transfer-round-aware intra-operator memory policies to improve out-of-memory execution under tight memory budgets. REMOP introduces the number of transfer rounds into the latency cost model and derives operator-specific buffer-partitioning strategies, instantiating the approach for blocked nested-loop join, external merge sort, and external hash join in DuckDB. Our evaluation on a two-node compute-memory testbed shows that REMOP reduces transfer rounds by up to 97% and operator runtime by up to 48% on spill-heavy microbenchmarks, and lowers the average runtime of spilling TPC-H and TPC-DS queries by 22.7% and 26.4% end-to-end.

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

↑