summaryrefslogtreecommitdiff
path: root/jenkins-helpers.sh
diff options
context:
space:
mode:
authorDiana Picus <diana.picus@linaro.org>2020-08-24 11:30:03 +0200
committerDiana Picus <diana.picus@linaro.org>2020-08-31 08:38:52 +0000
commit73ab5ac992942292817b1441472d325ed4c553be (patch)
treefad13ae1c2ceb18591e32255bc38d46153ee6c46 /jenkins-helpers.sh
parentc1856649fdd1f353c28d8c5158d3ba83f0dfdc1b (diff)
Increase memory allocation for build containers
Building flang needs more than 1GB per core and trying with 2GB per core surpasses the 30000 threshold. Use unlimited instead. Change-Id: Ibe1a06d5e529eaad9ea3b4a9d6c569a1171bed9c
Diffstat (limited to 'jenkins-helpers.sh')
-rw-r--r--jenkins-helpers.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/jenkins-helpers.sh b/jenkins-helpers.sh
index eef41fde..71d60a22 100644
--- a/jenkins-helpers.sh
+++ b/jenkins-helpers.sh
@@ -686,15 +686,10 @@ print_memory_limit ()
set -euf -o pipefail
local task="$1"
local weight="$2"
- local nproc="$3"
local memory
case "$task" in
build)
- # 1GB per compilation core
- memory=$(( 1000 * $weight * $nproc ))
- if [ "$memory" -gt "30000" ]; then
- memory="30000"
- fi
+ memory="unlimited"
;;
test)
# 0.75GB per session