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 memory usage #45

Open
gmagic opened this issue Oct 17, 2023 · 18 comments
Open

High memory usage #45

gmagic opened this issue Oct 17, 2023 · 18 comments

Comments

@gmagic
Copy link

gmagic commented Oct 17, 2023

After app start-up i see 1Gb+ of ram usage.
image

@tim77
Copy link
Contributor

tim77 commented Oct 17, 2023

In my case at startup app uses 72MB and keep growing to 500MB and more.

  • Build: Flathub version;
  • NVIDIA drivers.

@tim77
Copy link
Contributor

tim77 commented Oct 19, 2023

After some observations i found that seems like 1.03GB is maximum limit and after this point it stops growing. So this doesn't look like memory leak. But this to much i believe for and would be nice to reduce somehow memory consumption.
Снимок экрана от 2023-10-19 16-33-38

@jenavarro
Copy link

Also happens to me. Memory usage went from around 150MB when started then
Resources net.nokyan.Resources 1.1.0 stable system
image

@nokyan
Copy link
Owner

nokyan commented Oct 21, 2023

Thank you all very much for the reports, I'll try to find out why that happens :)

@liz-desartiges
Copy link

I have noticed higher ram usage that what've been reported here : 1.73GB of ram used by ressources
image

@nokyan
Copy link
Owner

nokyan commented Dec 19, 2023

Just a quick update: I now know what seems to cause the leak and have opened a PR (#128) for it. Unfortunately I haven't yet found out how to get rid of it. I hope I'll figure something out before releasing 1.3.
If someone is knowledgeable about GTK and has an idea, please don't hesitate to tell me in the PR or here. :)

@nokyan
Copy link
Owner

nokyan commented Dec 21, 2023

Potentially great news: I believe it's fixed now. Interestingly though, I probably fixed it on accident at some point and introduced another one with the right click context menus. In the memory-leak-fix branch I've removed the context menus again, which for me kept memory usage very much under control. I'd appreciate if someone could test it as well, I'll definitely run it over night tonight. :)

@outusuke
Copy link

It hasn't been fixed yet, I still see it consuming GB after being open for a while

@nokyan
Copy link
Owner

nokyan commented Jun 18, 2024

I've experienced increased memory consumption as well, but I frankly have not a single clue why that is.

@bbktsk
Copy link

bbktsk commented Jul 8, 2024

Almost 4GB memory consumed after cca 20 hours. Version 1.5.0 from flatpak, Ubuntu 22.04 with regolith desktop, i3wm, intel integrated gfx, two 4k displays.
image

@nokyan
Copy link
Owner

nokyan commented Jul 28, 2024

I've changed some internal stuff regarding apps and processes, could you check out the appscontext-restructure branch? In my testing memory usage and leakage is reduced.

@jojo2357
Copy link
Contributor

I'm definitely getting some reduction, however that is comparing the flatpak vers to the builder vers so not certain that it will be permanent

@bbktsk
Copy link

bbktsk commented Aug 18, 2024

Can you please make the flakpak for that test branch available? My rust-fu is not strong enough to build it for myself, but I'll be happy to test.

@nokyan
Copy link
Owner

nokyan commented Aug 18, 2024

Just a heads-up: the branch is merged now so you can just test main.

@jojo2357
That's good to see! To my knowledge, if anything, the Builder version should perform worse as it isn't as optimized (by the compiler) as the Flatpak production version.

@bbktsk
I'll look into it but you shouldn't need any Rust to build the flatpak for yourself. In fact, it should be just three commands. :)

flatpak install org.gnome.Sdk//46 org.freedesktop.Sdk.Extension.rust-stable//23.08 org.gnome.Platform//46 org.freedesktop.Sdk.Extension.llvm18//23.08
flatpak-builder --user flatpak_app build-aux/net.nokyan.Resources.Devel.json
flatpak-builder --run flatpak_app build-aux/net.nokyan.Resources.Devel.json resources

@jojo2357
Copy link
Contributor

After 2 days on 1.6.0 im seeing 0.5GiB memory used. Progress for sure, but not solved.

@nokyan
Copy link
Owner

nokyan commented Aug 27, 2024

After 2 days on 1.6.0 im seeing 0.5GiB memory used. Progress for sure, but not solved.

Great to see, but I agree with you, not solved yet. I'll keep experimenting, though right now I'm out of ideas of what to try to be honest.

@JokerQyou
Copy link

Over 1.5GiB used over ~10 days with 1.6.0.

@0xCA
Copy link

0xCA commented Feb 3, 2025

1.7.1, definitely not fixed. Also sometimes it does a crazy thing, consuming several gigs of video memory. But most of the time it's just gigs of ram. Easy to see just in one day. I have a memory view opened most of the time, and sometimes app list, sorted by ram usage. Ironically, I installed it to better manage memory usage of my system.

Image

an example of high GPU memory usage (it will go to 3-5 gigs in a short while)

Image

just 5 minutes later

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

No branches or pull requests

10 participants