-
Notifications
You must be signed in to change notification settings - Fork 835
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
YARP has a higher cpu usage than Nginx #2427
Comments
How does the load / RPS compare? |
Hi @MihaZupan , any news? |
Is it related to the dotnet/runtime#70098 |
@MihaZupan hi,is there any news? |
The performance gap is so obvious, is there any room for improvement? |
Is there any news about this issue?
|
Later we made some adjustments to the configuration <PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<GarbageCollectionAdaptationMode>0</GarbageCollectionAdaptationMode>
</PropertyGroup> Environment variables DOTNET_ThreadPool_UnfairSemaphoreSpinLimit=0 After turning off spin, the CPU performance increased by nearly 40%, which is indeed a big improvement. However, according to the data, it will affect qps. However, we have not yet added link monitoring, so the impact on qps is not yet known. From the perspective of upstream requests, the average response time is not greatly affected. However, compared with nginx, yarp still has a lot of room for improvement. We hope to use it instead of other reverse proxy products. |
@Tratcher @MihaZupan |
Sorry, I don't know if it is a bug.
Describe the bug
I deployed 3 nginx at HongKong, and deployed 3 YARP at HangZhou.
Nginx forwards some services, and YARP forward one of them.
Nginx CPU
YARP CPU
YARP other metrics
Htop (Cat.Service.dll is based on YARP)
I tried to analyze the CPU on vs
Top function
Module View
To Reproduce
No exception.
Further technical details
2.1.0
Linux
They're all 4c8g, YARP on ubuntu 22.04, nginx on centos.
YARP 2.1.0 runs on .NET 8.
The text was updated successfully, but these errors were encountered: