From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4JFuHxx792QaXAEAG6o9tA:P1 (envelope-from ) for ; Tue, 05 Sep 2023 21:01:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 4JFuHxx792QaXAEAG6o9tA (envelope-from ) for ; Tue, 05 Sep 2023 21:01:48 +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 350CE44440 for ; Tue, 5 Sep 2023 21:01:48 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=DyrWijiB; 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=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693940508; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=I8mxzM7PCGO150vGDSrB6ljrBJddsz9x63NNQ72b5vk=; b=dRBgL8cVgDvD1Km4zvZLgbceyeQv52XOETn3Jz0AuqFGRWxttLp9EjaMQ4UH4gLxNJq7CN MvdSNzZvNjPHAy346nKwTt/Q5xeFqY5D2A/i27VsCNDeNRGvTWnh1oTIPWpU+TsyvGmPF4 jPqa+FdxA5M5C1q1gfBTRdDueW9EU2oW0ZS8LEyLGKYdEnX8O6UWpN/eaz0MnEazugVnkd r/+YNVGqDz6To3dHQ1PugtoMR+94p2vznqSROw/BZD2/yoQWD+w/CoflmxXJuxMkxQpaH7 jsjJ/y7bOcDGE/4aDI9KL1VznMe38I1gBijcVzJwzLRr0i9aP9hiDsveVF0I4g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=DyrWijiB; 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=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693940508; a=rsa-sha256; cv=none; b=piPhEAclJiLQqHsoFghH/pOap4m8dyyk0tGY/Qq8HbNdIFBQ4LJyFIcca8plR/VXvFMu2F ilPWovI/On2/K64m86EZAL314kGfHBPbaG0YHrvXPi/GwgwwX9AQfgUos38BryTil402Dq 2SqGg8nZ0YImRBuG91GA4oDRMYImPAEgWtrwN2mAO5EONigdSh/JEap2j2ecTCntS1rKAh dLhinnUgfpffKZedW7jubRmtdopdjG5eGOqFlMcOau5alh8Jv07E+pjafRZRnBVsmtJ3ea +Pq4wAUqPBdfTt3obYdhkRVlTqkOYPFCZ76BNUwyx9/6jxxXSP+1zIEmNuDJrQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdbIV-0006Wt-1r; Tue, 05 Sep 2023 15:01:11 -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 1qdbIT-0006Wg-1w for guix-devel@gnu.org; Tue, 05 Sep 2023 15:01:09 -0400 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qdbIQ-00066t-8u for guix-devel@gnu.org; Tue, 05 Sep 2023 15:01:08 -0400 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4ffd3c9330dso710588e87.0 for ; Tue, 05 Sep 2023 12:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693940464; x=1694545264; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=I8mxzM7PCGO150vGDSrB6ljrBJddsz9x63NNQ72b5vk=; b=DyrWijiBUF26HlACUqAiOS/oX1bukntFwhbn4z5sTiE7HshuLYKGM1zLzXj6fFKrBu VC+dL8BfyQavFUAEgIUYHbvHHdI7P6Eiw6ujjGaM4fqHeQ3iGpi+H3Su2KgOCywa6FC+ Eic5vzG9rN7nteX871nCvmooF7DgNQYUaEdhhicoefdN0608t/9PevX1ExEEhIqolpHH sitXPSTIsqhMF6wg16VvdfU7KIxaHQERXspmUz2OF8l28QncjJ7wmU4e7rmd2hPYlG9M EOah/w6kY5QD992tmzQmOnc+y2+YVjzx6yq0Regiu7Sf5nQUJINsYsIWR2i6Xg4qBC3Q rx8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693940464; x=1694545264; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=I8mxzM7PCGO150vGDSrB6ljrBJddsz9x63NNQ72b5vk=; b=InY85YRbvBAIg8kO7UWDqdvmOcQSzs4ihcCVjXcxNnZe6QvcWyAxjEJG+xDSoFpOIq YAVQ1CRgQYyWlUxdMqswmhZMZpgAlNLz2U1DVKrkhpS1JkpU2JbE4luXqKBi218o0/I8 okjFyhfegwhYDGDAJ+yUFfdII/L/Cxv6ecEDneiwLUpETI8ADkPd0s56RdxcwRByYuhe 60qBuVE39ic6D11EdEy5W18Ty+gdCSII8EG87IJGTmO8IPIGvWeoGsQlgwsVAlDZlik+ AZIRBo8ho3kgJRiS1ADneCUo+0NM5bJwFtUm3rlAB+2ZLq9QZ25OBiLwMzfDWzcAYHYn D9aw== X-Gm-Message-State: AOJu0YxskGLLTo8CKeMqDugwB4Kq4g+O8IPGWhGiRlJf2hhuC/3We+b5 fl2DWqOpj56INFAmZU6FHGI2WgyC+k0= X-Google-Smtp-Source: AGHT+IG+5gMT7Ur3iSt0JduPY+JGeujYG6pQENEPN9bvIKy7B3nz//kwbt5oI8XuKyFuuGL/8wHrPA== X-Received: by 2002:a05:651c:201b:b0:2bc:d505:2bf3 with SMTP id s27-20020a05651c201b00b002bcd5052bf3mr7786978ljo.1.1693940464126; Tue, 05 Sep 2023 12:01:04 -0700 (PDT) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id n9-20020a05600c294900b003feff926fc5sm17704897wmd.17.2023.09.05.12.01.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Sep 2023 12:01:03 -0700 (PDT) From: Simon Tournier To: Josselin Poiret , guix-devel@gnu.org Subject: Re: Guix pull speed In-Reply-To: <87wmxe3vsa.fsf@jpoiret.xyz> References: <87wmxe3vsa.fsf@jpoiret.xyz> Date: Tue, 05 Sep 2023 19:36:29 +0200 Message-ID: <86wmx4r082.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=zimon.toutoune@gmail.com; helo=mail-lf1-x135.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 350CE44440 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -9.59 X-Spam-Score: -9.59 X-TUID: enUXdlHzx+te 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]. > 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? O= r am I missing a point? Last time I played with =E2=80=9Cguix graph=E2=80=9D, I w= rote a small script for bridging with networkx. See [2]. > 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=9Cgu= ix pull=E2=80=9D is building? > One idea I had was to move all the packages that are looked up in (guix > self) to their own little bubble, to avoid having to load extra stuff. > However, this is not currently possible because some of them do have > non-trivial dependency graphs. I've identified these problematic > inputs: guile-avahi guile-ssh guile-git guile-gnutls guix-daemon (it > pulls in all other dependencies itself) po4a graphviz > > What could be done about this? Another solution would be to somehow > build Guix without any of the dependencies and then add them in later, > similar to what is done with build-aux/build-self.scm to be able to load > (guix self) in the first place. That seems quite complex though. Thanks for looking at this. Well, as reported in [1], I am missing what is the aim of the procedure =E2=80=99proxy=E2=80=99 and if it could be avoi= ded. Cheers, simon 1: Slow guix pull Simon Tournier Wed, 23 Aug 2023 15:48:06 +0200 id:86o7ix3m5l.fsf@gmail.com https://lists.gnu.org/archive/html/guix-devel/2023-08 https://yhetil.org/guix/86o7ix3m5l.fsf@gmail.com 2: Some stats about the graph of dependencies zimoun Fri, 09 Dec 2022 18:29:43 +0100 id:874ju4qyd4.fsf@gmail.com https://lists.gnu.org/archive/html/guix-devel/2022-12 https://yhetil.org/guix/874ju4qyd4.fsf@gmail.com