Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Go garbage collection target percentage to 400% #5034

Merged
merged 1 commit into from
Jun 28, 2024
Merged

Conversation

dmitryax
Copy link
Contributor

@dmitryax dmitryax commented Jun 28, 2024

After the removal of the memory_ballast extension in v0.97.0, the Go garbage collection is running more aggressively, which increases CPU usage and leads to reduced throughput of the collector. This change reduces the frequency of garbage collection cycles to improve the collector's performance for typical workloads. As a result, the collector will report higher memory usage, but it will be bound to the same configured limits. If you want to revert to the previous behavior, set the GOGC environment variable to 100.

Copy link
Contributor

@pjanotti pjanotti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

After removal of memory_ballast extension in v0.97.0, the Go garbage collection is running more aggressively, which
increased CPU usage and leads to reduced throughput of the collector. This change reduces the frequency of garbage
collection cycles to improves performance of the collector for typical workloads. As a result, the collector will
report higher memory usage, but it will be bound to the same configured limits. If you want to revert to the previous
behavior, set the `GOGC` environment variable to `100`.
@dmitryax dmitryax merged commit c5e24e5 into main Jun 28, 2024
51 checks passed
@dmitryax dmitryax deleted the set-gogc-to-400 branch June 28, 2024 20:57
@github-actions github-actions bot locked and limited conversation to collaborators Jun 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants