~/talk

Native Multi-Core Support in mruby/c: Enhancing Performance

Talkat RubyKaigi 2026 · 2026-04-22..04-24· [ruby, embedded-and-hardware]
links:none on file
slides:none on file

mruby/c gains native multi‑core support by extending the TCB and adding a dedicated migration queue to avoid a global lock; task migration happens via a new to function and completes in roughly 1 ms per migration under test. Implementation runs on Raspberry Pi Pico (ARM cores), uses a reference‑count GC, and protects globals with Mutex — a counter increment test reaches 2,000,000 only with Mutex. Fibonacci benchmarks show near 2× speed for large n, with small‑n overhead from locking.

AI-written summary · about

  1. 0:00Introduction
  2. 1:49About mruby/c
  3. 4:40Multi-core support added
  4. 9:40Memory challenges
  5. 13:03Concurrent execution model
  6. 17:24Migration and locking issues
  7. 22:26Migration mechanism
  8. 23:35Benchmark platform
  9. 24:40Fibonacci performance
  10. 26:27Task count scaling
  11. 27:38Locking global variables
  12. 29:45Migration timing
  13. 30:48Summary and future work
~/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.