From 30919fe978fccae450ea5c4ff8c4019f240d2d1e Mon Sep 17 00:00:00 2001 From: Yao Zhang Date: Sat, 9 Jan 2016 22:22:58 -0500 Subject: [PATCH] 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 --- src/cmd/dist/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.50.0