From 1c0488792d245101ceb4efca2223574c44fd0e67 Mon Sep 17 00:00:00 2001 From: Michael Hope Date: Thu, 29 Sep 2011 12:40:42 +1300 Subject: config: add a 'auto' value for the number of parallel jobs When CT_PARALLEL_JOBS is -1, set the number of parallel jobs to the number of online CPUs + 1. Update documentation to match. I find this useful when building in the cloud. You can use the same .config file and have the build adapt to the number of processors available. Limited testing shows that NCPUS+1 is faster than NCPUS+0 or NCPUS+2. Signed-off-by: Michael Hope --- config/global/build-behave.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config/global') diff --git a/config/global/build-behave.in b/config/global/build-behave.in index ebf08b2d..7092a7f1 100644 --- a/config/global/build-behave.in +++ b/config/global/build-behave.in @@ -16,6 +16,8 @@ config PARALLEL_JOBS Enter 1 (or 0) to have only one job at a time. + Enter -1 to set automatically based on how many processors the host has. + config LOAD int prompt "Maximum allowed load" if ! BACKEND -- cgit v1.2.3