← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1732681] Re: Switching to to xz -0 from pxz increases compressed raspi2 image size

 

Since the change passing -0 to xz never entered Xenial on its own this
bug does not have to be tracked for Xenial.

** Changed in: livecd-rootfs (Ubuntu Xenial)
       Status: In Progress => Fix Committed

** Changed in: livecd-rootfs (Ubuntu Xenial)
       Status: Fix Committed => Invalid

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1732681

Title:
  Switching to to xz -0 from pxz increases compressed raspi2 image size

Status in livecd-rootfs package in Ubuntu:
  Fix Released
Status in livecd-rootfs source package in Xenial:
  Invalid

Bug description:
  [Impact]

   * Switching from xz -0 to xz (-6) for compression raspi2 image.

  [Test Case]

   * To test the change install updated livecd-rootfs on armhf and create images setting the following environment variables: ARCH=armhf SUBARCH=raspi2 PROJECT=ubuntu-cpc.
     Notice that the xz-compressed rapi2 image is still created with xz's default (-6) compression. 

  [Regression Potential]

   * In case of this change causes regression it would manifest itself
  as failing build for raspi2, failing build for ubuntu-cpc images or
  using other compression for raspi2 images than xz -6.

  [Original Bug Report Text]

  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/

  Zesty's image is 232MB:
  http://cdimage.ubuntu.com/ubuntu/releases/17.04/release/

  To find the proper trade-off I ran compression tests on Xenial (xz ignores -T4 there):
  https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1701132/comments/5 :
  ...
  rbalint@xenial-test:~/Downloads$ ls -al ubuntu-16.04.3-preinstalled-server-armhf+raspi2.img.p.xz
  -rw-rw-r-- 1 rbalint rbalint 254621780 Nov 16 00:03 ubuntu-16.04.3-preinstalled-server-armhf+raspi2.img.p.xz
  ...
  -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.

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