From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6543096110563459072 X-Received: by 10.80.202.129 with SMTP id x1mr1990768edh.10.1523433278387; Wed, 11 Apr 2018 00:54:38 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.80.194.145 with SMTP id o17ls679771edf.6.gmail; Wed, 11 Apr 2018 00:54:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx486s/TRUbWC7wya/r30oQCnLozv8Ad1LHxi/Y/eEYALLez7hrvirVv+3uVoq9twrsuMSL01 X-Received: by 10.80.165.8 with SMTP id y8mr1972010edb.11.1523433277921; Wed, 11 Apr 2018 00:54:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523433277; cv=none; d=google.com; s=arc-20160816; b=kpis5DCKTz0i0For9N2pffzMVTUntorPW8FPlZrROLiNoY2gSkp35AyHoFOG1YUbE4 wTF+pU+oNER7cOS4vwlieUpF2eFqUvHmWbpApFsmTn22T5fQfBSfpkC0pqU/BLE9Uw4R vNWxIELUyif8+9CaaqEEbYXyXO6xsX+SMmsRlMev0AkCTYCWFMUAu/3Fd8EWmPxpMlw6 ZBPgmj2AVErdueHCBoXIWD47lcuUEHDiBbWlFsVml20fP74QoYAYBx3a9pePgOw6cQu2 f/xpBDN0MhlrywxN7jFtdmE39haOS1fNHLgW9KgkvnAue3pGcea3poGfeJAMQ8tB3r7x b/uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qcqJdrYKFJeGbs02ipm30HNM1+Ew+LGA4AKoBkaEkv0=; b=Tr7w8PSKVAYFprJoxDxi8id2eXQ3EC3UyjDgUhjLjk/5PQhUuVSo/+JJ914IBF47If DnrgQ6gKzzS52maTy8ku7A4yQCLM2PEjEbBk4XU2eoCFRwx646oVpg2XN39p1uP/xamp OKRTXyWyylbaSDN5HXhoxR/AwXFMaU2GNT3zbiVtD3onLdLmIOBHoSLPkxBTBti7evRY +GgB/M1R1dy5sWmYDa/CU8KvgGipQXwpIhSkQ6IRNaNUIOSFrq7qfepBeYaOLduvx9pz ZwdvM8y4PFvPAoX+eE3Y8GS3wBaRI3h8M49mywYrTF26SRmTby6MQCN9+7n7W5jE8qbg 9spQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Return-Path: Received: from david.siemens.de (david.siemens.de. [192.35.17.14]) by gmr-mx.google.com with ESMTPS id y22si50117edm.0.2018.04.11.00.54.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Apr 2018 00:54:37 -0700 (PDT) Received-SPF: pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) client-ip=192.35.17.14; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of claudius.heine.ext@siemens.com designates 192.35.17.14 as permitted sender) smtp.mailfrom=claudius.heine.ext@siemens.com Received: from mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by david.siemens.de (8.15.2/8.15.2) with ESMTPS id w3B7sbck000974 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 Apr 2018 09:54:37 +0200 Received: from ring.ppmd.siemens.net (linux-ses-ext02.ppmd.siemens.net [139.25.69.226]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id w3B7saxO025226; Wed, 11 Apr 2018 09:54:37 +0200 From: claudius.heine.ext@siemens.com To: isar-users@googlegroups.com Cc: Claudius Heine Subject: [PATCH 2/2] isar-bootstrap: Change task dependencies to improve parallelization Date: Wed, 11 Apr 2018 09:54:31 +0200 Message-Id: <20180411075431.6201-3-claudius.heine.ext@siemens.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180411075431.6201-1-claudius.heine.ext@siemens.com> References: <20180411075431.6201-1-claudius.heine.ext@siemens.com> X-TUID: EzzmtW5bmsvo From: Claudius Heine The isar-bootstrap tasks are currently ordered linearly. This patch changes this to better model the real dependencies between them. Now some tasks are executed in parallel if possible. This should slightly improve the performance. In detail 'do_apt_config_prepare' can be executed in parallel to 'do_generate_keyring' and 'do_bootstrap'. 'do_apt_config_install' has to be executed after 'do_bootstrap' and 'do_apt_config_prepare'. Signed-off-by: Claudius Heine --- meta/recipes-core/isar-bootstrap/isar-bootstrap.bb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb b/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb index 3fbf890..aae760e 100644 --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.bb @@ -162,6 +162,7 @@ do_generate_keyring() { addtask generate_keyring before do_build after do_unpack do_apt_config_prepare[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}" +do_apt_config_prepare[dirs] = "${WORKDIR}" do_apt_config_prepare[vardeps] += "\ APTPREFS \ DISTRO_APT_PREFERENCES \ @@ -180,7 +181,7 @@ python do_apt_config_prepare() { aggregate_aptsources_list(d, apt_sources_list, apt_sources_out) } -addtask apt_config_prepare before do_build after do_generate_keyring +addtask apt_config_prepare before do_build after do_unpack do_bootstrap[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}" do_bootstrap[vardeps] += "DISTRO_APT_SOURCES" @@ -201,7 +202,7 @@ do_bootstrap() { "${ROOTFSDIR}" \ "${@get_distro_source(d)}" } -addtask bootstrap before do_build after do_apt_config_prepare +addtask bootstrap before do_build after do_generate_keyring do_apt_config_install[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}" do_apt_config_install() { @@ -216,7 +217,7 @@ do_apt_config_install() { sudo install -v -m644 "${WORKDIR}/isar-apt.conf" \ "${ROOTFSDIR}/etc/apt/apt.conf.d/50isar.conf" } -addtask apt_config_install before do_build after do_bootstrap +addtask apt_config_install before do_build after do_bootstrap do_apt_config_prepare do_apt_update[stamp-extra-info] = "${DISTRO}-${DISTRO_ARCH}" do_apt_update() { -- 2.16.3