~/talk

Scalable Tokio timer for multi-core machine

Talkat TokioConf 2026 · 2026-04-20..04-22· [rust]
slides:none on file

Claims a multi-core timer bottleneck and shows concrete fixes: a pacing-based UDP flow controller, flamegraphs revealed that splitting runtimes oddly cuts timer overhead, controlled performance tests guide iterations, and numbers show large reductions on many-core machines. Implements per-worker wheels, a cross-thread cancellation queue with delayed cancellation, and settles on a simple mutex plus intrusive list for cross-thread cancels. Results improve throughput when using many workers; enable the ALT timer only for timer-heavy, >8-worker deployments.

AI-written summary · about

  1. 0:00Tokio timers overview
  2. 3:04Rust timer limitations
  3. 6:17Async timer flexibility
  4. 7:01Default Tokio timer UDP
  5. 11:16Optimizing timer futures
  6. 14:05Sharding timer wheel
  7. 17:58Cancellation queue
  8. 24:25Inject queue bottleneck
  9. 28:05Block-in-place impact
  10. 31:24Performance comparison
  11. 33:32Alternative timer use
~/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.