~/talk

Exploring a real life RCU use case for Rust

Talkat Linux Plumbers Conference 2025 · 2025-12-11..12-13· [rust, concurrency]
links:none on file
slides:none on file

A real allocator backend for Zswap called Z block divides blocks into equal slots and keeps a list of partially empty blocks; C uses an RCU list variant that benchmarks faster than the spinlock version. A Rust prototype that mirrors the C RCU lists works but is ugly and unsafe; the real gaps are safe deferred-free (kfree_rcu), a trait bound to expose an rcu_head field, and a minimal list_add_rcu/list_del_rcu API that avoids a full generic RCU list implementation.

AI-written summary · about

  1. 0:00Introduction and problem
  2. 2:10RCU use case in C
  3. 10:02Rust implementation challenges
  4. 16:56Q&A and summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.