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

Power consumption #76

Open
gao-sun opened this issue Nov 10, 2020 · 23 comments
Open

Power consumption #76

gao-sun opened this issue Nov 10, 2020 · 23 comments
Labels
improvement Nice to have risk Something looks not good

Comments

@gao-sun
Copy link
Owner

gao-sun commented Nov 10, 2020

  1. double check if eul costs too much
  2. disable status fetching during sleep
@gao-sun gao-sun added the improvement Nice to have label Nov 10, 2020
@benbender
Copy link

benbender commented Nov 11, 2020

Hey,

just to give some feedback: Yes, PKG-power consumption jumped between 0.8W (normal) and 5W (much too high) with EUL enabled. Additionally the kernel-log was flooded with msgs like:

[  192.558412]: memorystatus: set assertion priority(3) target NetworkWidgetExtension:409
[  192.561556]: memorystatus: assertion priority 3 overrides priority 0 for NetworkWidgetExtension:409
[  192.561880]: memorystatus: assertion priority 3 overrides priority 0 for NetworkWidgetExtension:409
[  192.562075]: memorystatus: assertion priority 3 overrides priority 0 for NetworkWidgetExtension:409
[  192.562577]: memorystatus: assertion priority 3 overrides priority 0 for NetworkWidgetExtension:409
[  192.592370]: memorystatus: assertion priority 3 overrides priority 0 for NetworkWidgetExtension:409
[  192.592573]: memorystatus: assertion priority 3 overrides priority 0 for NetworkWidgetExtension:409
[  192.630168]: memorystatus: assertion priority 3 overrides priority 0 for WeatherWidget:396
[  192.630766]: memorystatus: assertion priority 3 overrides priority 0 for WeatherWidget:396
[  192.672616]: memorystatus: set assertion priority(0) target NetworkWidgetExtension:409
[  192.777223]: memorystatus: assertion priority 3 overrides priority 0 for StocksDetailIntents:1149
[  192.782391]: memorystatus: assertion priority 3 overrides priority 0 for StocksDetailIntents:1149
[  192.786001]: memorystatus: assertion priority 3 overrides priority 0 for StocksDetailIntents:1149
[  192.788455]: memorystatus: assertion priority 3 overrides priority 0 for StocksDetailIntents:1149
[  192.790415]: memorystatus: assertion priority 3 overrides priority 0 for StocksDetailIntents:1149
[  192.793242]: memorystatus: assertion priority 3 overrides priority 0 for StocksDetailIntents:1149
[  192.796745]: memorystatus: assertion priority 3 overrides priority 0 for StocksDetailIntents:1149
[  192.799907]: memorystatus: assertion priority 3 overrides priority 0 for StocksDetailIntents:1149
[  193.043929]: memorystatus: set assertion priority(0) target WeatherWidget:396
[  194.052880]: memorystatus: assertion priority 3 overrides priority 0 for com.apple.Notes.IntentsExtension:1145
[  194.052970]: memorystatus: assertion priority 3 overrides priority 0 for com.apple.Notes.IntentsExtension:1145
[  194.053200]: memorystatus: assertion priority 3 overrides priority 0 for com.apple.Notes.IntentsExtension:1145
[  194.053279]: memorystatus: assertion priority 3 overrides priority 0 for com.apple.Notes.IntentsExtension:1145
[  194.092598]: memorystatus: set assertion priority(0) target StocksWidget:1157
[  195.887737]: memorystatus: assertion priority 3 overrides priority 0 for IntentsExtension:1141
[  195.887913]: memorystatus: assertion priority 3 overrides priority 0 for RemindersIntentsExtension:1142
[  195.990898]: memorystatus: set assertion priority(0) target RemindersIntentsExtension:1142
[  195.990920]: memorystatus: set assertion priority(0) target IntentsExtension:1141
[  196.282668]: memorystatus: assertion priority 3 overrides priority 0 for WeatherIntents:1148
[  196.282803]: memorystatus: assertion priority 3 overrides priority 0 for com.apple.Notes.IntentsExtension:1145
[  196.392272]: memorystatus: set assertion priority(0) target com.apple.Notes.IntentsExtension:1145
[  196.392314]: memorystatus: set assertion priority(0) target WeatherIntents:1148
[  196.741872]: memorystatus: assertion priority 3 overrides priority 0 for MobileTimerIntents:1146

The spikes on the following graph are originating from EUL and vanishing as soon as I stop it:

power-draw3

I'm sorry to say that its barely unusable for me at that state on a laptop atm :/ Besides of that, thanks for your work on this and it looks very promising as soon as this is solved!

@gao-sun
Copy link
Owner Author

gao-sun commented Nov 11, 2020

thank you for detailed feedback. you are right. I'll take a look soon

@Nitinrajyadav
Copy link

+1
I'm also experiencing the same issue; eul is flagged as the 2nd most power consuming app after chrome, and the battery is getting drained much faster.

@htrung4
Copy link

htrung4 commented Nov 16, 2020

Me too, the same as everyone. It increased at least around 2-3W in power consumption, sometimes up to 6W, which is unacceptable in MacBook Pro 2018. Beautiful app anyway, hope you can fix this soon.

@gao-sun
Copy link
Owner Author

gao-sun commented Nov 18, 2020

a quick update, I'm too busy on my daytime work these days, did not get a chance to take a look at this issue. I'll try tonight/tomorrow

@gao-sun gao-sun added the risk Something looks not good label Nov 19, 2020
@pstens
Copy link

pstens commented Nov 19, 2020

Can confirm the issue running the latest version of eul.

I'm not sure if this helps in any way but here's a screenshot of Activity Monitor:

tg_image_140738016

@gao-sun
Copy link
Owner Author

gao-sun commented Nov 19, 2020

hi guys, would you mind to provide your config of eul? would like to see if Show network top activities has been turned on

@gao-sun
Copy link
Owner Author

gao-sun commented Nov 19, 2020

added several improvements in v1.4.4, please try and let me know if it helps

@benbender
Copy link

@gao-sun seems better now, but not ready yet. See the chart below. The spikes are there when EUL is running, while in the flat part of the graph I had it closed.

eul

@gao-sun
Copy link
Owner Author

gao-sun commented Nov 22, 2020

thanks @benbender! this is what I've got when eul is running (a little bit lower than yours)
image

also, power consumption in activity monitor swings between 0.3~0.7 (mostly under 0.5):
image

I checked around and tried to reduce consumption by letting the program just do necessary function calls and disables status fetching during sleep. Would you mind to set refresh rates to 5s to see if the result is acceptable?

If not, I would like take a look in SMCKit/SystemKit to figure out if there's more optimization space.

@mishanya14228
Copy link

mishanya14228 commented Jan 15, 2021

Using v1.5.1 on Intel mbp, os version 11.0.1
Energy impact is unnoticeable when not showing info in status bar (0.1-0.2 in activity monitor).

Turning the status bar components on and adding network only brings it to 40.
image

Adding CPU and disk results in 80, which is more than the rest of apps combined :(
image

So I'm using widgets for now, they don't impact on battery that much.

BTW, CPU usage also goes insane

@gao-sun
Copy link
Owner Author

gao-sun commented Jan 17, 2021

image

@mishanya14228 would you mind to click the arrow in the left side and paste the details here?

image

I'm using Chrome for example since there's no arrow in the eul row on my Mac (and power consumption looks not bad!) so I doubt some sub-processes do not exit as expected.

image

P.S. CPU usage is also helpful

@mishanya14228
Copy link

CPU goes up to 100% and the arrow hides diskutil 👇

image

image

Also I've experienced something like #95 after os restart. There were no tray icon or app interface. I resolved the issue doing Preferences -> Displays -> Resolution -> Scaled -> toggle any resolution and then toggle it back. Tray icon appeared and I could open the app. Probably an issue with OS

@gao-sun
Copy link
Owner Author

gao-sun commented Jan 21, 2021

@mishanya14228 great, got the direction of resolving.
also would be great if you can paste the tray icon issue in #95.

@gao-sun
Copy link
Owner Author

gao-sun commented Jan 23, 2021

@mishanya14228 according to these posts (link1 link2 link3), i think it's more like an OS issue when external storage/VM appears in the system. i'll try to find a more stable way to get disk info.

@gao-sun
Copy link
Owner Author

gao-sun commented Jan 23, 2021

@mishanya14228 please try v1.5.4, removed diskutil usage and leverage FileManager instead. the issue should be fixed.

@erdemoney
Copy link

erdemoney commented Jan 26, 2021

Using 1.56. Energy impact in Activity Monitor jumped to ~46, so high that my laptop died on AC. CPU usage was ~50% as well. Average Energy Impact I've been seeing is <1 normally. So it seems like this issue still exists just maybe only in some edge case. After booting my computer things were back to normal. Great app though, really appreciate all the work you've done.

edit: new record /:
Screen Shot 2021-01-26 at 1 19 08 PM

@gao-sun
Copy link
Owner Author

gao-sun commented Jan 29, 2021

@erdemoney thank you for detailed feedback, it looks like there's no process hanging under eul, and the energy impact still looks terrible. will keep an eye on it

@erdemoney
Copy link

Sure, let me know if there's any other data or logs I can provide to help solve this issue.

@forresthopkinsa
Copy link

Still seeing serious energy inefficiency problems in 1.6.2.
image

@mjhipp
Copy link

mjhipp commented Mar 25, 2022

Also having issues with energy in 1.6.2. Am forced to stop using this tool altogether sadly. Fluctuating between 60-80% and preventing my battery from charging (at 85% battery health).

Screen Shot 2022-03-25 at 1 12 56 PM

@harounelm
Copy link

uh .... guys XD could anyone tell me whats wrong here, the battery drained like crazy
image

@harounelm
Copy link

yeah I think I found out why. im using an M2 Pro MacBook and the answer is in this issue #243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Nice to have risk Something looks not good
Projects
None yet
Development

No branches or pull requests

10 participants