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 | 5243247f63aca6c4bc89449e65c11a39091820e0 (patch) | |
tree | 6c976b38ab992054000100416016c5d3832bc13c | |
parent | Building with parallel=1 on all systems with 4GB RAM or less. (diff) | |
download | ceph-19-5243247f63aca6c4bc89449e65c11a39091820e0.tar.xz ceph-19-5243247f63aca6c4bc89449e65c11a39091820e0.zip |
Increasing parallel=n on all systems with 512GB RAM or more.
Signed-off-by: Daniel Baumann <daniel@debian.org>
-rwxr-xr-x | debian/calc-max-parallel.sh | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/debian/calc-max-parallel.sh b/debian/calc-max-parallel.sh index 2faa1c58d..81e1c8f02 100755 --- a/debian/calc-max-parallel.sh +++ b/debian/calc-max-parallel.sh @@ -13,6 +13,13 @@ fi total_ram=$(grep MemTotal /proc/meminfo | awk '{ print $2 }') +fivehundred_g=$((512*1024*1024)) +twohundredtwentysix_g=$((256*1024*1024)) +hundredtwenty_g=$((128*1024*1024)) +nightysix_g=$((96*1024*1024)) +sixtyfour_g=$((64*1024*1024)) +fourtyheight_g=$((48*1024*1024)) +thirtytwo_g=$((32*1024*1024)) sixteen_g=$((16*1024*1024)) eight_g=$((8*1024*1024)) four_g=$((4*1024*1024)) @@ -23,6 +30,20 @@ elif [ ${total_ram} -le ${eight_g} ]; then echo "--max-parallel=2" elif [ ${total_ram} -le ${sixteen_g} ]; then echo "--max-parallel=3" +elif [ ${total_ram} -le ${thirtytwo_g} ]; then + echo "--max-parallel=12" +elif [ ${total_ram} -le ${fourtyheight_g} ]; then + echo "--max-parallel=20" +elif [ ${total_ram} -le ${sixtyfour_g} ]; then + echo "--max-parallel=32" +elif [ ${total_ram} -le ${nightysix_g} ]; then + echo "--max-parallel=48" +elif [ ${total_ram} -le ${hundredtwenty_g} ]; then + echo "--max-parallel=64" +elif [ ${total_ram} -le ${twohundredtwentysix_g} ]; then + echo "--max-parallel=128" +elif [ ${total_ram} -le ${fivehundred_g} ]; then + echo "--max-parallel=256" else - echo "--max-parallel=4" + echo "--max-parallel=512" fi |