summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdebian/calc-max-parallel.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/calc-max-parallel.sh b/debian/calc-max-parallel.sh
index 4fc6a3021..9963a9ace 100755
--- a/debian/calc-max-parallel.sh
+++ b/debian/calc-max-parallel.sh
@@ -6,6 +6,11 @@
# MDCache.cc generally runs out of RAM in 4G of memory
# with parallel=4
+if [ ""$(dpkg-architecture -qDEB_HOST_ARCH_BITS) = 32 ] ; then
+ echo "--max-parallel=1"
+ exit 0
+fi
+
total_ram=$(grep MemTotal /proc/meminfo | awk '{ print $2 }')
sixteen_g=$((16*1024*1024))