public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "Moessbauer, Felix" <felix.moessbauer@siemens.com>
To: Anton Mikanovich <amikan@ilbers.de>,
	"isar-users@googlegroups.com" <isar-users@googlegroups.com>,
	"Heine, Claudius" <claudius.heine.ext@siemens.com>
Cc: "Schild, Henning" <henning.schild@siemens.com>,
	"Schmidt, Adriaan" <adriaan.schmidt@siemens.com>,
	Baurzhan Ismagulov <ibr@ilbers.de>
Subject: RE: [PATCH v2] use xz and gzip on host (outside chroot)
Date: Tue, 30 Aug 2022 15:38:27 +0000	[thread overview]
Message-ID: <AS8PR10MB48653833B5E671263D7FFA5589799@AS8PR10MB4865.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <cf7c541c-9ad5-a295-f2c5-ce3684ae9e91@ilbers.de>

> From: isar-users@googlegroups.com <isar-users@googlegroups.com> On
> Behalf Of Anton Mikanovich
> Sent: Tuesday, August 16, 2022 5:11 PM
> To: Moessbauer, Felix (T CED SES-DE) <felix.moessbauer@siemens.com>;
> isar-users@googlegroups.com
> Cc: Schild, Henning (T CED SES-DE) <henning.schild@siemens.com>; Schmidt,
> Adriaan (T CED SES-DE) <adriaan.schmidt@siemens.com>; Baurzhan
> Ismagulov <ibr@ilbers.de>
> Subject: Re: [PATCH v2] use xz and gzip on host (outside chroot)
> 
> 08.08.2022 10:36, Felix Moessbauer wrote:
> > From: Adriaan Schmidt <adriaan.schmidt@siemens.com>
> >
> > This patch significantly speeds up the final image compression as the
> > compression itself is no longer emulated.
> >
> > For gzip, no additional dep has to be installed on the system, for xz
> > the xz-utils package has to be installed but this will be required
> > from bitbake 2.0 on anyways.
> >
> > Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
> > Acked-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> 
> Hello,
> 
> I've made some investigations to collect compression speed statistics on
> qemuarm64-bullseye Isar target with 490Mb rootfs. Here are the results:
> 
> XZ:
> Buildchroot xz (QEMU):   45.305s
> Host xz:                 18.783s
> 
> GZIP:
> Buildchroot gzip (QEMU):   4m30.155s
> Host gzip:                 1m30.135s
> Buildchroot gzip (native): 1m27.162s
> 
> Buildchroot pigz (QEMU):     32.265s
> Host pigz:                   13.131s

While this already shows the significant speedup, I saw much larger ones when using xz on multi GB images.

> 
> So it looks reasonable to use native compression and we really need to think
> about removing ISAR_CROSS_COMPILE="0" for imager.

I just gave that a try and it somehow magically worked out of the box (on my arm64 image).
Don't know why this was added in the first place.
Let's add Claudius to the discussion as he introduced that.

Just running the compression in the buildchroot-host is not as easy as many things are tightly coupled with the imager (like installing the compression utilities).
But just switching ISAR_CROSS_COMPILE is even simpler and further reduces the amount of work that has to be emulated.

Felix

> We also can try to use parallelized pigz for gzip compression.
> 


      reply	other threads:[~2022-08-30 15:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-08  7:36 Felix Moessbauer
2022-08-08 15:30 ` Henning Schild
2022-08-15 10:47   ` Baurzhan Ismagulov
2022-08-16 15:11 ` Anton Mikanovich
2022-08-30 15:38   ` Moessbauer, Felix [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AS8PR10MB48653833B5E671263D7FFA5589799@AS8PR10MB4865.EURPRD10.PROD.OUTLOOK.COM \
    --to=felix.moessbauer@siemens.com \
    --cc=adriaan.schmidt@siemens.com \
    --cc=amikan@ilbers.de \
    --cc=claudius.heine.ext@siemens.com \
    --cc=henning.schild@siemens.com \
    --cc=ibr@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox