8

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

2
  • 1
    Flatpak and Snap are synonyms for redundancy, and therefore, wasted resources... In some cases it is worth the performance costs. In others, not so much. YMMV in each case. – Levente May 16 at 16:46
  • I agree. If it wasn't for the matter that our mail server runs on Aliyun ("fantastic" Alibaba web services), I wouldn't bother installing Geary in v40, thus skipping this flatpak stuff altogether. – leonis_csem May 16 at 17:00
5

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).

1
  • I tried to understand more about the RAM usage, as a reboot always comes up with idling at 2.5-2.5GB used. cat /proc/meminfo or vmstat -s only give me some insight on the structure of RAM usage, but not what causes it. As I am really particular about avoiding software which uses up lots of resources (no Electron crap, no Qt environment based apps, etc), I have no clue. Perhaps I should examine the connection of using ZFS with RAM allocation. Thank you for your answer! – leonis_csem May 17 at 11:54
3

I have no idea how you would get those results. I doubt that they are related to the use of snaps and flatpaks.

But I can at least answer partly. Geary uses Evolution backends and I guess that Calendar does as well. So there's nothing strange about that. For them to show up twice, my guess is you have native Ubuntu versions and a snap or flatpak version as well.

7
  • I supposed that gnome-calendar uses the Evolution backend. It's just weird that the whole backend suite of Evolution exists twice - even the addressbook handler, because I have neither installed GNOME Contacts nor Evolution as deb package. – leonis_csem May 17 at 11:47
  • Do you have Geary as a deb? There are other things in Gnome that uses the Evolution backends as well. – Jo-Erlend Schinstad May 17 at 18:57
  • Nope, none of the mentioned applications were installed as debs. The system came with gnome-calendar though, and I figured the online accounts services might also have something to do with the evolution backends. – leonis_csem May 18 at 7:44
  • 1
    Right. And calendars in shells as well. It's in use on Ubuntu Unity, which I guess is because it has the calendar on the panel. They're not heavy services though. They don't consume much RAM and they're completely idle, so it's not a problem. Of course, once you install a containerized package, they can't access the existing instances of those services, so they have to launch their own. – Jo-Erlend Schinstad May 18 at 16:09
  • Of course these services don't cause that much of a hassle, but for whatever reason I could be considered as "OCD - terminal stage" about wasted resources on my system, and it seems all these minor things in the background add up to a GNOME Shell idling at minimum 2.5GB RAM and 4.5-4.8GB RAM when running these applications. It just pisses me off to e.g. start the gnome-systems-monitor 3.38, which obviusly came with the 3.38 environment and I never installed, then check its RAM usage which shows me 15MB used, but then I check the resources tab and notice that all of this added 400MB, WTF. – leonis_csem May 19 at 9:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.