@vorlon

> Also, statically seeding a particular base snap is bad form, as soon
as lxd upgrades its base you lose your performance benefit and have to
play catch-up in a stable release.

yes I don't like this either. Even if we do change it later to core24
then the expectations people have for their snap startup/install time
for snaps, not LXD, which use core22 will change/break.

> If "time to initialize lxd" is your metric, I think you're measuring
the wrong thing :)

Well it isn't just LXD though - any snap install/init will be affected
with this change

@jchittum

> * the amount of time/slow down for `lxd` booting from `lxd-installer`
in a "no snaps pre-seeded" setting

We do have this. In initial tests it 15 seconds vs 29 seconds.

> * the _usage_ and _expectation_ about the speed here.

I will try get this info from LXD team

> * boot times w/ and w/o preseeded snaps

I will gather this info

@paelzer

> I never heard someone complaining that LXD takes a bit there, but every 
> second of boot time seems to be valued highly.
> Now that we had to reduce this to the lxd-installer everywhere (Due to LP 
> #2051346) it is really worth to be re-revaluated. Thank you for driving this 
> Phil!

Yes I really want this to be a decision we know we are making and
consciously making.


>IMHO now that your first LXD command will take a bit longer already (due to 
>fetching LXD snap), the exact amount of that "a bit longer" (as being more by 
>also fetching snapd and base) seems almost irrelevant as long as it is in the 
>same ballpark.

is 15 seconds vs 30 seconds really in the same ballpark?

> Furthermore as Simon showed (thanks), by snapd being a baseless snap
we'd not even gain something by having that around already for the
latter fetch of lxd by lxd-installer.

Not true. It still takes time to fetch and install the snapd snap -
6.738s in my test in qemu


> I further appreciate John's comment that we should back up some of our 
> current assumptions (how much will this slow down lxc interactions, how much 
> will the boot speed gain) with some actual data.

I will continue to gather data on the boot speed implications.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to ubuntu-meta in Ubuntu.
https://bugs.launchpad.net/bugs/2051572

Title:
  Always preseed core and snapd snap in server seed

Status in ubuntu-meta package in Ubuntu:
  New
Status in ubuntu-meta source package in Noble:
  New

Bug description:
  In removing the LXD snap from preseeding in the server seed for Ubuntu
  24.04 as part LP #2051346 [1] we also removed the snapd snap and the
  core22 snap.

  This means that are subsequent snap install, like LXD, will take much
  longer than expected for a non minimized image.

  Time taken to install LXD snap using the lxd-installer package without
  snapd and core22 preinstalled/seeded

  ```
  ubuntu@cloudimg:~$ time sudo lxd --version
  Installing LXD snap, please be patient.
  5.19

  real  0m29.107s
  user  0m0.006s
  sys   0m0.005s
  ```

  Time taken to install LXD snap using the lxd-installer package with
  snapd and core22 already installed.

  ```
  ubuntu@cloudimg:~$ time sudo lxd --version
  Installing LXD snap, please be patient.
  5.19

  real  0m15.034s
  user  0m0.005s
  sys   0m0.005s
  ```

  This is a significant difference and for a workload we intend to
  remain as a core tested and tracked workload. As such I propose we re-
  introduce core22 and snapd snaps to our seed.

  LXD do intend to move to the core24 snap as their base as I'm sure
  snapd does too so when that does happen we need to update the
  preseeded core snap.

  This bug is to track the work of making that change in the server seed
  @ https://git.launchpad.net/~ubuntu-core-dev/ubuntu-
  seeds/+git/ubuntu/tree/server#n69

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

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


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to