指定并验证RDMA同步(扩展版本)
Specifying and Verifying RDMA Synchronisation (Extended Version)
AI总结:
本文提出RDMA_TSO_RMW语义,用于验证远程锁和强RDMA模型,填补远程同步验证的空白。
摘要:
远程直接内存访问(RDMA)允许一台机器直接读取和写入远程机器的内存,从而实现高吞吐量、低延迟的数据传输。确保RDMA程序的正确性只有最近才有可能通过正式化$\text{RDMA}^\text{TSO}$语义(描述RDMA网络在TSO CPU上的行为)来实现。然而,这种语义目前缺乏对远程同步的正式化描述,这意味着常见的抽象如锁的实现无法被验证。在本文中,我们通过提出$\text{RDMA}^{\text{TSO}}_{\text{RMW}}$,即第一个描述在TSO下远程'读-修改-写'(RMW)指令行为的语义,填补了这一空白。结果表明,远程RMW操作较弱,仅能保证与其他远程RMW操作的原子性。因此,我们构建了一组可组合的同步抽象,从$\text{RDMA}^{\text{WAIT}}_{\text{RMW}}$库开始。基于$\text{RDMA}^{\text{WAIT}}_{\text{RMW}}$,我们指定了、实现了并验证了三种适用于不同场景的远程锁。此外,我们还发展了强RDMA模型的概念,$\text{RDMA}^{\text{SC}}_{\text{RMW}}$,这类似于共享内存架构中的顺序一致性。我们的库旨在与现有的高性能库LOCO兼容,从而确保组合性和可验证性。
英文摘要:
Remote direct memory access (RDMA) allows a machine to directly read from and write to the memory of remote machine, enabling high-throughput, low-latency data transfer. Ensuring correctness of RDMA programs has only recently become possible with the formalisation of $\text{RDMA}^\text{TSO}$ semantics (describing the behaviour of RDMA networking over a TSO CPU). However, this semantics currently lacks a formalisation of remote synchronisation, meaning that the implementations of common abstractions such as locks cannot be verified. In this paper, we close this gap by presenting $\text{RDMA}^{\text{TSO}}_{\text{RMW}}$, the first semantics for remote `read-modify-write' (RMW) instructions over TSO. It turns out that remote RMW operations are weak and only ensure atomicity against other remote RMWs. We therefore build a set of composable synchronisation abstractions starting with the $\text{RDMA}^{\text{WAIT}}_{\text{RMW}}$ library. Underpinned by $\text{RDMA}^{\text{WAIT}}_{\text{RMW}}$, we then specify, implement and verify three classes of remote locks that are suitable for different scenarios. Additionally, we develop the notion of a strong RDMA model, $\text{RDMA}^{\text{SC}}_{\text{RMW}}$, which is akin to sequential consistency in shared memory architectures. Our libraries are built to be compatible with an existing set of high-performance libraries called LOCO, which ensures compositionality and verifiability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。