aboutsummaryrefslogtreecommitdiff
path: root/tcwg-buildfarm-master-hetzner.yaml
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2015-08-20 09:21:23 +0200
committerLinaro Code Review <review@review.linaro.org>2015-08-20 07:27:54 +0000
commiteaa65133c86a501a1c4375a4ba7ddd4d4d3d4f3c (patch)
treebed41552d830e679da739cda19e36353e03140d7 /tcwg-buildfarm-master-hetzner.yaml
parent1437bdc4b6fd3cecc70ff8502bb752989b2b6b57 (diff)
tcwg-buildfarm-master-hetzner: Stop using ulimit.
ulimit is not compatible with ASAN, making some tests random. Since the intention was to avoid server crashes because GCC would go OOM and that GCC has been fixed, we prefer to stop using ulimit to avoid these random results. Limiting GCC memory usage will be addressed differently. Change-Id: I935bffbed8f522b129926c61635ed651f9a4e30b
Diffstat (limited to 'tcwg-buildfarm-master-hetzner.yaml')
-rw-r--r--tcwg-buildfarm-master-hetzner.yaml9
1 files changed, 0 insertions, 9 deletions
diff --git a/tcwg-buildfarm-master-hetzner.yaml b/tcwg-buildfarm-master-hetzner.yaml
index 599c42c85e..e602f08021 100644
--- a/tcwg-buildfarm-master-hetzner.yaml
+++ b/tcwg-buildfarm-master-hetzner.yaml
@@ -154,15 +154,6 @@
norebuild="--norebuild"
fi
- # Calculate session's RAM size to be used in ulimit.
- # This limit is per-process, so, effectively, they have 2-4GB.
- session_ram="$(free | grep "Mem:" | sed -e "s/Mem: *\([0-9]*\).*/\1/")"
- session_ram="$(($session_ram / 8))"
- #ulimit -u 5000
- #ulimit -d $session_ram
- # Try to limit to 10GB of virtual memory
- ulimit -v 10485760
-
session_id=$(schroot -b -c chroot:$schroot_image --preserve-environment)
BUILD_SHELL="schroot -r -c session:$session_id --preserve-environment -- bash"
$BUILD_SHELL -c "echo \"Build session is up; ulimit config:\"; ulimit -a"