Switching from pxz to xz -0 in LP: #1701132 made the downloadable raspi2 image bigger, ~360MB which is a notable size increase from the original ~250MB while decreasing time the needed for compressing it.
The bigger compressed image is currently downloadable for Artful: http://cdimage.ubuntu.com/ubuntu/releases/17.10/release/
Generating the raspi2 image is not part of autopkgtests at the moment, but may be periodically tested internally often and I can't tell the number of downloads either thus I'm asking for help to pick the proper compression setting for xz.
Looking at the Xenial numbers I believe -3 would result reasonably fast builds with a tolerable increase in size compared to xz -6's results.
Switching from pxz to xz -0 in LP: #1701132 made the downloadable raspi2 image bigger, ~360MB which is a notable size increase from the original ~250MB while decreasing time the needed for compressing it. cdimage. ubuntu. com/ubuntu/ releases/ 17.10/release/
The bigger compressed image is currently downloadable for Artful:
http://
Zesty's image is 232MB: cdimage. ubuntu. com/ubuntu/ releases/ 17.04/release/
http://
To find the proper trade-off I ran compression tests on Xenial (xz ignores -T4 there): /bugs.launchpad .net/ubuntu/ +source/ livecd- rootfs/ +bug/1701132/ comments/ 5 : xenial- test:~/ Downloads$ ls -al ubuntu- 16.04.3- preinstalled- server- armhf+raspi2. img.p.xz 16.04.3- preinstalled- server- armhf+raspi2. img.p.xz
https:/
...
rbalint@
-rw-rw-r-- 1 rbalint rbalint 254621780 Nov 16 00:03 ubuntu-
...
-0 -T4 81.56 73.64 1.46 4820 29.27 25.82 0.09 2252 329984
-1 -T4 103.68 95.14 1.67 10800 24.41 22.86 0.12 3180 298060
-2 -T4 134.05 126.22 1.76 18480 22.06 21.65 0.13 4232 286276
-3 -T4 170.57 162.72 1.72 33812 21.62 20.94 0.12 6188 275036
-4 -T4 322.15 317.83 2.10 50284 21.55 21.05 0.07 6136 258684
-5 -T4 407.15 399.93 1.92 97656 21.85 20.50 0.12 10412 247320
-6 -T4 478.64 473.32 1.95 97660 21.92 20.34 0.09 10348 245772
-7 -T4 493.97 485.52 1.99 191692 20.66 20.01 0.08 18548 240192
-8 -T4 512.28 506.08 2.20 380096 22.03 19.58 0.11 34888 229740
-9 -T4 652.71 559.20 4.78 691076 20.57 19.15 0.08 67700 224496
...
The tests on Bionic are still running.
Generating the raspi2 image is not part of autopkgtests at the moment, but may be periodically tested internally often and I can't tell the number of downloads either thus I'm asking for help to pick the proper compression setting for xz.
Looking at the Xenial numbers I believe -3 would result reasonably fast builds with a tolerable increase in size compared to xz -6's results.