From nobody Sat Apr 27 11:36:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1588870413; cv=none; d=zohomail.com; s=zohoarc; b=d2nI2HZgTnn/kiWcSoxzOT5dNq6RWxKU57tGtkHUs/coLVHRKDaYtyv6UNyWpaU7dflVOz3oSg64m5UtTfZ5Xb6LJArKtHMkyUVQ71jEgCrnQjQFwXG5NgFFyCSK8a7XNjSKEQmGzeSeKFEzLIgrj2qKpq2Ld5iyUtJR8Q+uYq4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588870413; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=cRfEiqBt0CaHFIZw/ELf9wawVncdLdVFjCThlfkWmHI=; b=RUwgpyRaC3RWn3MmvPFfsA++YRbNyTdW6iPPWsPu8lBl7LDybcb9JX8yVlQMf8/f4yHepRDYYm7nhKuGgNl4NViQzKUZzQoNNRY6Rp2cEYWxKth3OYG++T8LzEQS554XgYHD5QeTpuVQXaouCF5Y1WSpaPAOm9qgV1gGwFmutVY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1588870413322567.9121690622173; Thu, 7 May 2020 09:53:33 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-297-pDStieenPrq7j18UUwvung-1; Thu, 07 May 2020 12:53:29 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E8E26801503; Thu, 7 May 2020 16:53:23 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F31925C1B0; Thu, 7 May 2020 16:53:21 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 7B53C1809542; Thu, 7 May 2020 16:53:19 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 047GrI54008110 for ; Thu, 7 May 2020 12:53:18 -0400 Received: by smtp.corp.redhat.com (Postfix) id C9BD9165F6; Thu, 7 May 2020 16:53:18 +0000 (UTC) Received: from kinshicho.usersys.redhat.com (unknown [10.40.194.140]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0E6A42E04B for ; Thu, 7 May 2020 16:53:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588870412; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=cRfEiqBt0CaHFIZw/ELf9wawVncdLdVFjCThlfkWmHI=; b=Otsi/1xEEgNaAL5RDxR0TFIiMWgSX6KpDmuWwPhLJG6RPd4HduJqedXJPBb+yFLTjXgBb0 Z5+1wBm+eQ1N87BIHE6CnKRS3ycFD5crz45ndxeoHoai/QDrvYaOUqlh9rTM6nL80xLuMD ELHfnYZj4Ft7D30zU1Obu2cytr/Ii8E= X-MC-Unique: pDStieenPrq7j18UUwvung-1 From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt-ci PATCH] lcitool: Set make parallelism dynamically Date: Thu, 7 May 2020 18:53:12 +0200 Message-Id: <20200507165312.856970-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Erik Skultety --- 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=3D"{{ paths.make }}" export NINJA=3D"{{ paths.ninja }}" export PYTHON=3D"{{ paths.python }}" =20 -export MAKEFLAGS=3D"-j{{ install_vcpus|int + 1 }}" +export MAKEFLAGS=3D"-j$(getconf _NPROCESSORS_ONLN)" export CCACHE_MAXSIZE=3D"2G" =20 export VIRT_PREFIX=3D"$HOME/build/libvirt" --=20 2.25.4