diff options
author | Daniel Baumann <daniel@debian.org> | 2024-11-10 05:30:26 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2024-11-10 09:16:41 +0100 |
commit | 0c59a5ad7271e9373749797cfe27399854198439 (patch) | |
tree | 57c7f341542371e4fbe86e7d0e85555f0339a1f1 | |
parent | Simplifying calc-max-parallel.sh by using numbers in variables names for ram ... (diff) | |
download | ceph-19-0c59a5ad7271e9373749797cfe27399854198439.tar.xz ceph-19-0c59a5ad7271e9373749797cfe27399854198439.zip |
Renaming variable for total amount of ram in calc-max-parallel.sh for consistency.
Signed-off-by: Daniel Baumann <daniel@debian.org>
-rwxr-xr-x | debian/calc-max-parallel.sh | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/debian/calc-max-parallel.sh b/debian/calc-max-parallel.sh index 947701c87..796ba4e88 100755 --- a/debian/calc-max-parallel.sh +++ b/debian/calc-max-parallel.sh @@ -11,7 +11,7 @@ if [ ""$(dpkg-architecture -qDEB_HOST_ARCH_BITS) = 32 ] ; then exit 0 fi -total_ram=$(grep MemTotal /proc/meminfo | awk '{ print $2 }') +ram_total=$(grep MemTotal /proc/meminfo | awk '{ print $2 }') ram_512gb=$((512*1024*1024)) ram_256gb=$((256*1024*1024)) @@ -24,25 +24,25 @@ ram_16gb=$((16*1024*1024)) ram_8gb=$((8*1024*1024)) ram_4gb=$((4*1024*1024)) -if [ ${total_ram} -le ${ram_4gb} ]; then +if [ ${ram_total} -le ${ram_4gb} ]; then echo "--max-parallel=1" -elif [ ${total_ram} -le ${ram_8gb} ]; then +elif [ ${ram_total} -le ${ram_8gb} ]; then echo "--max-parallel=2" -elif [ ${total_ram} -le ${ram_16gb} ]; then +elif [ ${ram_total} -le ${ram_16gb} ]; then echo "--max-parallel=3" -elif [ ${total_ram} -le ${ram_32gb} ]; then +elif [ ${ram_total} -le ${ram_32gb} ]; then echo "--max-parallel=12" -elif [ ${total_ram} -le ${ram_48gb} ]; then +elif [ ${ram_total} -le ${ram_48gb} ]; then echo "--max-parallel=20" -elif [ ${total_ram} -le ${ram_64gb} ]; then +elif [ ${ram_total} -le ${ram_64gb} ]; then echo "--max-parallel=32" -elif [ ${total_ram} -le ${ram_96gb} ]; then +elif [ ${ram_total} -le ${ram_96gb} ]; then echo "--max-parallel=48" -elif [ ${total_ram} -le ${ram_128gb} ]; then +elif [ ${ram_total} -le ${ram_128gb} ]; then echo "--max-parallel=64" -elif [ ${total_ram} -le ${ram_256gb} ]; then +elif [ ${ram_total} -le ${ram_256gb} ]; then echo "--max-parallel=128" -elif [ ${total_ram} -le ${ram_512gb} ]; then +elif [ ${ram_total} -le ${ram_512gb} ]; then echo "--max-parallel=256" else echo "--max-parallel=512" |