summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2024-11-10 09:15:49 +0100
committerDaniel Baumann <daniel@debian.org>2024-11-10 09:15:49 +0100
commita624442f00952b30711f93d29bebcea525f06757 (patch)
tree2be75cef8e18f790f431a98f8a98ae15c3ec2419
parentMaking remaining non-binNMU-safe dependencies binNMU-able. (diff)
downloadceph-19-a624442f00952b30711f93d29bebcea525f06757.tar.xz
ceph-19-a624442f00952b30711f93d29bebcea525f06757.zip
Building with parallel=1 for all 32bit architectures.
Signed-off-by: Daniel Baumann <daniel@debian.org>
-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))