From: Yao Zhang Date: Sun, 10 Jan 2016 03:22:58 +0000 (-0500) Subject: cmd/dist: restrict parallel tests to NumCPU on mips64x X-Git-Tag: go1.6beta2~43 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=30919fe978fccae450ea5c4ff8c4019f240d2d1e;p=gostls13.git cmd/dist: restrict parallel tests to NumCPU on mips64x mips64 builder and one machine of the mips64le builder has small amount of memory. Since CL 18199, they have been running slowly, as more processes were launched in running 'test' directory, and a lot of swap were used. This CL brings all.bash from 5h back to 3h on Loongson 2E with 512 MB memory. Change-Id: I4a22e239a542a99ba5986753205d8cd1f4b3d3c6 Reviewed-on: https://go-review.googlesource.com/18483 Reviewed-by: Minux Ma Run-TryBot: Minux Ma TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/cmd/dist/util.go b/src/cmd/dist/util.go index 1b42954cc3..1b5d1f97b2 100644 --- a/src/cmd/dist/util.go +++ b/src/cmd/dist/util.go @@ -461,7 +461,7 @@ func main() { } } - if gohostarch == "arm" { + if gohostarch == "arm" || gohostarch == "mips64" || gohostarch == "mips64le" { maxbg = min(maxbg, runtime.NumCPU()) } bginit()