From b5960ebbe7236eef62620b0a07df8de93dffc81e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 17 Mar 2017 16:57:49 +0200 Subject: Shorten scheduler queue depth, make it customizable via command line --- build2/b.cli | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'build2/b.cli') diff --git a/build2/b.cli b/build2/b.cli index f1fd7dc..726f04e 100644 --- a/build2/b.cli +++ b/build2/b.cli @@ -380,6 +380,16 @@ namespace build2 on 64-bit. See the build system scheduler implementation for details." } + size_t --queue-depth|-Q = 4 + { + "", + "The queue depth as a multiplier over the number of active jobs. + Normally we want a deeper queue if the jobs take long (for example, + compilation) and shorter if they are quick (for example, simple tests). + The default is 4. See the build system scheduler implementation for + details." + } + bool --serial-stop|-s { "Run serially and stop at the first error. This mode is useful to -- cgit v1.1