Towards Automatic Lock Removal for Scalable Synchronization - DIStributed Computing 2015
Conference Papers Year : 2015

Towards Automatic Lock Removal for Scalable Synchronization

Abstract

We present a code transformation for concurrent data struc- tures, which increases their scalability without sacrificing correctness. Our transformation takes lock-based code and replaces some of the locking steps therein with optimistic synchronization in order to reduce contention. The main idea is to have each operation perform an optimistic traversal of the data structure as long as no shared memory locations are updated, and then proceed with pessimistic code. The transformed code inherits essential properties of the original one, including linearizability, serializability, and deadlock freedom. Our work complements existing pessimistic transformations that make sequential code thread-safe by adding locks. In essence, we provide a way to optimize such transformations by reducing synchronization bottlenecks (for example, locking the root of a tree). The resulting code scales well and significantly outperforms pessimistic approaches. We further compare our synthesized code to state-of-the-art data structures implemented by experts. We find that its performance is comparable to that achieved by the custom-tailored implementations. Our work thus shows the promise that automated approaches bear for overcoming the difficulty involved in manually hand-crafting concurrent data structures.
Fichier principal
Vignette du fichier
12.pdf (279.74 Ko) Télécharger le fichier
Origin Files produced by the author(s)
Loading...

Dates and versions

hal-01206184 , version 1 (28-09-2015)

Identifiers

Cite

Maya Arbel, Guy Golan-Gueta, Eshcar Hillel, Idit Keidar. Towards Automatic Lock Removal for Scalable Synchronization. DISC 2015, Toshimitsu Masuzawa; Koichi Wada, Oct 2015, Tokyo, Japan. ⟨10.1007/978-3-662-48653-5_12⟩. ⟨hal-01206184⟩

Collections

DISC2015
89 View
239 Download

Altmetric

Share

More