From 8b21c5d41273f3181a50c29bc039e474f7989a14 Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Tue, 15 Apr 2014 20:23:27 -0500 Subject: [PATCH] Tighten compile limits for amazon --- c-preload/compiler-wrapper | 2 +- etc/config/gcc-explorer.amazon.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c-preload/compiler-wrapper b/c-preload/compiler-wrapper index bc770ffd..22740a9c 100755 --- a/c-preload/compiler-wrapper +++ b/c-preload/compiler-wrapper @@ -4,7 +4,7 @@ export LD_PRELOAD=$(dirname $0)/libpreload.so export ALLOWED_FOR_CREATE=/tmp export ALLOWED_FOR_READ=/usr/local/include:/usr/include:/usr/lib:/usr/msp430:/usr/arm-linux-gnueabi/include:/tmp:/opt/ # Last-gasp limits -ulimit -t 10 # CPU time in seconds +ulimit -t 3 # CPU time in seconds ulimit -v 500000 # virtual RAM limit in K "$@" diff --git a/etc/config/gcc-explorer.amazon.properties b/etc/config/gcc-explorer.amazon.properties index 7fbedd1a..8048e165 100644 --- a/etc/config/gcc-explorer.amazon.properties +++ b/etc/config/gcc-explorer.amazon.properties @@ -1,5 +1,5 @@ # Settings overridden for Amazon EC2 instances that power http://gcc.godbolt.org/ -compileTimeoutMs=2000 +compileTimeoutMs=750 compilers=/usr/bin/g++-4.4:/usr/bin/g++-4.5:/usr/bin/g++-4.6:/usr/bin/g++-4.7:/usr/bin/arm-linux-gnueabi-g++-4.5:/usr/bin/clang++:/usr/bin/avr-g++:/usr/bin/msp430-g++:/usr/bin/arm-linux-gnueabi-g++-4.6:/opt/intel/bin/icc:/usr/bin/g++-4.8:/opt/clang-3.2/bin/clang++:/opt/clang-3.3/bin/clang++:/opt/gcc-4.9.0-with-concepts/bin/g++:/opt/gcc-4.9.0-0909-concepts/bin/g++ compiler-wrapper=./c-preload/compiler-wrapper max-asm-size=500000