From 088a4b0e23629dd580e6d216326afbeb45604d3a Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 7 May 2025 12:01:19 +0200 Subject: [PATCH] ci/android: configure both hard limits and soft limits The soft limits cannot go above the hard limits values, so the hard limits should be configured too, just in case default limits values set by the kernel or the init process are too small. E.g. when booting with `init=/bin/sh` we have: $ cat /proc/1/limits Limit Soft Limit Hard Limit Units ... Max open files 1024 4096 files ... Part-of: --- .gitlab-ci/cuttlefish-runner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci/cuttlefish-runner.sh b/.gitlab-ci/cuttlefish-runner.sh index d9df974ff76..a44a278b933 100755 --- a/.gitlab-ci/cuttlefish-runner.sh +++ b/.gitlab-ci/cuttlefish-runner.sh @@ -53,7 +53,7 @@ function my_atexit() trap 'my_atexit' EXIT trap 'exit 2' HUP INT PIPE TERM -ulimit -S -n 32768 +ulimit -n 32768 VSOCK_BASE=10000 # greater than all the default vsock ports VSOCK_CID=$((VSOCK_BASE + (CI_JOB_ID & 0xfff)))