From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 02 03:43:28 2021 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Pierre Neidhardt Subject: Re: bug#47496: Very slow `guix environment -l nyxt/build-scripts/guix.scm 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-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Pierre, Pierre Neidhardt skribis: > Nyxt provides a "guix.scm" to build Nyxt locally: > > https://github.com/atlas-engineer/nyxt/blob/3239b10d816861d329dce10863cb84f9d0bd76ed/build-scripts/guix.scm > > A few weeks ago (not sure exactl [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: ambrevar.xyz (xyz)] -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [209.51.188.92 listed in list.dnswl.org] X-Debbugs-Envelope-To: 47496 Cc: 47496@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) 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.