Computer Science · Computer Networks and Communications
Exploiting Deferred Destruction: An Analysis of . . .
Paul E. McKenney, Jonathan Walpole
See on the mapAbstract
The performance of synchronization instructions on shared memory multiprocessors (SMMP) has declined dramatically compared to the performance of simple instructions. As a result, operating system developers for SMMPs have sought out synchronization algorithms that avoid using these instructions, especially in commonly executed paths. One such algorithm that has been applied successfully in state-of-the-art SMMP operating systems is Read-Copy Update (RCU). RCU is a reader-writer synchronization algorithm that uses multi-version and deferred-destruction techniques to allow readers to execute in parallel with writers, while avoiding expensive synchronization instructions. For read-mostly scenarios, which occur frequently in operating systems in the guise of configuration and routing structures that track infrequently changing external state, this approach leads to significant performance and scalability improvements. However, successful use of RCU poses software engineering challenges because it can require reorganization of code and transformation of some existing algorithms. In this paper we describe the conceptual basis for RCU, outline the work that contributed to its development, and detail how it can be implemented efficiently in an SMMP operating system kernel. We then analyse its performance in comparison with other synchronization mechanisms. To address the software engineering challenges posed by RCU, we introduce a set of transformational design patterns mined from various uses of RCU in production systems, including the Linux 2.6 kernel. Finally, we discuss the impact on RCU of potential future architectural trends and outline some of RCU’s open research challenges.