spacedrive icon indicating copy to clipboard operation
spacedrive copied to clipboard

CPU melting behavior

Open berkus opened this issue 2 years ago • 5 comments

Describe the bug

While indexing the filesystem

image

So far it has peaked around 970% which is way more than cores I have and the macOS UI has noticeable lag with that.

Indexing fast sounds like a good idea, but leave some space for other apps too? Indexing should be background, not "I take it all".

Reproduction

  1. Download
  2. Start
  3. Add all recommended folders to index
  4. Wait a little

Expected behavior

App crawls files in the background without melting CPU and causing full-speed coolers on an M1 Pro (this is the first app that managed to do this, congrats!)

Platform and versions

macOS Sonoma 14.0

14-inch 2021 M1 Pro MacBook with 32GB RAM

Stack trace

No response

Additional context

No response

berkus avatar Feb 08 '24 10:02 berkus

image

So laggy I cannot take a screenshot ¯_(ツ)_/¯

berkus avatar Feb 08 '24 10:02 berkus

Which version are you on? We have setting (with default under 75% or 50%) that controls the cpu usage, can you also tell me the value of that setting?

Thanks.

utkubakir avatar Feb 08 '24 15:02 utkubakir

That must be the latest, just installed it yesterday.

Version 0.2.3 (20240203.000617)

Thumbnailer CPU usage: 50%

berkus avatar Feb 08 '24 18:02 berkus

I believe the new AI labeller we added might be the cause. Could you please test it on a folder without any images? It is unlikely that the indexer alone would render everything else unusable.

Also, we are currently working on a new task system, set to be released in the next alpha update, which aims to address all these threading issues. (@fogodev)

utkubakir avatar Feb 08 '24 20:02 utkubakir

Yeah that has to be the labeler, which likely doesn't have a throttle yet. Let's change this to a universal CPU setting and we can add individual ones down the line.

jamiepine avatar Feb 10 '24 06:02 jamiepine

Fixed temporarily in 0.2.4 and will be fixed for good in the next version

utkubakir avatar Feb 26 '24 16:02 utkubakir