~/talk

Garbage Collection Semantics

Talkat GopherCon Singapore 2019 · on Friday, 2019-05-03· [go]
slides:none on file

Explains practical Go GC behavior: three phases (mark setup stop‑the‑world, concurrent marking, mark termination stop‑the‑world) with typical stop times ~10–30µs and ~60–90µs, the GC percentage default 100% means new allocations may equal live heap before next cycle, the collector takes 25% CPU for marking, heavy allocators get a proportional mark assist, sweeping runs later during new allocations, pacing can start collections early, and reducing allocation volume (not increasing GC interval) raises useful work between collections.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:47Heap memory model
  3. 3:57Garbage collection phases
  4. 7:30Mark setup and write barrier
  5. 9:17Mark assist and CPU usage
  6. 10:24Mark termination and cleanup
  7. 11:30Sweeping after collection
  8. 14:04GC percentage explained
  9. 16:35Understanding GC traces
  10. 22:36Pacing algorithm and latency
  11. 24:22Reducing allocations impact
  12. 25:23Latency costs during collection
  13. 26:27Key takeaways and summary
~/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.