From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: parallelizing more actions Date: Sun, 12 Nov 2017 15:31:49 +0200 Message-ID: <20171112133149.GI1815@macbook41> References: <20171109090559.GF1815@macbook41> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IJAclU0AInkryoed" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44711) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDsMe-000638-Uj for guix-devel@gnu.org; Sun, 12 Nov 2017 08:31:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDsMa-0002cd-2K for guix-devel@gnu.org; Sun, 12 Nov 2017 08:31:56 -0500 Received: from flashner.co.il ([178.62.234.194]:43925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDsMZ-0002cN-Qa for guix-devel@gnu.org; Sun, 12 Nov 2017 08:31:51 -0500 Received: from localhost (46-117-130-79.bb.netvision.net.il [46.117.130.79]) by flashner.co.il (Postfix) with ESMTPSA id E50C340267 for ; Sun, 12 Nov 2017 13:31:50 +0000 (UTC) Content-Disposition: inline In-Reply-To: <20171109090559.GF1815@macbook41> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --IJAclU0AInkryoed Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 09, 2017 at 11:05:59AM +0200, Efraim Flashner wrote: > While rebuilding glibc-final on aarch64 I realized that the 'strip phase > took 235 seconds. The relevant code for 'strip from gnu-build-system is > in guix/build/gnu-build-system.scm, starting at line 340, with the > actual stripping starting at 398. When I changed 'for-each' to > 'par-for-each' the time dropped from 235 seconds to 215, about an 8.5% > savings. I'm pretty sure most of that time was spent failing to strip > certain files, but it is still a savings. >=20 These numbers were for glibc@2.26. I ran it against glibc@2.25 on my x86_64 machine with a spinning harddrive and 2 cores, without the patch it took 165.7 seconds (164.6 the second time), with the patch it dropped to 24.3 seconds. I'll test it with glibc@2.25 on aarch64 later when its not building other things. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --IJAclU0AInkryoed Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAloITUIACgkQQarn3Mo9 g1HQMxAAll2Gi18Ipe7gjaZYm8AmATHJSQwI0QSMWI2TU1W3Twb19GMMjxkJvqR3 /bSaQ4+ZFg73WVyOlV8DkPx0hzz2rqC7G0cewNNjsGZkC0hNpqq+nZQeMi+Jx5Mm McBeUruLaDLkHW5rTsLxJJPeCu7e+XR5ecD1y+PMT2a699/Tq0xgoiAFERZpQZKs CmsUaM+2ZWsX94Bgmx6bENJ32W72pOpx+FyC5g8gOo8WH7pgVL575gC7pc2qhaSd qfuYkxWfBFzlo0+/q1hhhszjK9SwVH34qyFi7QjvwFOto/Mfhc3tnWayGbbA1+i1 H4gCAmt4MkOqQr9DJO2VpXqSYl+mYQYyzxxOVwVlVTihralkTgXnb7DCT3FmiS1t PBXNVId9qwLXsMBGYZiQaP0Fr3aUqtUoYxvUf8FUEZ8c0kAIGmQ566oh/b3ZQkfP VfRVxXBDxbHInjqsFitQIk3vOz7+wt7E/LC8JQAgxkjjvE/9qkhdGWzfu1MrkhA0 HQIrAP/WXH18HPqCU4Ee1HsB1WJ/Mf4zjUBcC1VsKMkwLqv4mzaWWykdzOeciZtr bhTei5QW37SkEZm78gCkN3h0fy2saBzogLZDnzpozI/mMoR7xssBYF9wqXgjrMXs etNO7AK3K6gggv7+ecC0dSF6qgC4ZtHA5bXRRTEBzjUQ82EPHY0= =xo7p -----END PGP SIGNATURE----- --IJAclU0AInkryoed--