Abstract
AbstractMulti-core scalability presents a major implementation challenge for data system designers today. Traditional methods such as latching no longer scale in today’s highly parallel architectures. While the designer can make use of techniques such as latch-free programming to painstakingly design specialized, highly-performant solutions, such solutions are often intricate to build and difficult to reason about. Of particular interest to data system designers is a class of data structures we call almost-latch-free; such data structures can be made scalable in the common case, but have rare complications (e.g., dynamic resizing) that prevent full latch-free implementations. In this work, we present a new programming framework called Epoch-Protected Version Scheme (EPVS) to make it easy to build such data structures. EPVS makes use of epoch protection to preserve performance in the common case of latch-free operations, while allowing users to specify critical sections that execute under mutual exclusion for the rare, non-latch-free operations. We showcase the use of EPVS-based concurrency primitives in a few practical systems to demonstrate its competitive performance and intuitive guarantees. EPVS is available in open source as part of Microsoft’s FASTER project (Epoch Protected Version Scheme (source code) 2022; Microsoft FASTER 2022).
Funder
Massachusetts Institute of Technology
Publisher
Springer Science and Business Media LLC
Reference54 articles.
1. Intel®oneAPI Threading Building Blocks (oneTBB) Documentation for concurrent_vector. https://www.intel.com/content/www/us/en/develop/documentation/onetbb-do (2021)
2. Epoch Protected Version Scheme (source code). https://aka.ms/epvs (2022)
3. Microsoft FASTER. https://github.com/microsoft/FASTER (2022)
4. Alemany, J., Felten, E.W.: Performance issues in non-blocking synchronization on shared-memory multiprocessors. In: Proceedings of the Eleventh Annual ACM Symposium on Principles of Distributed Computing, PODC’92, New York, NY, USA, pp. 125–134. Association for Computing Machinery (1992)
5. Bershad, B.N.: Practical considerations for lock-free concurrent objects. 9 (2000)