From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qLTRCEnLZmAUBQEAgWs5BA (envelope-from ) for ; Fri, 02 Apr 2021 09:44:09 +0200 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 0O2eAknLZmA6KwAAB5/wlQ (envelope-from ) for ; Fri, 02 Apr 2021 07:44: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 9313925223 for ; Fri, 2 Apr 2021 09:44:08 +0200 (CEST) Received: from localhost ([::1]:33718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSETP-0005bA-Oh for larch@yhetil.org; Fri, 02 Apr 2021 03:44:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSETK-0005b4-Hk for bug-guix@gnu.org; Fri, 02 Apr 2021 03:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47537) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSETK-0000ZY-Ar for bug-guix@gnu.org; Fri, 02 Apr 2021 03:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lSETK-0004Uk-9M for bug-guix@gnu.org; Fri, 02 Apr 2021 03:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47496: Very slow `guix environment -l nyxt/build-scripts/guix.scm Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 02 Apr 2021 07:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47496 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Pierre Neidhardt Received: via spool by 47496-submit@debbugs.gnu.org id=B47496.161734940817226 (code B ref 47496); Fri, 02 Apr 2021 07:44:02 +0000 Received: (at 47496) by debbugs.gnu.org; 2 Apr 2021 07:43:28 +0000 Received: from localhost ([127.0.0.1]:59083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lSESl-0004Tl-U7 for submit@debbugs.gnu.org; Fri, 02 Apr 2021 03:43:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38822) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lSESk-0004TY-N2 for 47496@debbugs.gnu.org; Fri, 02 Apr 2021 03:43:27 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44422) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSESe-0008ST-40; Fri, 02 Apr 2021 03:43:20 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=59706 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lSESd-0006i9-AT; Fri, 02 Apr 2021 03:43:19 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87tuotez7x.fsf@ambrevar.xyz> Date: Fri, 02 Apr 2021 09:43:17 +0200 In-Reply-To: <87tuotez7x.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Tue, 30 Mar 2021 12:02:26 +0200") Message-ID: <874kgp3ze2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 47496@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617349448; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=7lbcsYKx4gPr0JkD0vFTrVO3hU5WZ0E20nGgSEpDgHs=; b=PHK+U+qvDpl60NNB265hwuKZoUzY04kCR1c50H1fxTUH4Ip8doov8gjih9r+e/zcJXswSA M8FvZoUj3W1eJIwqfoGm1jgHkcTU3WNvfyD2K40H94CUeMfir1eArUy0e7MKUUjGcNCky5 wUZZqivn2RQW8TiDEWTUKqxb8HkeeDwfM+5HRouDyW41JgY4XnAraDNwkAmFsj2qpZI9Ar Nd9ZlPqqw5xrw1QiLoatlHGpJz6QFgNSJCWqMdp/QtI9IYfYSHUMO7BNExbMvk2zX21muQ mz1KAxiXDx/skvk7yh+hb6EtI03XVRQ6pYU7PiIf5KPNdvPfZI2Kd7fvawj0jQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617349448; a=rsa-sha256; cv=none; b=KCndrfNSjDPO6NynOQ9WcLJ4ZPb3hIh36vmXx9v1PkM38qkb051wKWnR/EuM1THrIlv38R cd4g7STgTsvuHHzGbmrHxsSA592k1eoOWrvKtyVUZz5lTmiUjuSJnhvCF86VIJud9VlMeh +snytViTb1W5oHVoaTwdFj7j7vWVVKcU81AZpY93gCcrmkAqEWB7+lLgn4yuGCMvMof5A+ tjQ0k7LWoUhBXjUnh2FMT8LlsTY2mawdogGg7Y0t3GDQwJ5g3V1AtpcZ9dKnGUzol22S8+ 9haFnItBxtoaSZgr4/4aTXMKH6nElRRnebe2tMkiMjPCfWCh6pxaAI641gTIyw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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-Migadu-Spam-Score: -2.93 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-Migadu-Queue-Id: 9313925223 X-Spam-Score: -2.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: lLNWNw7vHgMk Hi Pierre, Pierre Neidhardt skribis: > Nyxt provides a "guix.scm" to build Nyxt locally: > > https://github.com/atlas-engineer/nyxt/blob/3239b10d816861d329dce10863cb8= 4f9d0bd76ed/build-scripts/guix.scm > > A few weeks ago (not sure exactly when and why), `guix environment -l > guix.scm` started being extremely slow. > > By this, I mean that > > $ guix environment -v 99 --pure --load=3Dbuild-scripts/guix.scm=20 On a warm cache, I get: --8<---------------cut here---------------start------------->8--- $ time guix environment -l /tmp/nyxt/build-scripts/guix.scm -v2 -n -- true 22.0 MB would be downloaded: /gnu/store/1dr7bkhy8f2v0kgpgm4swl0zrr740zwk-cl-webkit-2.4-10.0bc05cc /gnu/store/bpw4k590597g0n7n868qhlsf2cnclzl0-webkitgtk-2.30.6-doc /gnu/store/j67y7mzb5dyaqln90n3is85nz218bvxp-webkitgtk-2.30.6 real 0m6.060s user 0m7.152s sys 0m0.175s $ time guix environment -l /tmp/nyxt/build-scripts/guix.scm -v2 -n --no-gra= fts -- true La jena derivo estus konstruata: /gnu/store/apk1g220mh4g2fzddxy28ssmk6fy9wbm-profile.drv 0.0 MB would be downloaded: /gnu/store/1dr7bkhy8f2v0kgpgm4swl0zrr740zwk-cl-webkit-2.4-10.0bc05cc The following profile hooks would be built: /gnu/store/3qhdrwww3yidqk6w98md9w4yfqv7sx4l-xdg-desktop-database.drv /gnu/store/7dnznrkrn5rajf60gfj0kvkgz5bylkdc-xdg-mime-database.drv /gnu/store/86df5c3j48wg59yrrcqya1rskmwbqjqb-gtk-im-modules.drv /gnu/store/9xjd6ax9hlmskhyagf46l28258azra0s-ca-certificate-bundle.drv /gnu/store/bb583drg33kg138fb25cb0zd7hhgxzw2-glib-schemas.drv /gnu/store/gw13b4ivyfzzvpdik3mgghx6n4ql8b6h-info-dir.drv /gnu/store/p2srmzy6b08x7gbg8nvmxzrr6ypsrqiq-gtk-icon-themes.drv /gnu/store/p3l0f5imh4021khfrnaqgk0xl5w5zmnh-fonts-dir.drv /gnu/store/wsryc95x85d0qdavgiw4fy1qglam6b84-manual-database.drv real 0m4.497s user 0m5.719s sys 0m0.151s $ guix describe Generacio 179 Mar 30 2021 11:00:56 (nuna) guix 9098745 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 9098745b181b3022587a35afd255f7ff1d41ac86 --8<---------------cut here---------------end--------------->8--- That=E2=80=99s still too long. The graft performance problem is what=E2=80= =99s discussed at . The =E2=80=98--no-grafts= =E2=80=99 performance is not great either, and I wonder if it=E2=80=99s suboptimal behavior in the presence of many propagated inputs. > Something must be wrong, because I found a workaround that's fishy: if I > comment out some inputs from the guix.scm and build the environment, > then it works. Then I uncomment the commented inputs and this time the > environment builds in a few seconds. There was temporarily a performance regression regarding substitutes: https://issues.guix.gnu.org/47283 Given what you describe, this sounds like a likely culprit. Would be nice to see if after updating your daemon you still experience that kind of behavior. HTH, Ludo=E2=80=99.