Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

kouvel
Copy link
Contributor

@kouvel kouvel commented Jun 25, 2024

Some services that use a lot of sync-over-async were seen to experience stalls due to some priority inversion issues in work items that get queued to the thread pool. For instance, a work item W1 queues another work item W2 to the global queue and blocks waiting for a task to complete, where W2 would need to run in order to complete the task, but W2 is queued behind a number of other work items that operate like W1, and this sometimes leads to long-duration stalls. This change adds an experimental config option that when enabled, enqueues some kinds of work items to a new low-priority global queue that is checked after all other global queues. This was seen to help in some cases. The change is limited to CoreCLR for experimentation.

…anges in cases involving a lot of sync-over-async

Some services that use a lot of sync-over-async were seen to experience stalls due to some priority inversion issues in work items that get queued to the thread pool. For instance, a work item W1 queues another work item W2 to the global queue and blocks waiting for a task to complete, where W2 would need to run in order to complete the task, but W2 is queued behind a number of other work items that operate like W1, and this sometimes leads to long-duration stalls. This change adds an experimental config option that when enabled, enqueues some kinds of work items to a new low-priority global queue that is checked after all other global queues. This was seen to help in some cases.
@kouvel kouvel added this to the 9.0.0 milestone Jun 25, 2024
@kouvel kouvel requested a review from stephentoub June 25, 2024 18:40
@kouvel kouvel self-assigned this Jun 25, 2024
Copy link
Contributor

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

@kouvel kouvel merged commit 4882c61 into dotnet:main Jul 9, 2024
@kouvel kouvel deleted the TpPriTestConfig branch July 9, 2024 19:42
matouskozak added a commit to matouskozak/runtime that referenced this pull request Jul 11, 2024
…ation changes in cases involving a lot of sync-over-async (dotnet#103983)"

This reverts commit 4882c61.
@github-actions github-actions bot locked and limited conversation to collaborators Aug 9, 2024
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.

2 participants