Skip to content

Optimize AdjustMaxWorkersActive#1103

Merged
jkotas merged 1 commit into
dotnet:masterfrom
billwert:move-thread-computation
Jan 6, 2020
Merged

Optimize AdjustMaxWorkersActive#1103
jkotas merged 1 commit into
dotnet:masterfrom
billwert:move-thread-computation

Conversation

@billwert
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
Contributor 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
Copy Markdown
Member

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

@ghost
Copy link
Copy Markdown

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
Copy Markdown
Contributor 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
@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