~/talk

Precision Timeouts in Zephyr: Past, Present, and Future

links:none on file
slides:none on file

Zephyr timeout benchmarking uses a 100-test benchmark comparing k_timer against k_busy_wait and k_microsleep and finds premature expirations and occasional spikes — sleeps meant to be 1 µs sometimes run >10 ms — due to tick rounding, adding/removing timeouts, and hardware cycle alignment. Fixes raise resolution from 10 ms to ~30.5 µs on Nordic, eliminate several bugs, and a proposed 64-bit timeout spec with rounding-mode and clock-source choices fits in 64 bits with <1% code-size impact and negligible runtime cost.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13Zephyr API calls
  3. 3:38Properties of the subsystem
  4. 5:45Bluetooth example
  5. 8:45Zephyr benchmark
  6. 9:53Ideal results
  7. 11:51Bad results
  8. 12:26Good results
  9. 17:02Ticks per second
  10. 18:31Fixing the problem
  11. 19:29Proposed changes
~/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.