All Projects → cch123 → gogctuner

cch123 / gogctuner

Licence: other
auto adjust your GOGC value

Programming Languages

go
31211 projects - #10 most used programming language

GOGCTuner

idea is from this article How We Saved 70K Cores Across 30 Mission-Critical Services (Large-Scale, Semi-Automated Go GC Tuning @Uber)

How to use this lib?

just call NewTuner when initializing app :

func initProcess() {
	var (
		inCgroup = true
		percent = 70
	)
	go NewTuner(inCgroup, percent)
}

Current Status

Go 1.19 adds a soft memory limit which changes its pacer algorithm and scvg behavior, we'll see what go team will provide in the new version. Maybe this lib can be deprecated in Go 1.19.

official guide for gogc and memory limit params:

https://tip.golang.org/doc/gc-guide

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].