用于RISC-V Linux系统上不规则数据传输的直接内存访问控制器(DMAC)
A Direct Memory Access Controller (DMAC) for Irregular Data Transfers on RISC-V Linux Systems
AI总结:
针对经典基于描述符的DMAC在处理小单位不规则传输时效率低下的问题,提出一种优化的轻量级DMAC,通过轻量描述符格式和低开销推测性预取方案,在RISC-V SoC上显著降低传输延迟并提升总线利用率,同时减少硬件资源占用。
摘要:
随着现代机器学习应用推动计算系统的异构性日益增强,内存系统在高效处理任意且要求更高的传输方面面临的压力不断增加。基于描述符的直接内存访问控制器(DMAC)通过将内存传输与处理单元解耦来执行此类传输。在处理小单位大小的任意传输时,经典的基于描述符的DMAC效率低下。DMAC采用的过大描述符大小和处理描述符的串行特性导致在建立传输时产生巨大的静态开销。为了解决这种低效问题,我们提出了一种基于描述符的DMAC,经过优化以高效处理小单位大小的任意传输。我们在基于AXI4的DMAC中实现了一种轻量级描述符格式。我们通过实现一种低开销的推测性描述符预取方案进一步提高性能,且在预测错误的情况下不会产生额外的延迟惩罚。我们的DMAC被集成到支持64位Linux的RISC-V SoC中,并在Kintex FPGA上进行仿真以评估其性能。与现成的基于描述符的DMAC IP相比,我们实现了1.66倍的传输启动延迟降低,在具有64字节长度传输的理想内存系统中将总线利用率提高了2.5倍,同时所需的查找表减少11%,触发器减少23%,且不使用任何块RAM。在深度内存系统中,我们可以在64字节长度传输下将总线利用率的优势扩大到3.6倍。我们在GlobalFoundries的GF12LP+节点上综合了我们的DMAC,实现了超过1.44 GHz的时钟频率,且仅占用49.5 kGE。
英文摘要:
With the ever-growing heterogeneity in computing systems, driven by modern machine learning applications, pressure is increasing on memory systems to handle arbitrary and more demanding transfers efficiently. Descriptor-based direct memory access controllers (DMACs) allow such transfers to be executed by decoupling memory transfers from processing units. Classical descriptor-based DMACs are inefficient when handling arbitrary transfers of small unit sizes. Excessive descriptor size and the serialized nature of processing descriptors employed by the DMAC lead to large static overheads when setting up transfers. To tackle this inefficiency, we propose a descriptor-based DMAC optimized to efficiently handle arbitrary transfers of small unit sizes. We implement a lightweight descriptor format in an AXI4-based DMAC. We further increase performance by implementing a low-overhead speculative descriptor prefetching scheme without additional latency penalties in the case of a misprediction. Our DMAC is integrated into a 64-bit Linux-capable RISC-V SoC and emulated on a Kintex FPGA to evaluate its performance. Compared to an off-the-shelf descriptor-based DMAC IP, we achieve 1.66x less latency launching transfers, increase bus utilization up to 2.5x in an ideal memory system with 64-byte-length transfers while requiring 11% fewer lookup tables, 23% fewer flip-flops, and no block RAMs. We can extend our lead in bus utilization to 3.6x with 64-byte-length transfers in deep memory systems. We synthesized our DMAC in GlobalFoundries' GF12LP+ node, achieving a clock frequency of over 1.44 GHz while occupying only 49.5 kGE.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。