From 5243247f63aca6c4bc89449e65c11a39091820e0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 10 Nov 2024 09:15:49 +0100 Subject: Increasing parallel=n on all systems with 512GB RAM or more. Signed-off-by: Daniel Baumann --- debian/calc-max-parallel.sh | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3