From cf6f97a224033bb70eea312cb987e7c9416bf126 Mon Sep 17 00:00:00 2001 From: Guilherme Gallo Date: Thu, 24 Apr 2025 01:18:42 -0300 Subject: [PATCH] ci/android: reduce launch_cvd memory limit to 4GB by default We only have 8GB on the Brya Chromebook used for venus testing, and the job is unstable because using all the available RAM causes OOM kills. So reduce launch_cvd memory limit to 4GB by default, still allowing to change the default by setting the CUTTLEFISH_MEMORY variable in jobs that might want a different value. This change has been inspired by CROSVM_MEMORY, but a new variable is used because technically cuttlefish can also use qemu in some setups, not only crosvm. Signed-off-by: Guilherme Gallo 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 8788a752bc7..d9df974ff76 100755 --- a/.gitlab-ci/cuttlefish-runner.sh +++ b/.gitlab-ci/cuttlefish-runner.sh @@ -81,7 +81,7 @@ HOME=/cuttlefish launch_cvd \ -report_anonymous_usage_stats=no \ -gpu_mode="$ANDROID_GPU_MODE" \ -cpus=${FDO_CI_CONCURRENT:-4} \ - -memory_mb 8192 \ + -memory_mb ${CUTTLEFISH_MEMORY:-4096} \ $CUSTOM_KERNEL_ARGS sleep 1