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

High RAM and some CPU always in use #248

Closed
djsolidsnake86 opened this issue Jul 31, 2022 · 14 comments · Fixed by #272
Closed

High RAM and some CPU always in use #248

djsolidsnake86 opened this issue Jul 31, 2022 · 14 comments · Fixed by #272

Comments

@djsolidsnake86
Copy link

Version

2.4.5

Details

win 10 here, 2.4.5 is the first version of this app that i'm using, i see a ram consumption of always about 70-75mb and a cpu percentage of using of 0.1% / 0.5% without doing nothing, is this normal?
when using f.lux i have 10mb of ram and 0% of cpu using all the time

Steps to reproduce

.

@tomasz1986
Copy link

The situation is same here, except that on low-end hardware like an Intel Atom Bay Trail tablet, the CPU usage always seems to oscillate around ~5%, which is quite a lot. This is during daytime with gamma polling disabled, so I'm not sure what exactly is using the CPU at that time.

Is the constant CPU usage expected and something that cannot really be avoided?

@Tyrrrz
Copy link
Owner

Tyrrrz commented Aug 14, 2022

Unfortunately, I can't reproduce the CPU usage on my machine to be able to experiment and see what makes the usage go higher or lower. My attempts at profiling didn't yield many useful insights (although I'm not good at it). It would be great if someone who's experiencing CPU usage issues could clone the project and try to see which parts cause the problem.

@tomasz1986
Copy link

That's interesting, because I run LightBulb on at least 4 different devices, and the issue is present on all of them.

Is there any way to produce a debug log or similar without diving deep into the code for debugging? My programming skills are rather limited, unfortunately.

@Tyrrrz
Copy link
Owner

Tyrrrz commented Aug 14, 2022

That's interesting, because I run LightBulb on at least 4 different devices, and the issue is present on all of them.

You have ~5% CPU usage on all machines? Mine spikes to 0.1% at most 🤔

Is there any way to produce a debug log or similar without diving deep into the code for debugging? My programming skills are rather limited, unfortunately.

There probably is, but I don't know of one... Unfortunately, I'm not skilled enough at performance profiling. :(

@tomasz1986
Copy link

tomasz1986 commented Aug 14, 2022

You have ~5% CPU usage on all machines? Mine spikes to 0.1% at most 🤔

Yeah, it's ~5% on devices with a slow CPU, and around ~1% on rather fast desktops. It seems to be doing something constantly though, as the CPU usage keeps fluctuating non-stop on all of them.

@djsolidsnake86
Copy link
Author

the fact is that is a bug of the app, not a problem of our computers configuration
only the author can solve

@djsolidsnake86
Copy link
Author

if can be useful i tried the version with the old graphic engine, and there wasn't this cpu problem

@Tyrrrz
Copy link
Owner

Tyrrrz commented Aug 14, 2022

Old graphic engine?

@djsolidsnake86
Copy link
Author

Old graphic engine?

try version 1.6.4.1

@tomasz1986
Copy link

try version 1.6.4.1

I can confirm. This version uses only ~1% of CPU on the Intel Atom device. I've also checked a few different 2.x versions, but all of them seem to share the same ~5% CPU usage.

@djsolidsnake86
Copy link
Author

any news about fix this problem?

@pbaykalov
Copy link

pbaykalov commented Jun 21, 2023

Lightbulb uses less than 1% of one CPU core on average on my Ryzen 5600X desktop with gamma polling disabled.
If you are relying on CPU utilization from either the Performance or Processes tab in Task Manager you should stop doing so because it somehow reports bogus results. Instead, use "CPU time" from "Details" tab which reports how much single core time the process consumed since it launched. If a process uses more than one thread the value of course accounts for it.

This value will also strongly depend on the average CPU frequency. 5% at lowest CPU power state is almost nothing because how low the frequency drops on modern CPUs (including Bay Trail). My 1195G7 does as low as 600MHz for example.

I just checked: Bay Trail drops to 500MHz in idle.

@StanFromTraction
Copy link

StanFromTraction commented Aug 21, 2023

Is 200-500mb average memory usage normal?

This has always been the case as far as I can remember, may it be Win10, Win11, a Carbon X1 7 or a Carbon X1 10

@Tyrrrz
Copy link
Owner

Tyrrrz commented Aug 21, 2023

Is 200-500mb average memory usage normal?

No, it's not normal. At least not all the time (it can use more memory when it's performing auto-update).

@Tyrrrz Tyrrrz changed the title High ram and a little percentage of cpu always using High RAM and some CPU always in use Mar 26, 2024
@Tyrrrz Tyrrrz reopened this Mar 28, 2024
@Tyrrrz Tyrrrz closed this as completed Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants