Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 3369  / 1 Year ago, sat, march 18, 2023, 3:19:43

I have installed Geary, Calendar, Notes/Bijiben (all GNOME version 40) and some other applications as flatpaks via flathub.org. When executing flatpak list it shows the GNOME Application Platform packages for version 38 and 40 as expected.
While having only flatpak applications installed, which needed the GNOME 38 environment (e.g. Evolution 3.40), I didn't experience a significant change in my computer's performance. Since I installed the aforementioned applications (GNOME 40), my system is now as fast as a tortoise. The machine itself is not the newest model, but an i7 quad core with 12GB RAM shouldn't perform that poorly.


The machine is idling at the moment after a reboot at 4.4GB RAM usage with a cache of 1.9GB. I wonder where this results from, as I do not have any applications running in the background. gnome-system-monitor shows me a bunch of processes, but the highest RAM usage is that of gnome-shell with ~300-400MB. Since the indroduction of snaps and flatpaks, htop has become quite unusable for me, as I just can't figure out on a desktop Ubuntu what is going on anymore.


Some background processes now show up twice, e.g. everything related to Evolution such as evolution-calendar-factory, evolution-source-registry and evolution-addressbook-factory, which I guess is because of the flatpak install. Which is interesting to say the least, as the regular Ubuntu GNOME environment comes with Thunderbird, and I haven't had installed Evolution before.


My question is unfortunately rather unspecific, but can anybody enlighten me what is going on here with this package mess? I am sorry for being so ignorant not to see all the benefits of snaps, flatpaks, bells and whistles. Can anybody explain what happens when running a GNOME 40 application in Ubuntu's GNOME 3.36environment, and why everything slows down then? Is it normal that a GNOME desktop idles at 4.4 Gig, especially since there are just basic extensions like trash indicator or user themes installed?


Resources used after a reboot: Apart from the Nextcloud desktop client (autostart applications), there are no other applications running.


system monitor - resources


system monitor - processes


More From » 20.04

 Answers
2

Flatpaks nor snaps should slowdown the main operating system as long as the applications are not running. When they are running, they will use system resources, but that is also true for applications regularly installed using APT.


The main difference in resource usage will be in memory footprint. These applications are in principle containerized, and each package needs to provide in its own dependencies, to some extent however provided by other snaps or flatpaks. To run Gnome 40 flatpak applications, all the GTK4 libraries they need, must also be loaded, separate from these provided by the operating system. This is, for flatpak, done through "dependent" flatpak packages, the Application Platform packages that you mention. These can be shared among flatpaks, allowing to reduce the redundancy within the flatpak environment.


Once running, flatpak or snaps should not be slower than regular APT packages. At that point, they are just running code like any other apps, however running in a confined environment as setup by the flatpak or snap framework. Only when permitted do they access the resources of the installed operating system.


Not sure what is going on with your system, but this should not be because you are using Gnome 40 flatpaks. As said in the comments, it is true that "Flatpak and Snap are synonyms for redundancy, and therefore, wasted resources..." but with your 12 GB of RAM, that should not be in the order that it slows down your system. With or without flatpaks installed, a freshly booted Gnome Shell based system should not be using more than 1 GB of RAM (as indicated by the column "used" in the output of the command free -h --si).


[#1566] Sunday, March 19, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tatoethin

Total Points: 377
Total Questions: 110
Total Answers: 98

Location: Saudi Arabia
Member since Sat, Aug 20, 2022
2 Years ago
tatoethin questions
;