基于Synchrobench的不同STM并发控制协议性能比较
Performance Comparison of Various STM Concurrency Control Protocols Using Synchrobench
摘要:
为共享内存的多处理器系统编写并发程序是一场噩梦。这阻碍了用户充分利用多处理器的潜力。软件事务存储器(STM)是一种很有前途的并发编程范式,它解决了多处理器系统编程的难题。本文实现了BTO(Basic Timestamp Ordering)、SGT(Serialization Graph Testing)和MVTO(Multi-Version Timestamp Ordering)并发控制协议,并建立了一个STM(Software Transmittance Memory)库来评估这些协议的性能。遵循延迟写入方法来实现STM。利用STM库中的事务实现了SET数据结构。并将此事务SET作为测试应用程序来评估STM。协议的性能进行了严格的比较,对链表模块的Synchrobench基准。链表模块采用惰性表、无锁表、锁耦合表和弹性软件事务存储器ESTM实现SET数据结构。我们的分析表明,对于线程数大于60和更新率为70%,BTO采取(17%至29%)和(6%至24%)更少的CPU时间,每个线程时,与懒惰列表和锁耦合列表相比。与lazy-list和lock-coupling list相比,MVTO每个线程占用的CPU时间分别减少了(13%到24%)和(3%到24%)。BTO和MVTO具有类似的每个线程CPU时间。BTO和MVTO的表现优于SGT 9%至36%。
英文摘要:
Writing concurrent programs for shared memory multiprocessor systems is a nightmare. This hinders users to exploit the full potential of multiprocessors. STM (Software Transactional Memory) is a promising concurrent programming paradigm which addresses woes of programming for multiprocessor systems. In this paper, we implement BTO (Basic Timestamp Ordering), SGT (Serialization Graph Testing) and MVTO(Multi-Version Time-Stamp Ordering) concurrency control protocols and build an STM(Software Transactional Memory) library to evaluate the performance of these protocols. The deferred write approach is followed to implement the STM. A SET data structure is implemented using the transactions of our STM library. And this transactional SET is used as a test application to evaluate the STM. The performance of the protocols is rigorously compared against the linked-list module of the Synchrobench benchmark. Linked list module implements SET data structure using lazy-list, lock-free list, lock-coupling list and ESTM (Elastic Software Transactional Memory). Our analysis shows that for a number of threads greater than 60 and update rate 70%, BTO takes (17% to 29%) and (6% to 24%) less CPU time per thread when compared against lazy-list and lock-coupling list respectively. MVTO takes (13% to 24%) and (3% to 24%) less CPU time per thread when compared against lazy-list and lock-coupling list respectively. BTO and MVTO have similar per thread CPU time. BTO and MVTO outperform SGT by 9% to 36%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。