summaryrefslogtreecommitdiff
path: root/start-container-qemu.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2018-08-10 12:42:34 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2018-08-10 12:42:34 +0000
commit08087fad8e352f4aabf8c079c14615dda11d5065 (patch)
treee8f965b2b71a153b417401359f56b6ecf24eec89 /start-container-qemu.sh
parent070eee025afce9841d5407a01bd2ab3e11348b6f (diff)
print_memory_limit: Make suitable for high-core-count machines
Allocate up to 30GB per container on high-core-count machines. This change doesn't affect APMs, TK1s and TX1s much. Change-Id: Ibde348b0f01d0e1d46dafc4e0dee3c5c0a0c4c0c
Diffstat (limited to 'start-container-qemu.sh')
-rwxr-xr-xstart-container-qemu.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/start-container-qemu.sh b/start-container-qemu.sh
index 4f26fde0..784e93cc 100755
--- a/start-container-qemu.sh
+++ b/start-container-qemu.sh
@@ -92,7 +92,7 @@ fi
# CPU is limited (on contention) by docker container.
ncpus=$(container_exec nproc --all)
-memory=$(print_memory_limit "$task" "$weight")
+memory=$(print_memory_limit "$task" "$weight" "$ncpus")
# Reduce memory limit for VM to leave something for QEMU itself.
memory=$(($memory*2/3))