[libvirt-ci PATCH] lcitool: Set make parallelism dynamically

Andrea Bolognani abologna at redhat.com
Thu May 7 16:53:12 UTC 2020


We're about to make some changes to lcitool that would make it
more annoying to get access to the number of install-time vCPUs
from 'lcitool update', so let's use getconf instead.

As a side effect, this also copes better with the situation where
the builder was installed with a certain number of vCPUs but the
amount has since been modified.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 guests/playbooks/update/templates/bashrc.j2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guests/playbooks/update/templates/bashrc.j2 b/guests/playbooks/update/templates/bashrc.j2
index 8775864..05a86a1 100644
--- a/guests/playbooks/update/templates/bashrc.j2
+++ b/guests/playbooks/update/templates/bashrc.j2
@@ -4,7 +4,7 @@ export MAKE="{{ paths.make }}"
 export NINJA="{{ paths.ninja }}"
 export PYTHON="{{ paths.python }}"
 
-export MAKEFLAGS="-j{{ install_vcpus|int + 1 }}"
+export MAKEFLAGS="-j$(getconf _NPROCESSORS_ONLN)"
 export CCACHE_MAXSIZE="2G"
 
 export VIRT_PREFIX="$HOME/build/libvirt"
-- 
2.25.4




More information about the libvir-list mailing list