[colord/f18] Limit the memory allocation to 2GiB when building profiles

Richard Hughes rhughes at fedoraproject.org
Mon Jan 14 22:23:11 UTC 2013


commit ae7a3aa5124788cf28e2811ddcc0ea307d17e086
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 |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/colord.spec b/colord.spec
index 3b59ee8..4ab9e63 100644
--- a/colord.spec
+++ b/colord.spec
@@ -74,6 +74,10 @@ This may be useful for CMYK soft-proofing or for extra device support.
 %setup -q
 
 %build
+# 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