vitess
vitess copied to clipboard
Investigate GOGC performance impact
Feature Description
In the 2024-06-16 Prometheus v2.53.0 release, they changed the default GOGC value from 100 to 75. If it isn't overly difficult, that might be an interesting test to benchmark for Vitess.
Looking over the data a bit more, the change from 100 to 75 yields about a 15% reduction in memory use for about 10% more CPU use.
Compared GOGC=50, which costs 20% more CPU, but reduces memory by 40%.
I think for the first iteration of this change, we should go lighter on the CPU delta and use GOGC=75. https://github.com/prometheus/prometheus/releases/tag/v2.53.0
- https://github.com/prometheus/prometheus/pull/14285
- https://github.com/prometheus/prometheus/pull/14176
cc @vmg
Use Case(s)
Better performance is good for everyone