diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-12-09 09:42:26 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-12-09 13:56:10 +0100 |
| commit | c5095d6b885068d9a80bd686ed14e088e3a5dff8 (patch) | |
| tree | 589bd22b2a9f4a204e631edcf7f286f5bc32e209 | |
| parent | 728b1e462d8c9bef7b76a101a719f162d5b31781 (diff) | |
tools/syz-execprog: default -procs to 2*NumCPU
This looks like a reasonable default.
If a user wants specifically 1 proc, it can be done with -procs=1.
| -rw-r--r-- | tools/syz-execprog/execprog.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go index 55065acaa..22729ee87 100644 --- a/tools/syz-execprog/execprog.go +++ b/tools/syz-execprog/execprog.go @@ -33,7 +33,7 @@ var ( flagArch = flag.String("arch", runtime.GOARCH, "target arch") flagCoverFile = flag.String("coverfile", "", "write coverage to the file") flagRepeat = flag.Int("repeat", 1, "repeat execution that many times (0 for infinite loop)") - flagProcs = flag.Int("procs", 1, "number of parallel processes to execute programs") + flagProcs = flag.Int("procs", 2*runtime.NumCPU(), "number of parallel processes to execute programs") flagOutput = flag.Bool("output", false, "write programs and results to stdout") flagHints = flag.Bool("hints", false, "do a hints-generation run") flagEnable = flag.String("enable", "none", "enable only listed additional features") |
