Open zhenlei520 opened 3 months ago
Tagging subscribers to this area: @mangod9 See info in area-owners.md if you want to be subscribed.
https://github.com/microsoft/reverse-proxy/issues/2427#issuecomment-1977911480
We use it in yarp and find that a lot of CPU resources are occupied in SetThreadPoolWorkerThreadName, but this is a runtime problem. Is there any room for optimization?
a lot of CPU resources are occupied in SetThreadPoolWorkerThreadName
maybe relate to https://github.com/dotnet/runtime/issues/108057
a lot of CPU resources are occupied in SetThreadPoolWorkerThreadName
maybe relate to #108057
Yes. In which version will this problem be fixed?
Description
Configuration
System: Ubuntu 22.04 X64 .NET Version: 8.0
Data
Analysis
Downstream.zip
The response time is longer, and the number of requests remains the same, which means more requests need to be processed, and more threads are needed to process these requests, so the CPU increases. However, my setting of MinThreads has no effect at all. The thread increase still takes 1 minute. What I hope is that a certain amount of threads can be prepared in advance so that when burst traffic comes in, these threads can be used directly without temporarily enabling new threads. Temporarily enabling a large number of requests will cause a lot of CPU pressure and easily cause the server to go down.