diff options
| author | Greg Steuck <greg@nest.cx> | 2021-07-13 13:05:57 -0700 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-07-14 07:16:53 +0200 |
| commit | 94e0b7079acc1c1ab28a2043fd21321c978f1529 (patch) | |
| tree | 5fb355deba72db9ac101221b95f284599b1f82a5 /tools/syz-make | |
| parent | c668d6f957a724b4a3a79a84dd9d6600a2a911c7 (diff) | |
tools/syz-make: limit make concurrency on OpenBSD
We previously observed syz-bot hanging OpenBSD machines. We made the
problem less acute by throwing resources at it. Go builds are good at
exploiting the machines themselves, so limiting make concurrency is a
clear benefit on OpenBSD.
Diffstat (limited to 'tools/syz-make')
| -rw-r--r-- | tools/syz-make/make.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/syz-make/make.go b/tools/syz-make/make.go index 6dfcb21bb..c11ed9e81 100644 --- a/tools/syz-make/make.go +++ b/tools/syz-make/make.go @@ -42,6 +42,10 @@ func impl() ([]Var, error) { return nil, fmt.Errorf("unknown target %v/%v", targetOS, targetArch) } parallelism := runtime.NumCPU() + if runtime.GOOS == targets.OpenBSD { + // Avoids too much concurrency on OpenBSD which can't handle this much. + parallelism = 1 + } if mem := osutil.SystemMemorySize(); mem != 0 { // Ensure that we have at least 1GB per Go compiler/linker invocation. // Go compiler/linker can consume significant amount of memory |
