From 404ffab739c7646d8d4ff5d52f0728e0883ac91b Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Fri, 2 Oct 2015 12:15:08 +0200 Subject: [PATCH] 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 --- ceph.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index a0835b45b94..1b28abcbfe0 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" \ -- 2.47.3