From a3025cad92054cb7399a7816a0696493396fc916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 5 Feb 2018 14:59:29 +0100 Subject: cuirass: Add '--threads' and put an upper bound on the default. * bin/cuirass.in (show-help, %options): Add "--threads". (main): Honor it. Pass #:parallelism to 'run-fibers'. --- doc/cuirass.texi | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/cuirass.texi b/doc/cuirass.texi index ec81245..fcebef6 100644 --- a/doc/cuirass.texi +++ b/doc/cuirass.texi @@ -198,6 +198,15 @@ Wait @var{n} seconds between each poll. This can be useful when you are not interested in building the dependencies of a particular job. +@item --threads=@var{n} +Use up to @var{n} kernel threads. + +@var{n} should be lower than or equal to the number of CPU cores on the +machine. In general though, having a large @var{n} is not very useful +since the work of Cuirass is primarily I/O-bound---on the contrary, +large values of @var{n} may increase overhead. The default value should +be appropriate for most cases. + @item --version @itemx -V Display the actual version of @code{cuirass}. -- cgit v1.2.3