diff options
author | Daniel Baumann <daniel@debian.org> | 2024-11-10 09:15:49 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-11-10 09:15:49 +0100 |
commit | a624442f00952b30711f93d29bebcea525f06757 (patch) | |
tree | 2be75cef8e18f790f431a98f8a98ae15c3ec2419 | |
parent | Making remaining non-binNMU-safe dependencies binNMU-able. (diff) | |
download | ceph-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-x | debian/calc-max-parallel.sh | 5 |
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)) |