Performance of memory reclamation for lockless synchronization

Thomas E. Hart, Paul E. McKenney, Angela Demke Brown, Jonathan Walpole

Journal of Parallel and Distributed Computing, vol. 67, no. 12, pp. 1270-1285, Academic Press, Inc., May 2007

 

Abstract

<p>Achieving high performance for concurrent applications on modern multiprocessors remains challenging. Many programmers avoid locking to improve performance, while others replace locks with non-blocking synchronization to protect against deadlock, priority inversion, and convoying. In both cases, dynamic data structures that avoid locking require a memory reclamation scheme that reclaims elements once they are no longer in use.</p> <p>The performance of existing memory reclamation schemes has not been thoroughly evaluated.We conduct the first fair and comprehensive comparison of three recent schemes—quiescent-state-based reclamation, epoch-based reclamation, and hazard-pointer-based reclamation—using a flexible microbenchmark. Our results show that there is no globally optimal scheme. When evaluating lockless synchronization, programmers and algorithm designers should thus carefully consider the data structure, the workload, and the execution environment, each of which can dramatically affect the memory reclamation performance.</p> <p>We discuss the consequences of our results for programmers and algorithm designers. Finally, we describe the use of one scheme, quiescentstate- based reclamation, in the context of an OS kernel—an execution environment which is well suited to this scheme.</p>

 

Manuscript

Pdf

 

Bibtex

Bib