You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GOGC variable sets the initial garbage collection target percentage. A collection is triggered when the ratio of freshly allocated data to live data remaining after the previous collection reaches this percentage. The default is GOGC=100.
This is a classic tradeoff between memory and CPU usage. Given that syncing data shouldn't be CPU-bound in the Go process, I think we can afford using a bit more CPU to keep memory usage lower. But before doing this, we should evaluate this a bit and play around with different values.
I would suggest closing this issue. Unless there are exact reasons being identified as major GC cost factors, I would strongly advertise against messing with it.
To GC earlier and reduce memory spikes.
The text was updated successfully, but these errors were encountered: