Public bug reported:

Hello,

I've noticed that Ubuntu Server images don't come with snapd and core snaps 
preseeded
which causes the first snap install to take an extremely long time on my 
machines. I've
done some research and I noticed that this was discussed in LP #2051572 [1] 
where it was
shown that preseeding slows down the boot process by 1.5s. It was prioritized 
to reduce
the boot slowdown by removing the preseeding at the expense of slowing down the 
first snap
install by ~15s.

I've looked into the boot slowdown and I've figured it's because `snapd` gets 
decompressed
during boot and that takes a long time. This can be fixed by replacing the snap 
with a decompressed
version, which lowers snap's boot overhead to ~350ms (even when a core snap is 
installed) - much
better than the original 1.5s and without increasing the first snap install 
time by ~15s.
However, this increases the size of the snapd snap from 51.6MB to 154.8MB.

I think this tradeoff is worth it. What do you think?

[1] https://bugs.launchpad.net/ubuntu/+source/ubuntu-meta/+bug/2051572

** Affects: ubuntu-meta (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2163647

Title:
  Allow preseeding core and snapd snaps in server seed by improving boot
  time

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-meta/+bug/2163647/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to