Page 1 of 5 123 ... LastLast
Results 1 to 10 of 43

Thread: Snaps Impact on Ubuntu?

  1. Back To Top    #1
    Kubuntu as a Second Language NoWorries's Avatar
    Join Date
    Jun 2007
    Location
    Adelaide, South Australia
    Posts
    1,408
    Threads
    160
    Local Date
    Jun 1st 2020
    Local Time
    10:37 PM

    Snaps Impact on Ubuntu?

    No doubt many of you are grateful for the superb development effort done by all in producing Kubuntu 20.04.

    You probably noticed that the downloaded iso file is 2.2GB. Well I just checked the size of Ubuntu 20.04 and it is 2.5GB.

    I am wondering if this difference is due to snaps being used as this, and the Gnome desktop, are the only major differences.

    If snaps is the main reason for this difference, could someone who is in the know, please either confirm or deny what I am thinking. Assuming that snaps is the reason, will we be able to avoid it for Kubuntu 20.10 as we can with Kubuntu 20.04?

  2. Back To Top    #2
    Kubuntu as a Second Language
    Join Date
    Mar 2013
    Posts
    1,194
    Threads
    192
    Local Date
    Jun 1st 2020
    Local Time
    01:07 PM
    Code:
     $ snap list
    Name                             Version             Rev   Tracking         Publisher   Notes
    »core18                           20200311            1705  latest/stable    canonical✓  base
    featherpad                       0.10.0+pkg-3be6     17    latest/stable    brlin       -
    »gnome-3-34-1804                  0+git.2c86692       27    latest/stable/…  canonical✓  -
    »gtk-common-themes                0.1-36-gc75f853     1506  latest/stable/…  canonical✓  -
    kcalc                            20.04.0             65    latest/stable    kde✓        -
    kde-frameworks-5-core18          5.61.0              32    latest/stable    kde✓        -
    kde-frameworks-5-qt-5-14-core18  5.68.0              4     latest/stable    kde✓        -
    kolourpaint                      20.04.0             56    latest/stable    kde✓        -
    ksnip                            1.6.1               3     latest/stable    dporobic    -
    okular                           20.04.0             98    latest/stable    kde✓        -
    »snap-store                       3.36.0-74-ga164ec9  433   latest/stable/…  canonical✓  -
    »snapd                            2.44.3              7264  latest/stable    canonical✓  snapd
    $
    This is what I have on Ubuntu 20.04. The ones marked with » came with the system. The rest were installed by me.

    I don't know how to figure out the contribution of the ones marked with » to the size of the 20.04 iso or to the installed system.
    Kubuntu 18.04 with Baloo file search and content indexing
    KDE neon 18.04 User Edition with Baloo file search and content indexing

  3. Back To Top    #3
    Ascendant GreyGeek's Avatar
    Join Date
    Feb 2009
    Posts
    16,479
    Threads
    1168
    Local Date
    Jun 1st 2020
    Local Time
    08:07 AM
    Quote Originally Posted by NoWorries View Post
    .... will we be able to avoid it for Kubuntu 20.10 as we can with Kubuntu 20.04?
    More than likely. I purged snap and all of its loop and loop mount points, and chromium. I won't be using 20.10, since I'll be staying with 20.04 until the next LTS or later.

  4. Back To Top    #4
    Esteemed Member kyonides's Avatar
    Join Date
    Jan 2009
    Posts
    679
    Threads
    108
    Local Date
    Jun 1st 2020
    Local Time
    07:07 AM
    Thanks for reminding me to remove snap. I had forgotten it even existed. XD
    Multibooting: Kubuntu Focal Fossa 20.04
    Before: Precise 12.04 Xenial 16.04 and Bionic 18.04
    Win 10 sadly
    Using Linux since June, 2008

  5. Back To Top    #5
    Kubuntu as a Second Language
    Join Date
    Mar 2013
    Posts
    1,194
    Threads
    192
    Local Date
    Jun 1st 2020
    Local Time
    01:07 PM
    Quote Originally Posted by NoWorries View Post

    I am wondering if this difference is due to snaps being used as this, and the Gnome desktop, are the only major differences.
    The snap sizes can be seen by running `ls -lh /var/lib/snapd/snaps`
    Code:
    $ ls -lh /var/lib/snapd/snaps
    total 968M
    -rw------- 2 root root  55M Apr 23 13:12 core18_1705.snap
    -rw------- 2 root root 241M Apr 23 13:12 gnome-3-34-1804_24.snap <<<
    -rw------- 1 root root 243M Apr 27 12:03 gnome-3-34-1804_27.snap
    -rw------- 2 root root  63M Apr 23 13:13 gtk-common-themes_1506.snap
    -rw------- 2 root root 291M Apr 26 17:46 kde-frameworks-5-qt-5-14-core18_4.snap •••
    drwxr-xr-x 2 root root 4.0K Apr 10 20:27 partial
    -rw------- 2 root root  28M Apr 23 13:12 snapd_7264.snap
    -rw------- 2 root root  50M Apr 23 13:13 snap-store_433.snap
    $
    <<< indicates a revision. A minimum of two revisions (older versions) of each snap are stored. Obviously, the Ubuntu iso won't have any revisions
    ••• was not part of the default iso; it was installed by me. This particular snap will be used by other qt snaps allowing these other qt snaps to be smaller.
    Kubuntu 18.04 with Baloo file search and content indexing
    KDE neon 18.04 User Edition with Baloo file search and content indexing

  6. Back To Top    #6
    Newbie
    Join Date
    May 2020
    Posts
    1
    Threads
    0
    Local Date
    Jun 1st 2020
    Local Time
    07:07 PM
    Hi, I'm new(er) on Ubuntu, and Snap had been a great help to me. Some of my favourite apps are exclusively available as Snap and many apps don't provide first-class support for Linux (either you have to compile those apps or you have to wait for them to release compatible binary or to add support for your release in their PPA. You have to repeat the process after every update). Most apps in LTS repository almost never gets updated so the traditional counterpart of an app slowly gets outdated. So the new users has to start a mission to solve this problem but often finds them too hard.
    While I'm sure Linux expert programmers can easily get around these things it's an unpleasant experience for many. I hope Kubuntu will keep supporting installing Snap apps out of the box. And people who don't want them can just "not use" so I think it is removing much more pain than it creates.
    Last edited by HatinGokbori87; May 20th 2020 at 03:01 PM. Reason: correcting

  7. Back To Top    #7
    Esteemed Member
    Join Date
    Oct 2007
    Posts
    597
    Threads
    16
    Local Date
    Jun 1st 2020
    Local Time
    11:07 AM
    Quote Originally Posted by HatinGokbori87 View Post
    Hi, I'm new(er) on Ubuntu, and Snap had been a great help to me...
    You are just the type of person Ubuntu is aiming for. Me, on the other hand I just installed Arch KDE , along side neon, just in the case the future Ubuntu makes it impossible for me to use Ubuntu anything. Snaps will not be part of my future.

  8. Back To Top    #8
    Kubuntu Padawan Don B. Cilly's Avatar
    Join Date
    Nov 2012
    Location
    Ibiza, Spain
    Posts
    1,139
    Threads
    57
    Local Date
    Jun 1st 2020
    Local Time
    03:07 PM
    Well, they might rethink the implementation of them so they don't clog up you system with loops and add unacceptable amounts of time to your boot.

    [EDIT]
    Quote Originally Posted by verndog View Post
    I just installed Arch KDE , along side neon
    Not to be "tarty", but don't you find the whole pacman/AUR thing just as annoying as snaps? I do...
    Last edited by Don B. Cilly; May 20th 2020 at 04:51 PM.

  9. Back To Top    #9
    Insert Pithy Nothingness here claydoh's Avatar
    Join Date
    Sep 2005
    Location
    Savannah GA
    Posts
    8,238
    Threads
    228
    Local Date
    Jun 1st 2020
    Local Time
    09:07 AM
    Homepage: Go to claydoh's homepage
    Oh, it sure slows my boot time bu such a yuuuge amount.

    Before any snaps, on 20.04
    Code:
    dohbuoy@dohbuoy-FLEX-15:~$ systemd-analyze 
    Startup finished in 1.622s (kernel) + 7.473s (userspace) = 9.096s 
    graphical.target reached after 7.166s in userspace
    
    dohbuoy@dohbuoy-FLEX-15:~$ systemd-analyze -blame
    systemd-analyze: invalid option -- 'b'
    dohbuoy@dohbuoy-FLEX-15:~$ systemd-analyze blame 
    6.075s NetworkManager-wait-online.service                   
     527ms systemd-logind.service                               
     488ms upower.service                                       
     375ms systemd-journald.service                             
     367ms dev-nvme0n1p2.device                                 
     314ms systemd-resolved.service                             
     305ms tlp.service                                          
     253ms systemd-timesyncd.service                            
     176ms systemd-udev-trigger.service                         
     165ms networkd-dispatcher.service                          
     162ms udisks2.service                                      
     157ms accounts-daemon.service                              
     142ms snapd.service                                        
     101ms avahi-daemon.service                                 
      97ms NetworkManager.service                               
      90ms polkit.service                                       
      86ms iio-sensor-proxy.service                             
      81ms user@1000.service                                    
      73ms systemd-journal-flush.service

    Next, I installed a few snaps, namely Gimp and Kdenlive

    Code:
    dohbuoy@dohbuoy-FLEX-15:~$ snap list
    Name                             Version                     Rev   Tracking       Publisher     Notes
    core                             16-2.44.3                   9066  latest/stable  canonical✓    core
    core18                           20200427                    1754  latest/stable  canonical✓    base
    gimp                             2.10.18                     273   latest/stable  snapcrafters  -
    gnome-3-28-1804                  3.28.0-16-g27c9498.27c9498  116   latest/stable  canonical✓    -
    gtk-common-themes                0.1-36-gc75f853             1506  latest/stable  canonical✓    -
    gtk2-common-themes               0.1                         9     latest/stable  canonical✓    -
    kde-frameworks-5-qt-5-14-core18  5.68.0                      4     latest/stable  kde✓          -
    kdenlive                         20.04.0                     24    latest/stable  kde✓          -
    snapd                            2.44.3                      7264  latest/stable  canonical✓    snapd
    Next, for the massive, impressively obvious boot slowdown:

    Code:
    dohbuoy@dohbuoy-FLEX-15:~$ systemd-analyze 
    Startup finished in 1.607s (kernel) + 7.651s (userspace) = 9.258s 
    graphical.target reached after 7.314s in userspace
    
    
    dohbuoy@dohbuoy-FLEX-15:~$ systemd-analyze blame 
    6.204s NetworkManager-wait-online.service                            
     539ms systemd-logind.service                                        
     478ms upower.service                                                
     377ms dev-nvme0n1p2.device                                          
     336ms snap-kde\x2dframeworks\x2d5\x2dqt\x2d5\x2d14\x2dcore18-4.mount
     335ms tlp.service                                                   
     332ms systemd-journald.service                                      
     329ms snap-snapd-7264.mount                                         
     303ms systemd-resolved.service                                      
     298ms systemd-timesyncd.service                                     
     296ms snapd.service                                                 
     259ms snap-kdenlive-24.mount                                        
     236ms snap-core-9066.mount                                          
     232ms snap-gnome\x2d3\x2d28\x2d1804-116.mount                       
     226ms snap-gtk2\x2dcommon\x2dthemes-9.mount                         
     222ms dev-loop1.device                                              
     205ms systemd-localed.service                                       
     199ms dev-loop2.device                                              
     199ms dev-loop3.device                                              
     197ms snap-gtk\x2dcommon\x2dthemes-1506.mount                       
     187ms systemd-udev-trigger.service
    .2 seconds. I am appalled!
    Actually it is .161 seconds, which IS 1.78%, an arguably large percentage, but a tiny-a***d amount of actual time.

    After masking NetworkManager-wait-online.service , whiich I don't need at them moment, as this laptop has no network mounts currently:

    Code:
    dohbuoy@dohbuoy-FLEX-15:~$ systemd-analyze 
    Startup finished in 1.598s (kernel) + 2.166s (userspace) = 3.765s 
    graphical.target reached after 1.587s in userspace

    We also forget that things are not loaded sequentually,


    Lenovo Flex 15
    Processors: 4 core/8 thread Intel® Core™ i5-1035G1 CPU
    Memory: 7.5 GiB of RAM
    Samsung oem m.2 ssd

  10. Back To Top    #10
    Insert Pithy Nothingness here claydoh's Avatar
    Join Date
    Sep 2005
    Location
    Savannah GA
    Posts
    8,238
    Threads
    228
    Local Date
    Jun 1st 2020
    Local Time
    09:07 AM
    Homepage: Go to claydoh's homepage
    And aren't mounts already long 'cluttered', in Linux generally speaking?


    Code:
    testes@testes-VirtualBox:~$ mount
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    udev on /dev type devtmpfs (rw,nosuid,relatime,size=4034888k,nr_inodes=1008722,mode=755)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=815304k,mode=755)
    /dev/sda5 on / type ext4 (rw,relatime,errors=remount-ro)
    securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
    tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
    cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
    cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
    pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
    bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
    cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
    cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
    cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
    cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
    cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
    cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
    cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
    cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
    cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
    cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
    cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
    systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=31,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=1151)
    debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
    mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
    hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
    configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
    fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=815304k,mode=700,uid=1000,gid=1000)

Page 1 of 5 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •