带锁的分层MCS锁的正确性
Correctness of Hierarchical MCS Locks with Timeout
摘要:
这份手稿作为一个正确性证明的分层MCS锁与并行编程(HMCS-T),在我们的论文中描述的标题为“一个有效的Abortable-locking Protocol for Multi-level NUMA Systems”出现在第22届ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming。HMCS-T是一个非常复杂的协议。系统是有状态的;先前获取努力的价值影响随后的获取努力。此外,继承者、前任、祖先和后代的状态影响协议遵循的步骤。使协议完全非阻塞的能力导致对\texttt{next}字段的修改,这导致在获取和释放中偏离原始MCS锁定协议。在一些地方,无条件字段更新被SWAP或CAS操作取代。我们遵循一个多步骤的方法来证明HMCS-T的正确性。为了证明HMCS-T锁的正确性,我们使用了Spin模型检验。模型检验即使模拟少量线程也会导致组合爆炸。首先,我们理解证明树中单个级别锁的安全属性所需的最小、足够的配置。我们构建HMCS-T锁,代表这些配置。我们对这些配置进行了模型检验,证明了HMCS-T锁组件的正确性。最后,基于这些事实,我们从逻辑上论证了HMCS-T的正确性<n>。
英文摘要:
This manuscript serves as a correctness proof of the Hierarchical MCS locks with Timeout (HMCS-T) described in our paper titled "An Efficient Abortable-locking Protocol for Multi-level NUMA Systems" appearing in the proceedings of the 22nd ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming. HMCS-T is a very involved protocol. The system is stateful; the values of prior acquisition efforts affect the subsequent acquisition efforts. Also, the status of successors, predecessors, ancestors, and descendants affect steps followed by the protocol. The ability to make the protocol fully non-blocking leads to modifications to the \texttt{next} field, which causes deviation from the original MCS lock protocol both in acquisition and release. At several places, unconditional field updates are replaced with SWAP or CAS operations. We follow a multi-step approach to prove the correctness of HMCS-T. To demonstrate the correctness of the HMCS-T lock, we use the Spin model checking. Model checking causes a combinatorial explosion even to simulate a handful of threads. First, we understand the minimal, sufficient configurations necessary to prove safety properties of a single level of lock in the tree. We construct HMCS-T locks that represent these configurations. We model check these configurations, which proves the correctness of components of an HMCS-T lock. Finally, building upon these facts, we argue logically for the correctness of HMCS-T<n>.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。