From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MIReJFXukl85eQAA0tVLHw (envelope-from ) for ; Fri, 23 Oct 2020 14:53:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iLUfIFXukl8rOQAAB5/wlQ (envelope-from ) for ; Fri, 23 Oct 2020 14:53:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 12E01940215 for ; Fri, 23 Oct 2020 14:53:09 +0000 (UTC) Received: from localhost ([::1]:47512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVyRH-0003DW-Pc for larch@yhetil.org; Fri, 23 Oct 2020 10:53:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVyQE-00022U-4p for bug-guix@gnu.org; Fri, 23 Oct 2020 10:52:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46417) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kVyQD-0004S3-Ry for bug-guix@gnu.org; Fri, 23 Oct 2020 10:52:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kVyQD-0000NL-P7 for bug-guix@gnu.org; Fri, 23 Oct 2020 10:52:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41702: `guix environment` performance issues Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 23 Oct 2020 14:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41702 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: Lars-Dominik Braun Received: via spool by 41702-done@debbugs.gnu.org id=D41702.16034647031410 (code D ref 41702); Fri, 23 Oct 2020 14:52:01 +0000 Received: (at 41702-done) by debbugs.gnu.org; 23 Oct 2020 14:51:43 +0000 Received: from localhost ([127.0.0.1]:57963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVyPv-0000Mg-KF for submit@debbugs.gnu.org; Fri, 23 Oct 2020 10:51:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVyPu-0000MR-1m for 41702-done@debbugs.gnu.org; Fri, 23 Oct 2020 10:51:42 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50976) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVyPo-0004Qm-Ib; Fri, 23 Oct 2020 10:51:36 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=56962 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kVyPo-0005FE-1h; Fri, 23 Oct 2020 10:51:36 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87y2o3zf00.fsf@gnu.org> <20200701112453.GB25179@zpidnp36> <87eepuyk99.fsf@gnu.org> <20200702070000.GA4532@zpidnp36> <20200702120333.GB4532@zpidnp36> <87k0zhkoyf.fsf@gnu.org> <20200706125800.GA3176@zpidnp36> <20200720095059.GB3143@zpidnp36> <87mu3tq2hh.fsf@gnu.org> <87r1pqc6sy.fsf@gmail.com> <20201023072621.GA3115@zpidnp36> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 Brumaire an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Fri, 23 Oct 2020 16:51:34 +0200 In-Reply-To: <20201023072621.GA3115@zpidnp36> (Lars-Dominik Braun's message of "Fri, 23 Oct 2020 09:26:21 +0200") Message-ID: <873625ngg9.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxim Cournoyer , 41702-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.51 X-TUID: FaRjpl0TXbfB Hi, Lars-Dominik Braun skribis: > grafting is still a performance issue imo. Compare for example: Agreed. The fix in 58bb833365db4e8934a386497d5b00a063cfd27d is incomplete: we=E2=80=99re still potentially doing things several times. > $ time guix environment --ad-hoc --search-paths r-learnr > guix environment --ad-hoc --search-paths r-learnr 5,90s user 0,09s syste= m 210% cpu 2,844 total > $ time guix environment --ad-hoc --search-paths r-learnr --no-grafts > guix environment --ad-hoc --search-paths r-learnr --no-grafts 2,03s user= 0,08s system 164% cpu 1,277 total Here=E2=80=99s what I get over a local socket: --8<---------------cut here---------------start------------->8--- ludo@ribbon ~/src/guix$ time guix environment --ad-hoc --search-paths r-le= arnr --no-grafts export PATH=3D"/gnu/store/wkhd1fnmg1q30g21bfn5jprz24m041w6-profile/bin${PAT= H:+:}$PATH" real 0m1.790s user 0m1.928s sys 0m0.102s ludo@ribbon ~/src/guix$ time guix environment --ad-hoc --search-paths r-le= arnr export PATH=3D"/gnu/store/pwzrpzdbli2561f2yq70kljywn93h5w6-profile/bin${PAT= H:+:}$PATH" real 0m3.820s user 0m4.954s sys 0m0.105s --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99.