Javascript must be enabled to continue!
NUMA-aware reader-writer locks
View through CrossRef
Non-Uniform Memory Access (NUMA) architectures are gaining importance in mainstream computing systems due to the rapid growth of multi-core multi-chip machines. Extracting the best possible performance from these new machines will require us to revisit the design of the concurrent algorithms and synchronization primitives which form the building blocks of many of today's applications. This paper revisits one such critical synchronization primitive -- the reader-writer lock.
We present what is, to the best of our knowledge, the first family of reader-writer lock algorithms tailored to NUMA architectures. We present several variations which trade fairness between readers and writers for higher concurrency among readers and better back-to-back batching of writers from the same NUMA node. Our algorithms leverage the
lock cohorting
technique to manage synchronization between writers in a NUMA-friendly fashion, binary flags to coordinate readers and writers, and simple distributed reader counter implementations to enable NUMA-friendly concurrency among readers. The end result is a collection of surprisingly simple NUMA-aware algorithms that outperform the state-of-the-art reader-writer locks by up to a factor of 10 in our microbenchmark experiments. To evaluate our algorithms in a realistic setting we also present performance results of the kccachetest benchmark of the
Kyoto-Cabinet
distribution, an open-source database which makes heavy use of pthread reader-writer locks. Our locks boost the performance of kccachetest by up to 40% over the best prior alternatives.
Association for Computing Machinery (ACM)
Title: NUMA-aware reader-writer locks
Description:
Non-Uniform Memory Access (NUMA) architectures are gaining importance in mainstream computing systems due to the rapid growth of multi-core multi-chip machines.
Extracting the best possible performance from these new machines will require us to revisit the design of the concurrent algorithms and synchronization primitives which form the building blocks of many of today's applications.
This paper revisits one such critical synchronization primitive -- the reader-writer lock.
We present what is, to the best of our knowledge, the first family of reader-writer lock algorithms tailored to NUMA architectures.
We present several variations which trade fairness between readers and writers for higher concurrency among readers and better back-to-back batching of writers from the same NUMA node.
Our algorithms leverage the
lock cohorting
technique to manage synchronization between writers in a NUMA-friendly fashion, binary flags to coordinate readers and writers, and simple distributed reader counter implementations to enable NUMA-friendly concurrency among readers.
The end result is a collection of surprisingly simple NUMA-aware algorithms that outperform the state-of-the-art reader-writer locks by up to a factor of 10 in our microbenchmark experiments.
To evaluate our algorithms in a realistic setting we also present performance results of the kccachetest benchmark of the
Kyoto-Cabinet
distribution, an open-source database which makes heavy use of pthread reader-writer locks.
Our locks boost the performance of kccachetest by up to 40% over the best prior alternatives.
Related Results
Kirjanik Valev Uibopuu perekondlik kirjavahetus eksiilis: ühise kirjade ruumi loomine distantsi lühendamise abi
Kirjanik Valev Uibopuu perekondlik kirjavahetus eksiilis: ühise kirjade ruumi loomine distantsi lühendamise abi
Writer Valev Uibopuu (1913–1997) lived in exile from 1943 to 1991. During the whole exile period he carried on an active correspondence. Especially important was the correspondence...
CDK1-dependent N-terminal NuMA phosphorylation promotes dynein-dynactin-NuMA assembly for accurate chromosome segregation
CDK1-dependent N-terminal NuMA phosphorylation promotes dynein-dynactin-NuMA assembly for accurate chromosome segregation
Abstract
The microtubule-based motor dynein and its cofactor dynactin fulfil essential functions throughout the cell cycle, including organelle t...
Locality-Aware Task Scheduling and Data Distribution for OpenMP Programs on NUMA Systems and Manycore Processors
Locality-Aware Task Scheduling and Data Distribution for OpenMP Programs on NUMA Systems and Manycore Processors
Performance degradation due to nonuniform data access latencies has worsened on NUMA systems and can now be felt on-chip in manycore processors. Distributing data across NUMA nodes...
Givi Margvelashvili's “The Kantakt, from the Reading-Life Experiences of a City Writer” as a Metafictional Novel
Givi Margvelashvili's “The Kantakt, from the Reading-Life Experiences of a City Writer” as a Metafictional Novel
Each author happily writes about himself, about the difficulties encountered in writing, about literature, - we read in Roland Duhamel's book “The Poet in the Mirror: About Metalit...
Fish migration through ship locks at the Danube River, Austria
Fish migration through ship locks at the Danube River, Austria
Longitudinal connectivity in the Austrian section of the Danube has improved over the last three decades thanks to the progressive installation of fish passage facilities at hyd...
"Just the Facts, Ma'am" : Reading For Information
"Just the Facts, Ma'am" : Reading For Information
In the last chapter, we looked at how examining pages before actually reading them provides useful advance preparation for young readers at home. Let's look now at the act of readi...
NuMA interaction with chromatin is vital for proper nuclear architecture in human cells
NuMA interaction with chromatin is vital for proper nuclear architecture in human cells
Abstract
NuMA is an abundant long-coiled-coil protein that plays a prominent role in spindle organization during mitosis. In interphase, NuMA is ...
Alūziju izmantojums žurnāla “Ir” virsrakstos
Alūziju izmantojums žurnāla “Ir” virsrakstos
In the press language studies, relatively little attention is paid to the titles in the printed press. Therefore, titles in the magazine “Ir” were studied and analysed from the poi...

