# RCU in Open vSwitch Userspace

> Episode of [OVS Orbit](https://podistic.com/podcast/ovs-orbit.md) · Published April 7, 2018 · Duration 37:00 · Episode 54, season 1

- **Listen on Podistic:** https://podistic.com/episode/rcu-in-open-vswitch-userspace
- **Audio:** https://ovsorbit.org/episode-54.mp3 (audio/mpeg)

## About this episode

This is the first in a series of Open vSwitch tech talks that we are starting to run internally at VMware every week or two. This episode is particularly about [read-copy-update](https://en.wikipedia.org/wiki/Read-copy-update), or RCU for short, which is a synchronization technique that allows reads to be very cheap (almost free), with some memory cost. This talk covers reasons why RCU can be preferred over other techniques, such as [readers-writer locks](https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock), and its relationship with lockless synchronization and reference counts. It also covers some of the RCU API within OVS (and why OVS has its own API instead of using [liburcu](http://liburcu.org/)). 

The [ovs-rcu.h](https://github.com/openvswitch/ovs/blob/master/lib/ovs-rcu.h) header from the OVS source repository is useful reading along with this episode. 

OVS Orbit is produced by [Ben Pfaff](mailto:blp@ovn.org). The intro music in this episode is [Drive](http://dig.ccmixter.org/files/AlexBeroza/43098), featuring cdk and DarrylJ, copyright 2013, 2016 by Alex. The bumper music is [Yeah Ant](http://dig.ccmixter.org/files/speck/42100) featuring Wired Ant and Javolenus, copyright 2013 by Speck. The outro music is [Space Bazooka](http://dig.ccmixter.org/files/Kirkoid/43005) featuring Doxen Zsigmond, copyright 2013 by Kirkoid. All content is licensed under a Creative Commons [Attribution 3.0 Unported (CC BY 3.0)](http://creativecommons.org/licenses/by/3.0/) license.
