Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Efficient Userspace Optimistic Spinning Locks

Linux Plumbers Conference via YouTube

Overview

Explore efficient userspace optimistic spinning locks in this Linux Plumbers Conference talk. Dive into the limitations of traditional pthread library locking functions and discover a hybrid spinning/sleeping lock solution. Learn how this new approach combines the best attributes of sleeping and spinning locks, offering improved locking throughput and reduced lock cacheline contention. Understand the mechanics of userspace and kernel spinning, queue-based waiting, and adaptive sleep strategies. Gain insights into optimizing lock performance for large NUMA systems and applications with high concurrency demands. Cover topics such as lock starvation prevention, the "oil filter" concept, and improvements to optimistic spinning protocols (OSP).

Syllabus

Introduction
Locking in Userspace
AdvantagesDisadvantages
Limitations
Optimistic Spinning Filter
Optimistic Spinning in the Kernel
Problems with OSP
Improving OSP
Lock starvation
Oil filter
Mutex
OSP
Critical Section

Taught by

Linux Plumbers Conference

Reviews

Start your review of Efficient Userspace Optimistic Spinning Locks

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.