[colord] Limit the memory allocation to 2GiB when building profiles
Richard Hughes
rhughes at fedoraproject.org
Mon Jan 14 11:05:46 UTC 2013
commit 407af1af47f3248a07370e05f702e33e1ffef5ee
Author: Richard Hughes <richard at hughsie.com>
Date: Mon Jan 14 09:46:29 2013 +0000
Limit the memory allocation to 2GiB when building profiles
colord.spec | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/colord.spec b/colord.spec
index 89c2078..b509f99 100644
--- a/colord.spec
+++ b/colord.spec
@@ -93,6 +93,11 @@ This may be useful for CMYK soft-proofing or for extra device support.
# https://bugzilla.redhat.com/show_bug.cgi?id=892837
export CFLAGS='-fPIC %optflags'
export LDFLAGS='-pie -Wl,-z,now -Wl,-z,relro'
+
+# Set ~2 GiB limit so that colprof is forced to work in chunks when
+# generating the print profile rather than trying to allocate a 3.1 GiB
+# chunk of RAM to put the entire B-to-A tables in.
+ulimit -Sv 2000000
%configure \
--with-daemon-user=colord \
--enable-gtk-doc \
More information about the scm-commits
mailing list