-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Massive increase in CPU usage with 1.11.1 #8696
Comments
More attempts to solve this issue: Tried following parameters:
We are using Amazon Linux, 2 core CPU. This has been a gradual issue in our v1.10.0 versions. We received warnings for CPU usage upto 60% and then those issues transformed gradually into critical issues with CPU usage upto 104% I am not able to pin this issue to any of these specific things:
Is there any other thing/configuration which may help to resolve these CPU usage problems? |
@AyushyaChitransh We're still investigating internally as well. We have some fixes in progress but nothing massive. A big part of the increase in CPU is simply that ethereum has way more transactions (both spam and not), tons of bots trying to outbit each other on DEX'es etc, and processing and relaying all of these transactions takes a lot of CPU, even though most of them don't make it into blocks. This is not the reason 1.11 uses more than 1.10, but it's a big part of why CPU usage has gone up over the last 6 months. Once we have any solid recommendations, I'll post back to this issue. |
In my case, I was monitoring the node using https://github.com/cubedro/eth-net-intelligence-api and as soon as I stopped the monitoring process, CPU usage came to normal in about 10 seconds. This happened three to four times. I believe the RPC connections are causing the CPU issue in my case. If anyone else is facing this issue, can you verify if switching off RPC resolves this problem? |
@AyushyaChitransh what CLI flags are you running with? Do you mind providing logs of running with |
Investigating the high CPU usage on my node, the culprit looks to be snappy compression, although I might be misreading the profiling data: (frustratingly, GitHub won't let me upload SVGs, so it's zipped - the SVG is interactive if you open it in a browser). If you want to measure your own workload, I got this profile by building a release build with debugging flags enabled (
|
Looks like rocksdb's snappy compression may also be responsible for an increased memory usage (it takes 28.8% + 16.9% = 45.7% of total allocated memory when warp syncing): |
Seems like it is a mix of a lot of different issues, @tomusdrw has fixed some but is still working on more. I think in general we could use some more eyes on profiling and figuring out where are the cycles are spent. |
In general the increased CPU usage could be caused by couple of things depending on the settings:
|
I believe this might be closed now. Let's reopen in case there is new data available for newer version of Parity. |
After upgrading from latest 1.10 to 1.11.1 I use way way more CPU, while network usage is down.
The text was updated successfully, but these errors were encountered: