-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
The memory_ballast extension allows defining a 'heap ballast' to make the behavior of Go's garbage collector more predictable. Quoting this post,
the ballast increases the base size of the heap so that our GC triggers are delayed and the number of GC cycles over time is reduced.
This functionality was added in #45 but a few years and Go versions have passed since and there has since been discussion (e.g. see #7512 (comment) ) on the need of this extension today. In particular, tweaking GOMEMLIMIT and GOGC may be enough to tackle the issues the extension was meant to address.
It also seems like the extension may be risky in some cases and increase memory usage (this may be the cause of #7512).
The most recent issue on the matter upstream is golang/go/issues/42430.
This issue is to decide whether we should remove the memory ballast extension or not.