From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KDvKMVpK+GTq8wAAauVa8A:P1 (envelope-from ) for ; Wed, 06 Sep 2023 11:46:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KDvKMVpK+GTq8wAAauVa8A (envelope-from ) for ; Wed, 06 Sep 2023 11:46:02 +0200 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 937C444445 for ; Wed, 6 Sep 2023 11:46:02 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=jpoiret.xyz header.s=dkim header.b=hjOzvIQc; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=jpoiret.xyz ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693993562; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=yY51+rFxnRxALrlgtuEnga1FB/N7NrHSyNm+YqY0ezc=; b=UIbPLiabBBvPEv26jAW34wQ/yeX3ax1XqAjSd0HMgdChrboRrjto6FLavI9tPF+eWJqERJ 2Bi8p4foMh3XYJjQPrIsFJ+whA+1pectsIw0y0c3Xf5T8OYeuQBVevwsgaq0FHJtXmywPJ eKt+LW/HOnGxenxHIYLQ850NJJE4ySa3WTdhWHEP1RxtVw/QdEi9Bbj6LCVWDBekaPismK ZAN3wkLZMWPMwaVuACkFQEZRe675J/BPUKgAE5+LGZdrNtj1e3jSAuqciniuwi/j9wfxaT KXkRh2CYVCcXWtz4oBN61+s3F7JCMBkXQMtqpKr4hxfIK7XHPqnE+8GkGKNjrQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693993562; a=rsa-sha256; cv=none; b=ToufLXJl7tgO+W9IxlkHrLGx9lIKuo66DuM1HINkCvxoBHFh3hQf2W5ayl3Yw0z2LwV5iR qu5YTvaECNrZ4nfunNQwzLSP5TWfuRorUGYqi5YjLrBnSUgsO7Rk8w62YGX7bIDl7RhbOA cTGxycA0jtjDEx2ky+Zm8+CWCSau6gX2MyiiLuxKrVD2kQ1Mx+QLrbrpGx9DVvdThpr7MX O21wwlpgUpGWnbn5hk0bwqKqCRk+gjDfCjK+IEStcjjSO6Qz+8IAUk2rI8KqHsKmAyi2Zw IkPQ3HEZxWzu026ZzcwI1qAdNEucui5SBHfwlOd7HO7nEyLBgKt0iiyzShrKDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=jpoiret.xyz header.s=dkim header.b=hjOzvIQc; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=jpoiret.xyz Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdp6T-0005Pk-Iq; Wed, 06 Sep 2023 05:45:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdp6C-0005G9-7D for guix-devel@gnu.org; Wed, 06 Sep 2023 05:45:35 -0400 Received: from jpoiret.xyz ([206.189.101.64]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdp6A-0003Lp-0R for guix-devel@gnu.org; Wed, 06 Sep 2023 05:45:23 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 9F844185310; Wed, 6 Sep 2023 09:45:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1693993519; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=yY51+rFxnRxALrlgtuEnga1FB/N7NrHSyNm+YqY0ezc=; b=hjOzvIQc08gMXzdF+uYp3NVREyKtDDPqyfqqRtkULQQ+hcNqqyjgdshnFMbzBX/K9cVYoU 4voXVxrnIDIObM33PAn8gY8xYwW1jaF3rLsLAFXhA5w/GVxygaQXsO1t/eGPlP48naF2BE YmrHuizATtmWk/8MCidl/HIvvXX+I5m/Yd/3IZhhlwKwxZBM9iqA48peVDwd/naMcJwvs4 Q57jf/f3EL58xdC+pfdS5++HporFwwYzEQSDDvoZofs9Qsz6WZDauN/55UiqnRbQbB7pyk sn7muPWwPvzPfGrSFtGw+BeHZJ5UAlxABAvQiHFocLS/j5onSt4/QZDxLw7EmA== From: Josselin Poiret To: Simon Tournier , guix-devel@gnu.org Subject: Re: Guix pull speed In-Reply-To: <86wmx4r082.fsf@gmail.com> References: <87wmxe3vsa.fsf@jpoiret.xyz> <86wmx4r082.fsf@gmail.com> Date: Wed, 06 Sep 2023 11:45:15 +0200 Message-ID: <87edjbvdn8.fsf@jpoiret.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spamd-Bar: -- Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Spam-Score: -11.86 X-Migadu-Queue-Id: 937C444445 X-Migadu-Spam-Score: -11.86 X-TUID: OPKk49ke4gaN --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Simon, Simon Tournier writes: > Hi Josselin, > > On Tue, 29 Aug 2023 at 13:58, Josselin Poiret wrote: > >> After looking a bit more into guix pull speed, or to be more precise the >> "Computing Guix derivation..." step, which is not substitutable. I've >> come to the conclusion that the thing that takes the majority of the >> time is loading the files that define the packages that the new Guix >> needs to build itself. > > Well, on my machine, the bigger bottleneck seems the procedure name > =E2=80=99proxy=E2=80=99 which copies stuff around, IIUC. See [1]. Proxy is on the helper script side, it's just waiting for the actual build script to do its thing. >> These files are not compiled yet, and worse, >> loading just (gnu packages guile) ends up loading 361 other package >> files. You can generate a package graph in GraphML with `guix graph -t >> module -b graphml guile`, and use e.g. networkx to analyze it. > > Hum, is this =E2=80=99graphml=E2=80=99 something you have not submitted? = Or am I > missing a point? Last time I played with =E2=80=9Cguix graph=E2=80=9D, I= wrote a small > script for bridging with networkx. See [2]. I've committed it pretty recently, and should work OOTB now. >> You can compare with a compiled check-out of guix by just running the >> following in a `guix repl`: >> --8<---------------cut here---------------start------------->8--- >> (use-modules (guix self) (guix monad-repl)) >> ,run-in-store (guix-derivation (getcwd) "0.0-git" #:pull-version 1) >> --8<---------------cut here---------------end--------------->8--- >> which takes at most 5 seconds on my laptop. > > Yeah, that=E2=80=99s fast. :-) > > For comparing, what would be the corresponding derivations that =E2=80=9C= guix > pull=E2=80=9D is building? It's building the same! Just that building the derivation takes way longer because it has first to load a bunch of uncompiled guile files. Best, =2D-=20 Josselin Poiret --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHEBAEBCgAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmT4SisQHGRldkBqcG9p cmV0Lnh5egAKCRBQXkC5FhcaihygDACidQvnWurWCtl10HE2BcCiRjel5bgunzox TYkqqRAWBt346hL8e2FzIRoWWKn0cdzTY2Y2e2lX2UDCbaz/sdWhDq91dZCAeEVB imPu9C/Rhp2MzEfL0YGBcUXs1/jv70nGGMlkrB3uUAYGtUBzCtNaH6SIkVg587lc 2bsAXogQIqmUen1Zj2HXptteTJ9gBPZ4CPmGKpqUoFcUptNQ0g3ShPX/kTuiE5J3 cQAzx6dEzeB61+h+AaIYwj6V2dTKOiT3Zb38M8Kv8CUcp3iuTSkEUGyi0Gi7pUf1 FMdx1hC6jE7vADQVLG+byg1ZdEsCglFwwwleM0QpC3sv+sIV8EdiQSGkm0wh2nxK Dkj+FSeEeN7QCAHUXWAMxlFmIK001L8c/f2BeUVZo5qjr4vPI39M899pd8UaAjh6 qx0MvRtuhHs4RDXRmzTBBtG4o3VdRFmOWess7nS2b8SwPv1Df4lN/7a1XOE9g8Do nCFscurcJldjzqZcqcixF5aqBoV//bA= =UWud -----END PGP SIGNATURE----- --=-=-=--