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

Import Semi-Automated GOGC Tuning To Avoid GC Frequently #32090

Closed
Tracked by #38025
hawkingrei opened this issue Feb 2, 2022 · 0 comments · Fixed by #32091
Closed
Tracked by #38025

Import Semi-Automated GOGC Tuning To Avoid GC Frequently #32090

hawkingrei opened this issue Feb 2, 2022 · 0 comments · Fixed by #32091
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@hawkingrei
Copy link
Member

hawkingrei commented Feb 2, 2022

Enhancement

Extensive experiments are needed to verify its feasibility.

Introduction

Inspired
by How We Saved 70K Cores Across 30 Mission-Critical Services (Large-Scale, Semi-Automated Go GC Tuning @Uber)
.

 _______________  => limit: host/cgroup memory hard limit
|               |
|---------------| => gc_trigger: heap_live + heap_live * GCPercent / 100
|               |
|---------------|
|   heap_live   |
|_______________|

For Golang 1.18

In Golang1.18, The garbage collector now includes non-heap sources of garbage collector work (e.g., stack scanning) when determining how frequently to run. As a result, garbage collector overhead is more predictable when these sources are significant. For most applications these changes will be negligible; however, some Go applications may now use less memory and spend more time on garbage collection, or vice versa, than before. The intended workaround is to tweak GOGC where necessary. Semi-Automated Go GC Tuning is more important than ever.

@hawkingrei hawkingrei added the type/enhancement The issue or PR belongs to an enhancement. label Feb 2, 2022
@hawkingrei hawkingrei changed the title Import Semi-Automated Go GC Tuning Import Semi-Automated Go GC Tuning To Avoid GC Frequently Feb 2, 2022
@hawkingrei hawkingrei changed the title Import Semi-Automated Go GC Tuning To Avoid GC Frequently Import Semi-Automated GoGC Tuning To Avoid GC Frequently Oct 18, 2022
@hawkingrei hawkingrei changed the title Import Semi-Automated GoGC Tuning To Avoid GC Frequently Import Semi-Automated GOGC Tuning To Avoid GC Frequently Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant