Nexusoft / NexusInterface

The official Logical and Interface layers of the Nexus Software Stack.
https://crypto.nexus.io/wallet
MIT License
32 stars 12 forks source link

Very high CPU usage with Desktop wallet build 3.1.0-testnet-9 appimage for linux #191

Closed Aeonwise closed 1 year ago

Aeonwise commented 1 year ago

Running the desktop wallet on linux, found very high CPU usage almost 45-50% on a Ryzen 7 5800 8 core CPU. The wallet was tested in the lite mode.

Ryzen7-5800

Aeonwise commented 1 year ago

The desktop wallet CPU usage is high and the exact file shown is nexus-linux-x64. Disabled the globe to rule out if that is causing the issue.

Wallet-CPU-usage

Hardware-specs

Qrysto commented 1 year ago

What was the wallet doing while the CPU usage was this high? Was it idle? Also, could you identify if the CPU usage was from the core or from the UI?

Aeonwise commented 1 year ago

The wallet has high CPU usage in lite mode, full node, synching or fully synched. I had disabled the globe also.

I am not sure how to check if the CPU usage was due to the UI or the core.

Qrysto commented 1 year ago

@Aeonwise Can you help me do this: set the Verbose level to 3 in the Core Settings, run the wallet for a few minutes (while the CPU usage is high), then send me the 0.log in testnet1/client folder? (assuming you're running on testnet 1 lite mode)

VidereLicet commented 1 year ago

CPU usage can be high when synchronizing, but yes as @Qrysto said we need better data than this. Need you to provide details such as how long you tested with high CPU, was it right after startup, does it persist, does it go away, what are logs on verbose=3.

Aeonwise commented 1 year ago

@Aeonwise Can you help me do this: set the Verbose level to 3 in the Core Settings, run the wallet for a few minutes (while the CPU usage is high), then send me the 0.log in testnet1/client folder? (assuming you're running on testnet 1 lite mode)

I changed the verbose level to 3 and now the high CPU usage issue has resolved itself and to check removed the verbose=3 flag and then changed between lite and full modes, even restarted the wallet a few times.

The issue has disappeared.

VidereLicet commented 1 year ago

Was fixed with commit 0ef5d8df303d400dc235262a99fccfdedfa64edd