From: Nathan Cutler Date: Fri, 2 Oct 2015 10:15:08 +0000 (+0200) Subject: ceph.spec.in: fix for out-of-memory errors in OBS X-Git-Tag: v9.1.0~26^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=404ffab739c7646d8d4ff5d52f0728e0883ac91b;p=ceph.git ceph.spec.in: fix for out-of-memory errors in OBS Add "--param ggc-min-expand=20 --param ggc-min-heapsize=32768" to RPM_OPT_FLAGS, ensuring gcc does not add debug symbols and is more aggressive about garbage collection. Thanks to Berthold Gunreben for debugging this issue. http://tracker.ceph.com/issues/13352 Fixes: #13352 Signed-off-by: Nathan Cutler --- diff --git a/ceph.spec.in b/ceph.spec.in index a0835b45b94c..1b28abcbfe03 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -4,6 +4,7 @@ %bcond_with tests %bcond_without tcmalloc %bcond_without libs_compat +%bcond_with lowmem_builder %if 0%{?fedora} || 0%{?rhel} %bcond_without selinux %endif @@ -544,6 +545,9 @@ MY_CONF_OPT="$CEPH_EXTRA_CONFIGURE_ARGS" MY_CONF_OPT="$MY_CONF_OPT --with-radosgw" +%if %{with lowmem_builder} +RPM_OPT_FLAGS="$RPM_OPT_FLAGS --param ggc-min-expand=20 --param ggc-min-heapsize=32768" +%endif export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'` %{configure} CPPFLAGS="$java_inc" \