~/talk

Grow and Shrink - Dynamically Extending the Ruby VM Stack

Talkat RubyKaigi 2018 · 2018-05-31..06-02· [ruby, concurrency]
links:none on file
slides:none on file

MRI gains dynamic per-thread stacks with two concrete implementations: a stretch approach that allocates a larger region and copies the stack, and a chain approach that keeps a small live stack plus movable internal stack. Default thread stack is 1MB default and new env vars set initial and maximum sizes. Implementation fixes all internal pointers, copies C-level argument arrays, uses stack overflow detection, and employs page-protect to catch stale pointers. On Linux this cuts per-thread memory by up to 30% at about a 6% average runtime cost.

AI-written summary · about

  1. 0:00Introduction
  2. 3:44Ruby VM stack basics
  3. 11:14Stack stretch extension
  4. 21:36Alternative chain method
  5. 28:08Memory usage evaluation
  6. 33:45Future directions and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.