-
Notifications
You must be signed in to change notification settings - Fork 92
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
[bug] Every cosmic-applet in use is consuming 300 Mb of RAM memory. #723
Comments
Could you post the output of https://github.com/pixelb/ps_mem? That may be a little more useful than a screenshot of htop. I do see memory usage reported that's about 100x smaller than that. Though even using multiple megabytes per applet may mean there's room for improvement. |
@ids1024 Sure, here it is:
Those are the results of ps_mem after a fresh start. Later today I'll paste the results of ps_mem after a couple of hours running, to see if there's a big difference. |
I wonder what's causing this. Personally, i'm on latest commits and memory consumption seems reasonable
|
Those numbers look a bit high too, comparing to a recently started session on my system (with 3 monitors). Looks like a memory leak somewhere.
|
There is big improvement in memory consumption but imo it is still big, after fresh boot:
Was it a good decision to have applets as standard applications? From my, amateur view it makes bigger resource usage (either CPU or RAM) for no benefit, but only with drawbacks. Big resource usage, any configuration change takes seconds to apply, right click implementation multiple times (probably), etc. Default settings and it takes 150MB of RAM basically for nothing. |
My high resolution displays make the problem worse. It does not feel like memory leak for me. Something wrong with wgpu/vulkan. |
@HoldMyBeer1111 How many fonts and icon themes do you have installed? These cause higher memory usage the more you have. |
@mmstick You are right, removing nerd-fonts reduces memory usage by 500MB. |
Yeah, the current state of memory usage is almost entirely cached fonts in harfbuzz, followed by tiny_skia's clipping mask (up to 12 MB), and then cached icon theme files via rust-ini in freedesktop-icons (8MB). What remains is 5~10 MB for the applet and its iced/libcosmic runtime and widgets. |
This needs to be fixed before the first beta IMHO. It's absolutely a non-starter as an OS to not even fit in an 8 GB RAM machine if the user has lots of fonts or icon packs installed. The current state of things is simply wasteful in a way I haven't seen before. In fact, Cosmic is the heaviest DE currently, starting up at 2.4 GB of RAM (KDE/Gnome load at ~1.3 GB depending on the distro). |
@mmstick Could you take a look at pop-os/cosmic-text#347? |
@HoldMyBeer1111 It would be better to get a review from @jackpot51 |
Cosmic-applets version: 0.1.0
173134111022.04~09062c1Specific applet that this is regarding (if applicable): all of them
Issue/Bug description: each applet is consuming 300 Mb of memory
Steps to reproduce: use htop, btop, or a similar program to check RAM usage of comic-applets
Expected behavior: their sizes should be ~100 times smaller.
Other notes: I am using Pop!_OS 22.04 LTS x86_64 and Linux kernel 6.9.3-76060903-generic
Are these release builds compiled with
-C prefer-dynamic
and-C strip=symbols
flags to reduce the binary size? Maybe that could help.The text was updated successfully, but these errors were encountered: