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 UCZSD5lIk1+nLwAA0tVLHw (envelope-from ) for ; Fri, 23 Oct 2020 21:18:17 +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 mL4lC5lIk18MOwAAB5/wlQ (envelope-from ) for ; Fri, 23 Oct 2020 21:18:17 +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 8E8679400C7 for ; Fri, 23 Oct 2020 21:18:16 +0000 (UTC) Received: from localhost ([::1]:56394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kW4Ry-0001JC-MC for larch@yhetil.org; Fri, 23 Oct 2020 17:18:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kW4Rm-0001J2-JO for bug-guix@gnu.org; Fri, 23 Oct 2020 17:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47004) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kW4Rm-0003fi-Ap for bug-guix@gnu.org; Fri, 23 Oct 2020 17:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kW4Rm-0008Jz-6P for bug-guix@gnu.org; Fri, 23 Oct 2020 17:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#44175: [optimization] Grafting is too slow 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 21:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44175 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Received: via spool by 44175-submit@debbugs.gnu.org id=B44175.160348788031973 (code B ref 44175); Fri, 23 Oct 2020 21:18:02 +0000 Received: (at 44175) by debbugs.gnu.org; 23 Oct 2020 21:18:00 +0000 Received: from localhost ([127.0.0.1]:58549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW4Rk-0008Jd-GH for submit@debbugs.gnu.org; Fri, 23 Oct 2020 17:18:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kW4Rh-0008JH-Uo for 44175@debbugs.gnu.org; Fri, 23 Oct 2020 17:17:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60194) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kW4Rc-0003ea-IK; Fri, 23 Oct 2020 17:17:52 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=59378 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kW4Rc-0006bz-3u; Fri, 23 Oct 2020 17:17:52 -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> <875z71ccq0.fsf_-_@gmail.com> Date: Fri, 23 Oct 2020 23:17:49 +0200 In-Reply-To: <875z71ccq0.fsf_-_@gmail.com> (Maxim Cournoyer's message of "Fri, 23 Oct 2020 09:07:35 -0400") Message-ID: <87lffwk5fm.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: 44175@debbugs.gnu.org, Lars-Dominik Braun 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: -0.01 X-TUID: ybmOp3fu0Fxh Maxim Cournoyer skribis: > Lars-Dominik Braun writes: > >> Hi Maxim, >> >>> Judging from the above, it seems this issue has been resolved. >> grafting is still a performance issue imo. Compare for example: >> >> $ time guix environment --ad-hoc --search-paths r-learnr >> guix environment --ad-hoc --search-paths r-learnr 5,90s user 0,09s syst= em 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 use= r 0,08s system 164% cpu 1,277 total > > I'm opening a new issue to track optimizing the grafting code, since > it's independent of environments (grafts are applied anytime a > derivation is built, AFAICT). Grafting is inherently IO-bound, What is slow above is not grafting itself: it=E2=80=99s determining what to graft that takes CPU time. I had reopened the initial bug at ; should we close this one? Thanks, Ludo=E2=80=99.