LightBulb icon indicating copy to clipboard operation
LightBulb copied to clipboard

High ram and a little percentage of cpu always using

Open djsolidsnake86 opened this issue 2 years ago • 14 comments

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

.

djsolidsnake86 avatar Jul 31 '22 13:07 djsolidsnake86

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?

tomasz1986 avatar Aug 14 '22 12:08 tomasz1986

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.

Tyrrrz avatar Aug 14 '22 14:08 Tyrrrz

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.

tomasz1986 avatar Aug 14 '22 20:08 tomasz1986

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. :(

Tyrrrz avatar Aug 14 '22 20:08 Tyrrrz

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.

tomasz1986 avatar Aug 14 '22 21:08 tomasz1986

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

djsolidsnake86 avatar Aug 14 '22 22:08 djsolidsnake86

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

djsolidsnake86 avatar Aug 14 '22 22:08 djsolidsnake86

Old graphic engine?

Tyrrrz avatar Aug 14 '22 23:08 Tyrrrz

Old graphic engine?

try version 1.6.4.1

djsolidsnake86 avatar Aug 15 '22 01:08 djsolidsnake86

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.

tomasz1986 avatar Aug 15 '22 01:08 tomasz1986

any news about fix this problem?

djsolidsnake86 avatar Dec 07 '22 11:12 djsolidsnake86

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.

pbaykalov avatar Jun 21 '23 19:06 pbaykalov

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

StanFromTraction avatar Aug 21 '23 19:08 StanFromTraction

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 avatar Aug 21 '23 20:08 Tyrrrz