From: "Alexandre Belloni" <alexandre.belloni@bootlin.com>
To: Alexander Kanavin <alex.kanavin@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [RFC PATCH 7/7] package_rpm: use zstd instead of xz
Date: Wed, 8 Sep 2021 13:31:57 +0200 [thread overview]
Message-ID: <YTie/qN+H1Yo4qjp@piout.net> (raw)
In-Reply-To: <20210830184800.954770-7-alex.kanavin@gmail.com>
Hello Alex,
On 30/08/2021 20:48:00+0200, Alexander Kanavin wrote:
> zstd has similar time and space performance in compression but is
> vastly faster in decompression, which benefits rootfs creation
> (especially when installing very large packages) and on-target
> package installation.
>
I believe this caused the following repo failures:
https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20210907-bv62etev/packages/diff-html/
I started a subsequent build without the patch and it have the issue.
> Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
> ---
> meta/classes/package_rpm.bbclass | 4 ++--
> meta/conf/bitbake.conf | 3 +++
> 2 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
> index 88d861c0e7..fc1e4b3a4a 100644
> --- a/meta/classes/package_rpm.bbclass
> +++ b/meta/classes/package_rpm.bbclass
> @@ -684,8 +684,8 @@ python do_package_rpm () {
> cmd = cmd + " --define '_use_internal_dependency_generator 0'"
> cmd = cmd + " --define '_binaries_in_noarch_packages_terminate_build 0'"
> cmd = cmd + " --define '_build_id_links none'"
> - cmd = cmd + " --define '_binary_payload w6T%d.xzdio'" % int(d.getVar("XZ_THREADS"))
> - cmd = cmd + " --define '_source_payload w6T%d.xzdio'" % int(d.getVar("XZ_THREADS"))
> + cmd = cmd + " --define '_binary_payload w19T%d.zstdio'" % int(d.getVar("ZSTD_THREADS"))
> + cmd = cmd + " --define '_source_payload w19T%d.zstdio'" % int(d.getVar("ZSTD_THREADS"))
> cmd = cmd + " --define 'clamp_mtime_to_source_date_epoch 1'"
> cmd = cmd + " --define 'use_source_date_epoch_as_buildtime 1'"
> cmd = cmd + " --define '_buildhost reproducible'"
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 2140d498f7..52d40738f4 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -814,6 +814,9 @@ XZ_THREADS ?= "${@oe.utils.cpu_count(at_least=2)}"
> XZ_DEFAULTS ?= "--memlimit=${XZ_MEMLIMIT} --threads=${XZ_THREADS}"
> XZ_DEFAULTS[vardepsexclude] += "XZ_MEMLIMIT XZ_THREADS"
>
> +# Default parallelism for zstd
> +ZSTD_THREADS ?= "${@oe.utils.cpu_count(at_least=2)}"
> +
> # Limit the number of threads that OpenMP libraries will use. Otherwise they
> # may fallback to using all CPUs
> export OMP_NUM_THREADS = "${BB_NUMBER_THREADS}"
> --
> 2.31.1
>
>
>
>
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2021-09-08 11:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-30 18:47 [RFC PATCH 1/7] lua: add a recipe from meta-oe Alexander Kanavin
2021-08-30 18:47 ` [RFC PATCH 2/7] lua: update 5.3.6 -> 5.4.3 Alexander Kanavin
2021-08-30 18:47 ` [RFC PATCH 3/7] rpm: update 4.16.1.3 -> 4.17.0 Alexander Kanavin
2021-08-30 18:47 ` [RFC PATCH 4/7] libdnf: fix the rpm sqlite-only target setup Alexander Kanavin
2021-08-30 18:47 ` [RFC PATCH 5/7] libsolv: disable rpm bdb format support Alexander Kanavin
2021-08-30 18:47 ` [RFC PATCH 6/7] perl: do not build berkeley db module by default Alexander Kanavin
2021-08-30 18:48 ` [RFC PATCH 7/7] package_rpm: use zstd instead of xz Alexander Kanavin
2021-09-08 11:31 ` Alexandre Belloni [this message]
2021-09-08 12:05 ` [OE-core] " Alexander Kanavin
2021-09-08 12:54 ` Alexandre Belloni
2021-09-08 14:02 ` Alexander Kanavin
2021-09-08 14:37 ` Alexandre Belloni
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=YTie/qN+H1Yo4qjp@piout.net \
--to=alexandre.belloni@bootlin.com \
--cc=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/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