Walletwasabi: CPU/GPU Usage

Created on 27 Apr 2019  路  15Comments  路  Source: zkSNACKs/WalletWasabi

I let Wasabi run for a day or so, mixing and it turns out we use a lot of CPU and GPU.

image

I noticed this a couple of times, but only took a screenshot now. I restarted and started to mix again it and all good, but if I'd leave it there longer it'd be bad again.

image

debug priority questioresearch

All 15 comments

image
image

I caught Wasabi increasing it's CPU usage more than before
It was using 38% of a strong 6 Core CPU in a stable manner while doing nothing.

Also using ~11% GPU in the background with window minimized that went down to 6% when window as made visible.

image

After 22 hours of running Wasabi to mix a pretty big wallet with almost 200 utxos in daemon mode on testnet, CPU usage is 0% and Memory 171 MB (see image)

We should focus on the GUI componentes then.

image

Same problem on Ubuntu 18.04 with Wasabi 1.1.4 while waiting for CoinJoin.

image

The yellow and red entries read "registered".
image

Let me know if submitting logs would help. Looks like dev more competent than me are on it :) :pray:

Just a quick note on the memory. The filters are growing fast. They're the cause for the majority of the memory usage of Wasabi. (But note it's not a memory leak.)

Fixing it may be the last thing left to this PR: https://github.com/zkSNACKs/WalletWasabi/pull/1405

I would like to drop in and comment that 1.1.4 on OSX stopped responding (on a pretty reliable basis) just as a round would complete. I would get a notification from Wasabi saying you received [change amount from that round] and freeze up and send my cpu to 100%.

10.13.6 2018 15" $2,599 model Macbook Pro Retina (16gb ram)

For the time being I reverted back to using 1.1.3 which I have never had the aforementioned issue happen while using.
I haven't looked through all the issue tickets to see if anyone else is having the exact same issue (crash upon round completion) but figured i'd chime in.
wasabi_logs_osxcrash.txt

@mikeborghi2 That is a known and fixed issue (on the master branch.) There were some problems with the process we used for hardware wallet integration on some OSX machines.

Edit: This issue happened when receiving multiple transactions (7) and letting it be.
Will try to replicated when fees are lower

image
(6 Core i7)

Currently using a steady 39% CPU doing absolutely nothing (no coinjoin) with an open wallet with only 19 UTXO.

Edit: This 0-5% is caused by having the window from visible to minimized.

image
(1h period)

I'm not doing anything to the wallet and it goes from almost nothing to a steady 5% CPU, (State: waiting for a coinjoin)

That narrows down the issue to UI problems. Thanks!

image
The high GPU usage makes it difficult to leave Wasabi running (especially on a laptop when out and about).

im going to see if I can start to repro this.

Yesterday my Wasabi went from 2% to 89% CPU and kept at that level until I restarted it. I tried to reproduce it but it never happened again.

@danwalmsley We have tried to do some CPU profiling here and the CPU was being eaten by Avalonia.

  • If I run Wasabi daemon the CPU won't go up.
  • I don't need to enqueue to mix to make the CPU usage go up.
  • @Transisto is right, when you minimize the window, the CPU usage goes back (this doesn't happen if you just put the window to the background.)
  • What we noticed is that the number of threads are huge and is growing. With the wallet that was open for a few hours the threads were about 600, with the wallet that was just loaded the threads were about 200. This number was not affected by the size of the wallet, so both small wallets and big wallets are eating the same amount of threads. If I run the software without Avalonia, with the cmd to mix, then the number of threads are only 27!

Are you saying we must wait for Avalonia 8? :laughing:

Should be fixed. Apparently it didn't come out in Release: https://github.com/zkSNACKs/WalletWasabi/pull/2033

@MaxHillebrand We are waiting for Avalonia release for the clean fix 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kenny47 picture kenny47  路  3Comments

davterra picture davterra  路  3Comments

nopara73 picture nopara73  路  3Comments

MaxHillebrand picture MaxHillebrand  路  3Comments

nopara73 picture nopara73  路  3Comments