Small VMs can't survive a full parallel make
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/20171903 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/20171903 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/20171903 Branch: refs/heads/master Commit: 2017190362c0112709787c05e4d1b41a057cb7cd Parents: 6e8e65f Author: James Peach <[email protected]> Authored: Sun Nov 25 14:29:49 2012 -0800 Committer: James Peach <[email protected]> Committed: Sun Nov 25 14:29:49 2012 -0800 ---------------------------------------------------------------------- contrib/regression | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/20171903/contrib/regression ---------------------------------------------------------------------- diff --git a/contrib/regression b/contrib/regression index b949594..858ec34 100755 --- a/contrib/regression +++ b/contrib/regression @@ -33,6 +33,10 @@ SRCROOT=${SRCROOT:-$(cd $(dirname $0)/.. && pwd)} # where the source lives OBJROOT=${OBJROOT:-"$TMPDIR/$BUILDID/obj"} # where we are building DSTROOT=${DSTROOT:-"$TMPDIR/$BUILDID/dst"} # where we are installing +# Force low make parallelization so that the build can complete in a VM with +# only a small amount of memory. +NPROCS=${NPROCS:-2} + mkdir -p $SRCROOT mkdir -p $OBJROOT mkdir -p $DSTROOT @@ -61,7 +65,7 @@ configure() { } build() { - ( cd $OBJROOT && make -j ) + ( cd $OBJROOT && make -j $NPROCS ) ( cd $OBJROOT && make install ) }
