From c5095d6b885068d9a80bd686ed14e088e3a5dff8 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 9 Dec 2021 09:42:26 +0100 Subject: 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. --- tools/syz-execprog/execprog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- cgit mrf-deployment