A Template for Implementing Fast Lock-free Trees Using HTM

被引:8
|
作者
Brown, Trevor [1 ]
机构
[1] Technion, Haifa, Israel
基金
加拿大自然科学与工程研究理事会;
关键词
HARDWARE TRANSACTIONAL MEMORY; SWAP;
D O I
10.1145/3087801.3087834
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Algorithms that use hardware transactional memory (HTM) must provide a software-only fallback path to guarantee progress. The design of the fallback path can have a profound impact on performance. If the fallback path is allowed to run concurrently with hardware transactions, then hardware transactions must be instrumented, adding significant overhead. Otherwise, hardware transactions must wait for any processes on the fallback path, causing concurrency bottlenecks, or move to the fallback path. We introduce an approach that combines the best of both worlds. The key idea is to use three execution paths: an HTM fast path, an HTM middle path, and a software fallback path, such that the middle path can run concurrently with each of the other two. The fast path and fallback path do not run concurrently, so the fast path incurs no instrumentation overhead. Furthermore, fast path transactions can move to the middle path instead of waiting or moving to the software path. We demonstrate our approach by producing an accelerated version of the tree update template of Brown et al., which can be used to implement fast lock-free data structures based on down-trees. We used the accelerated template to implement two lock-free trees: a binary search tree (BST), and an (a, b)-tree (a generalization of a B-tree). Experiments show that, with 72 concurrent processes, our accelerated (a, b)-tree performs between 4.0x and 4.2x as many operations per second as an implementation obtained using the original tree update template.
引用
收藏
页码:293 / 302
页数:10
相关论文
共 50 条
  • [1] Fast Concurrent Lock-Free Binary Search Trees
    Natarajan, Aravind
    Mittal, Neeraj
    ACM SIGPLAN NOTICES, 2014, 49 (08) : 317 - 328
  • [2] Lock-free Contention Adapting Search Trees
    Winblad, Kjell
    Sagonas, Konstantinos
    Jonsson, Bengt
    SPAA'18: PROCEEDINGS OF THE 30TH ACM SYMPOSIUM ON PARALLELISM IN ALGORITHMS AND ARCHITECTURES, 2018, : 121 - 132
  • [3] Efficient Lock-free Binary Search Trees
    Chatterjee, Bapi
    Nguyen, Nhan
    Tsigas, Philippas
    PROCEEDINGS OF THE 2014 ACM SYMPOSIUM ON PRINCIPLES OF DISTRIBUTED COMPUTING (PODC'14), 2014, : 322 - 331
  • [4] Lock-free Contention Adapting Search Trees
    Winblad, Kjell
    Sagonas, Konstantinos
    Jonsson, Bengt
    ACM TRANSACTIONS ON PARALLEL COMPUTING, 2021, 8 (02)
  • [5] A Fast Lock-Free Internal Binary Search Tree
    Ramachandran, Arunmoezhi
    Mittal, Neeraj
    PROCEEDINGS OF THE 16TH INTERNATIONAL CONFERENCE ON DISTRIBUTED COMPUTING AND NETWORKING, 2015,
  • [6] Lock-free queues
    Marginean, Petru
    DR DOBBS JOURNAL, 2008, 33 (07): : 43 - 47
  • [7] Fast and Scalable, Lock-Free k-FIFO Queues
    Kirsch, Christoph M.
    Lippautz, Michael
    Payer, Hannes
    PARALLEL COMPUTING TECHNOLOGIES (PACT 2013), 2013, 7979 : 208 - 223
  • [8] Application of Lock-Free Queue in a Fast Command Relay Software
    Wang Sen
    Zhao Qi
    Feng Wen-quan
    2009 SECOND INTERNATIONAL CONFERENCE ON FUTURE INFORMATION TECHNOLOGY AND MANAGEMENT ENGINEERING, FITME 2009, 2009, : 572 - 575
  • [9] Lock-free reference counting
    David L. Detlefs
    Paul A. Martin
    Mark Moir
    Guy L. Steele Jr.
    Distributed Computing, 2002, 15 : 255 - 271
  • [10] Lock-free collective operations
    Supalov, A
    RECENT ADVANCES IN PARALLEL VIRTUAL MACHINE AND MESSAGE PASSING INTERFACE, 2003, 2840 : 276 - 285