用于高效比较和交换操作的轻量级争用管理
Lightweight Contention Management for Efficient Compare-and-Swap Operations
摘要:
许多并发数据结构的实现都使用了著名的比较交换(CAS)操作,大多数现代多处理器体系结构都支持这种操作来实现线程间同步。CAS操作的一个关键弱点是在存在内存争用的情况下其性能会下降。在这项工作中,我们研究了以下问题:基于软件的竞争管理可以提高硬件提供的CAS操作的效率?我们的性能评估表明,轻量级争用管理支持可以大大提高性能,在中等和高争用水平,而通常只会引起小的开销时,争用低。
英文摘要:
Many concurrent data-structure implementations use the well-known compare-and-swap (CAS) operation, supported in hardware by most modern multiprocessor architectures for inter-thread synchronization. A key weakness of the CAS operation is the degradation in its performance in the presence of memory contention. In this work we study the following question: can software-based contention management improve the efficiency of hardware-provided CAS operations? Our performance evaluation establishes that lightweight contention management support can greatly improve performance under medium and high contention levels while typically incurring only small overhead when contention is low.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。