From: Kefu Chai Date: Wed, 17 Feb 2021 03:25:37 +0000 (+0800) Subject: ceph.spec.in: use multi-threaded xz compression X-Git-Tag: v17.1.0~2947^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b50fc9e61c39e6f9544b67cb5cd49c67bf6dd02e;p=ceph.git ceph.spec.in: use multi-threaded xz compression so we can build the compressed src rpm and binary rpms with smaller latency. see also https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.3_release_notes/technology_previews_installation_and_booting by default, rpm uses w9.gzdio which means: gzip level 9. but since xz is able to compress using multiple threads, let's switch to xz. xz's default compression level is 6, but ceph's source and binary packages are relatively large. let's use a higher compression level. Signed-off-by: Kefu Chai --- diff --git a/ceph.spec.in b/ceph.spec.in index 6c359cfd5267..949ccae7cafe 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -105,6 +105,9 @@ # disable dwz which compresses the debuginfo %global _find_debuginfo_dwz_opts %{nil} +# use multi-threaded xz compression: xz level 7 using ncpus threads +%global _source_payload w7T%{_smp_build_ncpus}.xzdio +%global _binary_payload w7T%{_smp_build_ncpus}.xzdio ################################################################################# # main package definition