~/talk

Ticket Spinlocks in Zephyr RTOS: What, Where & Why

links:none on file
slides:none on file

Zephyr gains a ticket spinlocks option that replaces the single-flag spinlock with a two-word ticket/owner scheme, plus a new spinlock fairness test that ran on 4-core Arc and RISC‑V boards and in the Synopsys simulator. On bare hardware and in simulation ticket locks restore per‑core fairness (previously one core could monopolize a lock), at the cost of one extra atomic increment and a couple more barriers. The feature is experimental; it works in CI and on hardware but still shows corner cases under host scheduling/virtualization and on platforms lacking cross‑core atomics.

AI-written summary · about

  1. 0:00Ticket spinlocks in Zephyr
  2. 1:05Investigating spinlocks
  3. 5:02Spinlock fairness issues
  4. 10:00Spinlock fairness test
  5. 12:35Hardware impact on fairness
  6. 14:24Ticket spinlocks solve fairness
  7. 19:06Testing on platforms
  8. 22:38Performance impact
  9. 24:24Implementation issues
  10. 29:04Status and future plans
  11. 32:01Q&A
~/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.