Open simondeziel opened 1 week ago
@simondeziel please can you try building LXD from main (on an ubuntu 22.04 system) and then sideloading it into the 5.21/edge snap and repeating the tests. This will help us rule out LXD itself and hopefully narrow it down to something in the latest/edge snap packaging (with the most likely candidate being the core24 base snap I expect).
It's been a while since we noticed that
tests/storage-vm lvm
from lxd-ci is much slower withlatest/edge
than it is with5.21/edge
.Here are some logs taken from CI runs comparing the 2 snap channels.
storage-vm lvm (latest/edge - 24.04)
taking ~44 minutes to complete:storage-vm lvm (5.21/edge - 24.04)
taking ~24 minutes to complete:In both cases, we see that transferring
v2/snap0
is much slower than transferringv2
itself. However, in thelatest/edge
case, the snapshot transfer is noticeably slower than that of5.21/edge
.In those 2 CI runs, the GHA runners are using the exact same
24.04
image. This means only LXD's snap and itscore2X
base differ.5.21/edge
usescore22
whilelatest/edge
usescore24
. To rule out alvm2
version issue, I usedlvm.external=true
in https://github.com/canonical/lxd-ci/pull/328 and got identical results which seems to indicate a potential regression introduced in LXD betweenstable-5.21
andmain
.One way to compare CI logs is to download raw logs from storage-vm lvm (latest/edge - 24.04) and storage-vm lvm (5.21/edge - 24.04). Once downloaded, they can be stripped of their datestamp prefix with
sed
:And then
meld
allows to compare them line by line (meld lvm-latest.txt lvm-521.txt
). This is with this method that I extracted the log snippets from above. Both the.raw
and.txt
files are included in the attached tarball. Due to GH policy,.tgz
files cannot be attached so I added a.txt
placeholder.