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

DecLock:一种用于内存解耦的锁分离机制

DecLock: A Case of Decoupled Locking for Disaggregated Memory

Hanze Zhang, Ke Cheng, Rong Chen, Xingda Wei, Haibo Chen

AI总结:

DecLock通过去中心化协调与集中式状态维护分离锁机制,解决内存解耦中NIC争用导致的性能瓶颈,显著提升吞吐量并降低延迟。

摘要:

本文揭示了在内存解耦(DM)环境中,锁机制可能显著降低应用程序的性能,有时甚至降低几个数量级,原因是内存节点(MN)上的网络接口卡(NIC)出现争用。为解决这一问题,我们提出了DecLock,一种针对DM的锁机制,它在计算节点(CN)之间采用去中心化协调进行所有权转移,同时在内存节点(MN)上保留集中式状态维护。DecLock具有协作式队列通知锁特性,该特性在MN上原子地排队等待锁的请求者,使客户端能够通过CN之间的基于消息的通知来转移锁所有权。这种方法为DM应用程序节省了MN-NIC资源,并确保了公平性。评估显示,与最先进的基于RDMA的自旋锁和MCS锁相比,DecLock的吞吐量分别提高了高达43.37倍和1.81倍。此外,DecLock帮助两个DM应用程序(包括一个对象存储和一个真实世界的数据库索引Sherman)在高争用下避免性能下降,吞吐量分别提高了高达35.60倍和2.31倍,并将第99百分位延迟降低了高达98.8%和82.1%。

英文摘要:

This paper reveals that locking can significantly degrade the performance of applications on disaggregated memory (DM), sometimes by several orders of magnitude, due to contention on the NICs of memory nodes (MN-NICs). To address this issue, we present DecLock, a locking mechanism for DM that employs decentralized coordination for ownership transfer across compute nodes (CNs) while retaining centralized state maintenance on memory nodes (MNs). DecLock features cooperative queue-notify locking that queues lock waiters on MNs atomically, enabling clients to transfer lock ownership via message-based notifications between CNs. This approach conserves MN-NIC resources for DM applications and ensures fairness. Evaluations show DecLock achieves throughput improvements of up to 43.37$\times$ and 1.81$\times$ over state-of-the-art RDMA-based spinlocks and MCS locks, respectively. Furthermore, DecLock helps two DM applications, including an object store and a real-world database index (Sherman), avoid performance degradation under high contention, improving throughput by up to 35.60$\times$ and 2.31$\times$ and reducing 99th-percentile latency by up to 98.8% and 82.1%.

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

↑