~/talk

Go's work stealing scheduler

Talkat dotGo 2017 · on Monday, 2017-11-06· [go]
name:JBD
links:none on file
slides:none on file

Go’s scheduler distributes runnable goroutines onto a small pool of OS threads using work-stealing to avoid a global lock and spinning threads to reduce context switches. It introduces work stealing in version 1.1, gives each processor a local run queue, and checks the global queue 1/16 of the time. Spinning occurs in three concrete cases, and the execution tracer is the recommended tool to visualize underutilized cores and diagnose contention patterns.

AI-written summary · about

  1. 0:00Start
  2. 1:19outline
  3. 1:45scheduling?
  4. 2:19go's runtime scheduler
  5. 2:50processors, threads goroutines
  6. 5:41challenges
  7. 6:38work sharing or stealing?
  8. 8:20work stealing
  9. 10:06spinning: goroutine to run
  10. 10:45spinning: processor assignment
  11. 10:58spinning: warm-up
~/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.