From 83217ea30c5aa30f264aa1f57b1e248a1aec2569 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Fri, 15 Oct 2021 00:12:25 +0200 Subject: [PATCH] CI runners support - take more memory from host --- lib/debootstrap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/debootstrap.sh b/lib/debootstrap.sh index 22358e07ad..38155d1d27 100644 --- a/lib/debootstrap.sh +++ b/lib/debootstrap.sh @@ -37,8 +37,8 @@ debootstrap_ng() # stage: verify tmpfs configuration and mount # CLI needs ~1.5GiB, desktop - ~3.5GiB - # calculate and set tmpfs mount to use 2/3 of available RAM+SWAP - local phymem=$(( (($(awk '/MemTotal/ {print $2}' /proc/meminfo) + $(awk '/SwapTotal/ {print $2}' /proc/meminfo))) / 1024 * 2 / 3 )) # MiB + # calculate and set tmpfs mount to use 9/10 of available RAM+SWAP + local phymem=$(( (($(awk '/MemTotal/ {print $2}' /proc/meminfo) + $(awk '/SwapTotal/ {print $2}' /proc/meminfo))) / 1024 * 9 / 10 )) # MiB if [[ $BUILD_DESKTOP == yes ]]; then local tmpfs_max_size=3500; else local tmpfs_max_size=1500; fi # MiB if [[ $FORCE_USE_RAMDISK == no ]]; then local use_tmpfs=no elif [[ $FORCE_USE_RAMDISK == yes || $phymem -gt $tmpfs_max_size ]]; then