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

Acquire semaphore outside of goroutine for resyncs #668

Merged
merged 1 commit into from
May 7, 2024
Merged

Conversation

ericvolp12
Copy link
Collaborator

Currently we end up with millions of goroutines waiting on semaphores during a full PDS resync if we run against all production PDSs, this fix waits for the semaphore before spawning the goroutine reducing allocs and the size of the stack significantly.

@ericvolp12 ericvolp12 requested a review from whyrusleeping May 7, 2024 02:58
Copy link
Collaborator

@whyrusleeping whyrusleeping left a comment

Choose a reason for hiding this comment

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

well now

@ericvolp12 ericvolp12 merged commit 8755c74 into main May 7, 2024
7 checks passed
@ericvolp12 ericvolp12 deleted the resync_perf branch May 7, 2024 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants