Skip to content
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

Constant Background CPU Usage #15408

Closed
D-Maxwell opened this issue May 16, 2024 · 9 comments
Closed

Constant Background CPU Usage #15408

D-Maxwell opened this issue May 16, 2024 · 9 comments
Labels
bug Something isn't working 👀 needs - additional info Needs more information from the reporter

Comments

@D-Maxwell
Copy link

Description

Despite a lack of tasks to actually execute, the app is constantly chewing on my laptop's processor, significantly reducing its battery life for no seeming benefit.
This seems to be quite inconsistent however.

Steps To Reproduce

Launch background process
Monitor and witness

Requirements

I expect my CPU not to be used by the background service that is only meant to keep the process alive.

Files Version

3.2.2.0

Windows Version

10.0.19044.2486

Log File

debug.log

@D-Maxwell D-Maxwell added the bug Something isn't working 👀 label May 16, 2024
@0x5bfa
Copy link
Member

0x5bfa commented May 16, 2024

Thanks for the feedback!

There might be memory leak(s).
Merging with #4180. We’re tracking it there, please subscribe for the further information.

@0x5bfa 0x5bfa closed this as completed May 16, 2024
@yaira2
Copy link
Member

yaira2 commented May 16, 2024

There are memory leaks that we're working on resolving, but that shouldn't affect CPU.

Do you have any ongoing file operations?

Even when not minimized, CPU should go down to less than 1% on idle.

@yaira2 yaira2 reopened this May 16, 2024
@yaira2 yaira2 added the needs - additional info Needs more information from the reporter label May 16, 2024
@D-Maxwell
Copy link
Author

Do you have any ongoing file operations?

Even when not minimized, CPU should go down to less than 1% on idle.

I do, in fact, not have any task for the files app to execute.

If anything, I wish it would work some more as it also refuses to generate file icons for some reason, although I reckon this is a known issue.

@D-Maxwell
Copy link
Author

I may add, however, that due to the relatively low raw processing power of that laptop of mine, it may be possible that you would be unable to reproduce this as you might overlook an ever so slight increase in consumption given the likely beefy nature of your own machine ; whereas the effect is quite felt on mine, given how process usage scales.

@yaira2
Copy link
Member

yaira2 commented May 16, 2024

The operation doesn't have to necessarily be from Files, it can be anything that's updating the file system on the device which causes the various file watchers in Files to be triggered.

Either way, we're constantly working on optimizations to reduce memory and CPU consumption. Please refer to #4180 for updates.

@yaira2 yaira2 closed this as completed May 16, 2024
@yaira2
Copy link
Member

yaira2 commented May 16, 2024

What CPU do you have?

@D-Maxwell
Copy link
Author

What CPU do you have?

An Intel Celeron N4120 ; it clocks at 1.1GHz up to 2.5 on four cores of a single thread each.

This is clearly meant not to draw much power, at the cost of being extremely slow, making such tiny operations put a noticeable strain onto the processor.

@Josh65-2201
Copy link
Member

For such a weak CPU this is expected. Files will continue to lower it resource usage on the system with updates but there only so far we can go.

@yaira2
Copy link
Member

yaira2 commented May 21, 2024

That's correct, we're doing our best to optimize but Intel Celeron is a weaker CPU and will not perform as well with Files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 👀 needs - additional info Needs more information from the reporter
Projects
None yet
Development

No branches or pull requests

4 participants