SkillAgentSearch skills...

Gogctuner

auto adjust your GOGC value

Install / Use

/learn @cch123/Gogctuner
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

View on GitHub
GitHub Stars231
CategoryDevelopment
Updated3mo ago
Forks37

Languages

Go

Security Score

77/100

Audited on Dec 17, 2025

No findings