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

Optimize AdjustMaxWorkersActive #1103

Merged
merged 1 commit into from
Jan 6, 2020

Conversation

billwert
Copy link
Member

@ninedan reported this function as expensive in one of the server scenarios
he monitors. The actual time is spent in ThreadStore::GetAllThreadList.
Moving the call to GetTotalWorkerThreadPoolCompletionCount should reduce this
cost.

(This trace is from .NET Framework, but the code is similar and still calls ThreadStore::GetAllThreadList in .NET Core)
image

Fixes #1079

@ninedan reported this function as expensive in one of the server scenarios
he monitors. The actual time is spent in `ThreadStore::GetAllThreadList`.
Moving the call to `GetTotalWorkerThreadPoolCompletionCount` should reduce this
cost.

Fixes dotnet#1079
@billwert billwert force-pushed the move-thread-computation branch from 491ff9f to d7faed4 Compare December 21, 2019 01:49
@billwert
Copy link
Member Author

The failures don't look related to what I've done, but I'm not a contributor here so I don't think I can re-run them.

@danmoseley
Copy link
Member

I hit retry, I think. If you don't have the power, we should fix that

@ghost
Copy link

ghost commented Jan 6, 2020

Hello @stephentoub!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@billwert
Copy link
Member Author

billwert commented Jan 6, 2020

I believe these failures continue to be unrelated (and are related to known issues like #1100, #1097). Should I wait for those to be fixed or should we merge this?

@jkotas jkotas merged commit 8cc2aa3 into dotnet:master Jan 6, 2020
@billwert billwert deleted the move-thread-computation branch January 24, 2020 22:39
kouvel added a commit to kouvel/runtime that referenced this pull request Oct 20, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize calling GetTotalWorkerThreadPoolCompletionCount
5 participants