summaryrefslogtreecommitdiff
path: root/start-container-docker.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 /start-container-docker.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 'start-container-docker.sh')
-rwxr-xr-xstart-container-docker.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/start-container-docker.sh b/start-container-docker.sh
index 4b5cbecd..b3f3a66f 100755
--- a/start-container-docker.sh
+++ b/start-container-docker.sh
@@ -241,7 +241,7 @@ nproc=$($SSH $session_host nproc --all)
pids=$(print_pids_limit "$task" "$weight")
cpus=$(print_cpu_shares "$task" "$weight")
-memory=$(print_memory_limit "$task" "$weight" "$nproc")
+memory=$(print_memory_limit "$task" "$weight")
memory_opt="--memory=${memory}M"
if [ x"$memory" = x"unlimited" ]; then
memory_opt=""