~/talk

Respecting Memory Limits In Go

Talkat GopherCon Europe 2022 · 2022-07-28..07-31· [go]
slides:none on file

Go 1.19 adds a soft memory limit that enforces a total-process cap (heap plus runtime metadata), can return memory to the OS, and lets GOGC be driven by absolute limits rather than only a ratio. A demo shows thrashing when the limit approaches live heap (example: live 40 MB, GOGC changes push GCCPU to ~55%), so the implementation throttles GC CPU to avoid stalls (goal: ≲2x slowdown worst case). Recommended workflow: pure-Go container, set gogc=off, give 5–10% headroom.

AI-written summary · about

  1. 0:00Start
  2. 0:48What Is the Memory Limit Feature
  3. 1:34The Go Garbage Collector
  4. 12:39Memory Limits
  5. 21:32Rules of Thumb
  6. 25:53Gc Guide
~/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.