summaryrefslogtreecommitdiff
path: root/start-container-docker.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-docker.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-docker.sh')
-rwxr-xr-xstart-container-docker.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/start-container-docker.sh b/start-container-docker.sh
index c560c5fd..136a2c2d 100755
--- a/start-container-docker.sh
+++ b/start-container-docker.sh
@@ -215,7 +215,8 @@ SECURITY="--cap-add=SYS_PTRACE"
SECURITY="${SECURITY} --security-opt seccomp:unconfined"
# Reserve resources according to weight and task
-memory=$(print_memory_limit "$task" "$weight")
+nproc=$(ssh $session_host nproc --all)
+memory=$(print_memory_limit "$task" "$weight" "$nproc")
pids=$(print_pids_limit "$task" "$weight")
cpus=$(print_cpu_shares "$task" "$weight")