]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: disable parallel compression on SUSE 39813/head
authorNathan Cutler <ncutler@suse.com>
Wed, 3 Mar 2021 12:55:51 +0000 (13:55 +0100)
committerNathan Cutler <ncutler@suse.com>
Wed, 3 Mar 2021 14:48:05 +0000 (15:48 +0100)
This code causes the Ceph build in OBS to fail due to OOM, because the typical
setting of %_smp_build_ncpus in the OBS is 16, but available memory is
insufficient to sustain such a high degree of parallelism for the in-memory
compression operation.

Fixes: b50fc9e61c39e6f9544b67cb5cd49c67bf6dd02e
Fixes: https://tracker.ceph.com/issues/49583
Signed-off-by: Nathan Cutler <ncutler@suse.com>
ceph.spec.in

index c12975f45492fe93668b1ce048cc4747a2c73278..895afc534916fcd7e000453ce986740b30ba5128 100644 (file)
 
 # disable dwz which compresses the debuginfo
 %global _find_debuginfo_dwz_opts %{nil}
+%if ! 0%{?suse_version}
 # 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
+%endif
 
 %define smp_limit_mem_per_job() %( \
   kb_per_job=%1 \