Skip to content

Reduce goroutine growth in BackgroundTaskManager - #2266

Open
wswsmao wants to merge 1 commit into
containerd:mainfrom
wswsmao:goroutine
Open

Reduce goroutine growth in BackgroundTaskManager#2266
wswsmao wants to merge 1 commit into
containerd:mainfrom
wswsmao:goroutine

Conversation

@wswsmao

@wswsmao wswsmao commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

This PR removes the per-call sleeping goroutine in DonePrioritizedTask() and replaces it with a single scheduler-based mechanism that tracks delayed completions centrally.
It keeps the original silence-period behavior for background tasks, while significantly reducing unnecessary goroutine accumulation under high concurrency and lowering related blocking/lock contention.

@wswsmao wswsmao closed this Mar 31, 2026
@wswsmao wswsmao reopened this Mar 31, 2026
Signed-off-by: abushwang <abushwang@tencent.com>
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.

1 participant