We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26c57e6 commit d1db60fCopy full SHA for d1db60f
src/cmd/dist/test.go
@@ -1313,10 +1313,11 @@ func (t *tester) runPending(nextTest *distTest) {
1313
}(w)
1314
}
1315
1316
- // for runtime.NumCPU() > 4 , do not change maxbg.
+ // for runtime.NumCPU() < 4 || runtime.GOMAXPROCS(0) == 1, do not change maxbg.
1317
// Because there is not enough CPU to parallel the testing of multiple packages.
1318
if runtime.NumCPU() > 4 && runtime.GOMAXPROCS(0) != 1 {
1319
for _, w := range worklist {
1320
+ // See go.dev/issue/65164
1321
// because GOMAXPROCS=2 runtime CPU usage is low,
1322
// so increase maxbg to avoid slowing down execution with low CPU usage.
1323
// This makes testing a single package slower,
0 commit comments