arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.10030cs.ARcs.AIcs.DC
收藏

DMA流式框架:面向高性能AI数据路径的内核级缓冲区协调

The DMA Streaming Framework: Kernel-Level Buffer Orchestration for High-Performance AI Data Paths

Graziano Labs Corp.(格拉齐奥实验室公司)

Marco Graziano

AI总结:

本文提出dmaplane模块,通过内核接口实现缓冲区协调,提升AI数据传输性能,展示跨设备共享、GPU内存集成及端到端推理分离技术。

摘要:

AI传输库高效传输字节,但通常假设缓冲区已正确分配、放置、共享、注册并安全。本文提出dmaplane,一个Linux内核模块,显式实现缓冲区协调。dmaplane通过/dev/dmaplane暴露稳定内核UAPI,整合环形命令通道、DMA缓冲区生命周期管理、dma-buf跨设备共享、内核空间RDMA引擎、NUMA感知分配与验证、基于信用的流控制、低开销可观测性及GPU内存集成。通过测量NUMA跨节点惩罚、持续RDMA负载下的完成安全流控制及GPU BAR映射层级与cudaMemcpy对比评估协调敏感性。同时展示通过RDMA WRITE WITH IMMEDIATE在两台机器间传输KV-cache块并重建张量视图的端到端解耦推理。RDMA测量使用Soft-RoCE,并通过构造区分测量结果与提供者无关属性。

英文摘要:

AI transport libraries move bytes efficiently, but they commonly assume that buffers are already correctly allocated, placed, shared, registered, and safe under completion and teardown pressure. This paper presents dmaplane, a Linux kernel module that makes this missing layer explicit as buffer orchestration. dmaplane exposes a stable kernel UAPI via /dev/dmaplane and composes ring-based command channels, DMA buffer lifecycle management, dma-buf export for cross-device sharing, a kernel-space RDMA engine, NUMA-aware allocation and verification, credit-based flow control, low-overhead observability, and GPU memory integration via PCIe BAR pinning. We evaluate orchestration sensitivity with measurements of NUMA cross-node penalties at DRAM scale, completion-safe flow control under sustained RDMA load, and GPU BAR mapping tiers versus cudaMemcpy. We also demonstrate end-to-end disaggregated inference by transferring KV-cache chunks between two machines using RDMA WRITE WITH IMMEDIATE and reconstructing tensor views on the receiver. RDMA measurements use Soft-RoCE; we distinguish measured results from provider-independent properties by construction.

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

↑