Originally posted by Vistaus
View Post
Announcement
Collapse
No announcement yet.
Ubuntu Core 22 Beta Released For IoT & Edge Devices
Collapse
X
-
Originally posted by pkese View Post
Snaps are much bigger than native .deb packages, because each snap brings with it its own set of runtime libraries.
When you have two .deb apps, say A and B, then both will use the same libc.so library that comes with the distro, e.g. libc-2.34.03.1.
Whereas with snaps, snap A can bring with it libc-2.34.03.1.so and snap B libc-2.34.03.2.so (and so forth with all library dependencies - an app usually uses dozens of shared libraries).
So with snaps you end up with multiple versions of system libraries on disk.
- Likes 2
Comment
-
Originally posted by krzyzowiec View PostNo they are much smaller, because snaps are compressed (that's why they are squashFS images in the first place).
However, as the snap is stored in its packaged state you are right, that you save 27% on disk trading for bigger memory use and slower startup. That is of course provided that your file-system is not using compression anyway...
156M /var/lib/snapd/snaps/firefox_1232.snap
329M /snap/firefox/1232
56M firefox_100.0-1_amd64.deb
212M deb content
Comment
-
-
Originally posted by Veto View PostHowever, as the snap is stored in its packaged state you are right, that you save 27% on disk trading for bigger memory use and slower startup.
In reality, once a program has been loaded to RAM, it makes no difference how it got there.
Comment
-
I have recently attended to a conference on the usage of (lossless) compression to access data (on the network) and the big-picture is fairly complicated since the sweet-point depends both on the compression and decompression speed (depending on the CPU power and the codec chosen) but also on the bandwidth available to access those data.
On very fast network, compression is detrimental to performances, while on slower network it is beneficial. Even more, for a given processor, the fastest access is obtained with different compression algorithm depending if the network is 1Gbit, 10Gbit or 100Gbit/s !
To come back on snaps and other compressed apps, it tends to prove this is a more complicated question then anticipated.
Comment
Comment