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 CPU, memory, and energy usage #41

Open
soukingang opened this issue Apr 1, 2024 · 12 comments
Open

High CPU, memory, and energy usage #41

soukingang opened this issue Apr 1, 2024 · 12 comments
Labels
performance Needs performance improvements

Comments

@soukingang
Copy link

A cool and very useful tool,but its energy usage is relatively high, such as CPU、memory
may optimize it? thanks

SCR-20240401-ltot SCR-20240401-ltrm SCR-20240401-lvwd
@jordanbaird jordanbaird changed the title A cool and very useful tool,but its energy usage is relatively high, such as CPU、memory... may optimize it? High CPU, memory, and energy usage Apr 1, 2024
@jordanbaird
Copy link
Owner

What settings do you have enabled to cause such high numbers?

@jordanbaird jordanbaird added the performance Needs performance improvements label Apr 1, 2024
@soukingang
Copy link
Author

soukingang commented Apr 1, 2024

@jordanbaird

The settings :

image image image

And my app on the menu bar:
image

@jordanbaird
Copy link
Owner

Interesting. So nothing out of the ordinary. I'll look into it to see if I can figure out what is causing this.

@soukingang
Copy link
Author

soukingang commented Apr 2, 2024

@jordanbaird
Operation Video
https://www.dropbox.com/t/UyAK918EDn1TeVnL

Last night,i turn on the "show on hover" option, like this:
SCR-20240402-kbau

Now,when i hover the menu bar, my hidden icon appear ,but its memory usage is too high(usage:538.7MB)
image

image image 。。。

Please optimize it ,thank you very much

my Mac:
OS version is Sonoma 14.4.1
Apple M3 Max
Memory:36 GB

And what anything else i can provide?

@jordanbaird
Copy link
Owner

Wow, that's bad. I have never had it go above 90 MB on my machine. Does it still have high memory usage immediately after restarting Ice? I'm thinking there is a memory leak somewhere.

@soukingang
Copy link
Author

soukingang commented Apr 3, 2024

Wow, that's bad. I have never had it go above 90 MB on my machine. Does it still have high memory usage immediately after restarting Ice? I'm thinking there is a memory leak somewhere.

@jordanbaird
Not immediately , its memory usage is high,sometimes. And when i hover menubar,it is high very often(watch the video https://www.dropbox.com/t/UyAK918EDn1TeVnL

i try restarting ice ,or restarting my computer, it still has high memory usage sometimes (and very often in certain situation)

What can i provide some other info about it,and how..? thanks.

@jordanbaird
Copy link
Owner

I can't reproduce this. Like I said, it mostly stays below 90 MB on my machine. In my testing, I was able to get it to jump to around 100 MB, but that was a rare case. In fact, more often than not, memory usage is around 50 MB. There must be something specific to your configuration that's causing this. What's strange is that memory usage should actually go down when menu bar items are being shown, not up.

Can you clarify whether it only happens when you use the "show on hover" feature? Or does it happen more generally when showing menu bar items?

@exlemor
Copy link

exlemor commented Apr 4, 2024

Hi Jordan,

Not sure if this helps but I use ICE on the last generation Intel Macbook Pro [right before M1] it's an Intel Core i9, 2.9Ghz, with 32gig DDR 4 RAM, dual graphics card Intel UHD Graphics 630 1536 MB and Radeon Pro 560X (even though the Radeon doesn't turn on for ICE use), and it typically takes:

Mac OS Sonoma 14.4.1

120-130mg of RAM, 9 threads, around ~465 ports,
3.0%-5.5% CPU / 40.84 GPU Time [on for 20hrs straight]

After a restart the CPU restarts at ~ 1.7%-3.5%, around 41-44mg of RAM.

So it appears that over time it grows slightly - maybe a memory leak issue?

If that helps :)

@jordanbaird
Copy link
Owner

@exlemor thanks for the insight. Some memory growth is normal throughout the use of any program due to lazy loading of resources, but this does seem like a little too much. I'll look into the possibility of a memory leak.

@jordanbaird
Copy link
Owner

@soukingang after updating to 0.8.0, do any of these things get better? I did several optimizations for the release that I'm hoping will at least show some improvement.

@soukingang
Copy link
Author

@jordanbaird Tonight, i will try using ... Thanks a lot : )

@soukingang
Copy link
Author

soukingang commented Apr 6, 2024

image image @jordanbaird a bad news... its memory usage has a little big, i try removing and reinstall it, but it remains image

i had tried closing the menu bar apps, one by one . At last all my apps on the menubar (except built-in system) were closed, but its memory usage had still a little big , sometimes (be patient for a while) on my mac
image
image

I know it is strange ,but it appears ... although not often

Hope it will be fixed some day, but it's not urgent and It's possible that it can only be reappear on my mac :(

if you need some info(about this)what i can provide,you can reply me any time 。
--- that's my pleasure :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Needs performance improvements
Projects
None yet
Development

No branches or pull requests

3 participants