From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id AC6AGrM7KmcWGgAA62LTzQ:P1 (envelope-from ) for ; Tue, 05 Nov 2024 15:37:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id AC6AGrM7KmcWGgAA62LTzQ (envelope-from ) for ; Tue, 05 Nov 2024 16:37:23 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=WQfgXg+C; dmarc=none; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730821043; a=rsa-sha256; cv=none; b=bBuUVYv4uKxSjGtoqPOo1egbAnnC3XGe8zUyLWXMCQow2Ptf220v1vNaozrft9OlT8PRJL 6L3c/ioZommsu86Sf0jD1Hcr2b7gaURO60WSH7UGzjm/JL9MeCS5XUKLxh1VnGclddkSFV WgWQJfqaImT/pCCiywR09FLUVIrcayg4rDXzrOaYQM3HJTDALbmQomViJTMoVwDWGk3Sgi QDV1PGfP3r1gVYQt3v2doSS+aMYern0Or7CYTMb6Tv55a+Lce6f8UP5L8yc/pDMsiso2RC r6YuEE7H+GffR+FEHNUhoU5oSloSyAHA2gYQBbWmRMKZcXiUvU85gr5eWdDEKA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=WQfgXg+C; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730821043; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=EBTQcdiy77o6Iu1+6ic8c4oSNE2yDtaEqbVfCMx+C7s=; b=mxf1ROguNw5sCZez63+Cz/ltWtdBf2Pl1Dhtm03gw2F816V+KM8Y25R2K5/hiKRo/Nz0m0 1svh5XOwmQcw+2C5lvEfX2D+gWUUJuSClYjeL1T8BH8YV8LJ7El/zVm4Uc5QhUZnnJHhGu TnU/m/CkDRVhtWCH3S9b6UjirW73XkjrcV8Fxov2Ja7LaGh/zhx1RX5oQDVXPHG3lrtf/U JC/zs/bKT5WYeGx610jZ1m692zSYziCjrpq2UKb3Lpl2ZbRAuMTLnk892Va7CEIYuKPT3Y itUxt7ARZVOy9SWu1rlvdKWdbPfTFNQZbJLVjPLq1MUCpc/t+SLMF1Vv3bp/WA== 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 010EA804D2 for ; Tue, 05 Nov 2024 16:37:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8LZr-0001Ia-MF; Tue, 05 Nov 2024 10:34:49 -0500 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 1t8LZW-00012i-EY for guix-devel@gnu.org; Tue, 05 Nov 2024 10:34:24 -0500 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t8LZU-0004LR-Cx; Tue, 05 Nov 2024 10:34:22 -0500 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-37d3ecad390so4213149f8f.1; Tue, 05 Nov 2024 07:34:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730820858; x=1731425658; darn=gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=EBTQcdiy77o6Iu1+6ic8c4oSNE2yDtaEqbVfCMx+C7s=; b=WQfgXg+C2Q4FQIK5Rw6KdwjXH0dLZSy9UEq/7VMBn2gabV2MANp7FsBqh3uXZEMYtk 5YixorvGsF07g95cEIEUR2K2jpVM6VFNrNthQNkCGutsWwZcRvvAZoDtRi8uAYjStcvo lGJBCVPNV2kK1nv9JjOS57qor2wUxvRKN9vRs6gsxy15DLwQHREkvcVe62p5jAeBmSK9 9NgXe0VKWei1X34kkrbdYZvbhMxGsX49/LwCEToU1L83dLCzSvl1Ml0mpaFHRD4PuNSO ICE+aiN9UYiJ+SRFRrfYxvrlECRv4o+Ou4nTW+RhxBgX+sLAdoE3pG9K8FYO2/9fvGeR 4EBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730820858; x=1731425658; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EBTQcdiy77o6Iu1+6ic8c4oSNE2yDtaEqbVfCMx+C7s=; b=GK9htFPvqYGY5rflcE+nt7jbSUlMm94BsOrtk9aOm3rnPNEaGa7xB51FqFeOFQ1EEn iFbPXkY/bEhxCPSc0/pR8yvuo0KscENuIfGKUsI32rMoFlR/V7/U7nawcUOor6WPg8WX JwOfsSQqw0iyfeDLG46woDIo/gSkOFNVD+Yf/nNk1kj7mZX0sSV9MBBhe3hvoaYF6Bnu gWm0TkupbnjuY9WBmVMPyxFegpzk4xzF3wG5c9f/It04OiKKqJPfqWmQsGGksDE/AOJ2 gCkps8iHF3H7zJwlM5stDFoDFQiwYyj68Ve9wOdjauPwMrccPaCp53wUADPzSgcmHl2N znjA== X-Forwarded-Encrypted: i=1; AJvYcCXcZq2FYQuryz6ek8A0zGkLyhjMb/3RRXzgU9v9DdOLngM2+PXW+5/8bBg7IxLRs9jAUvTM25gKvKv+@gnu.org X-Gm-Message-State: AOJu0YwA+lDMthadXsD1QkY5ViRgxPuVNWeAzAK1e7NAmIDC55vdkBfE vjeHB3yOr1yJCQ+9GtBJyJCwBNOrlclXBoGRpes2eTmnlqX7lxCXZW+Lk3bm X-Google-Smtp-Source: AGHT+IGMEcf7tF4DSON5GCwO7mhXG2w8wH6ck2YMQFEbXBN7shvnG0E/G5+YExLlfDCkYVma2ozk3Q== X-Received: by 2002:a5d:6d08:0:b0:371:8685:84c with SMTP id ffacd0b85a97d-381c149aa6bmr15257209f8f.15.1730820857556; Tue, 05 Nov 2024 07:34:17 -0800 (PST) Received: from localhost ([141.226.162.35]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381c113e642sm16358627f8f.68.2024.11.05.07.34.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2024 07:34:17 -0800 (PST) Date: Tue, 5 Nov 2024 17:34:12 +0200 From: Efraim Flashner To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: "Thompson, David" , Evan Cooney , guix-devel Subject: Re: Possible useful guix package performance data Message-ID: Mail-Followup-To: Ludovic =?utf-8?Q?Court=C3=A8s?= , "Thompson, David" , Evan Cooney , guix-devel References: <87ikt23aie.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hhDaa766Fmta2/I0" Content-Disposition: inline In-Reply-To: <87ikt23aie.fsf@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=2a00:1450:4864:20::434; envelope-from=efraim.flashner@gmail.com; helo=mail-wr1-x434.google.com X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, PDS_BTC_ID=0.499, PDS_BTC_MSGID=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Spam-Score: -0.04 X-Spam-Score: -0.04 X-Migadu-Queue-Id: 010EA804D2 X-Migadu-Scanner: mx12.migadu.com X-TUID: eFsYfG9UWsK0 --hhDaa766Fmta2/I0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 04, 2024 at 11:22:01PM +0100, Ludovic Court=C3=A8s wrote: > Hi, >=20 > "Thompson, David" skribis: >=20 > > What are you trying to measure, exactly? The data collected is about a > > single thread of a Guile process, but `guix package -i` involves > > interaction with the Guix build daemon, waiting for downloads, etc. > > These things are outside the scope of what statprof is tracing. > > Anything that involves reaching out to the internet is going to make > > for an unreliable benchmark. I'm not actively working on Guix tools > > but I don't see anything immediately actionable from the collected > > data. I think getting some more clarity around the goal is necessary > > in order to know what to profile and how. >=20 > Unless you=E2=80=99re specifically looking at performance of substitutes,= I > recommend looking at profiles when using =E2=80=98--no-substitutes=E2=80= =99; I would > also pass =E2=80=98--no-grafts=E2=80=99, to make sure you=E2=80=99re real= ly looking at the core > of the whole package-to-derivation mechanism. >=20 > You may also want to check the =E2=80=98GUIX_PROFILING=E2=80=99 environme= nt variable, > from the (guix profiling) module. That can give a useful overview such > as the number of remote procedure calls (RPCs) made to guix-daemon and > the hit rate of the =E2=80=9Cobject cache=E2=80=9D: >=20 > --8<---------------cut here---------------start------------->8--- > $ GUIX_PROFILING=3D"gc rpc object-cache" guix build hello -d --no-grafts = --no-substitutes > /gnu/store/79dhya6sngg4rf53m1cyxlhn8y4pnw2n-hello-2.12.1.drv > Object Cache: > fresh caches: 16 > lookups: 5042 > hits: 4596 (91.2%) > cache size: 445 entries > Remote procedure call summary: 382 RPCs > built-in-builders ... 1 > add-to-store/tree ... 3 > add-to-store ... 48 > add-text-to-store ... 330 > Garbage collection statistics: > heap size: 72.27 MiB > allocated: 100.29 MiB > GC times: 13 > time spent in GC: 0.42 seconds (45% of user time) > --8<---------------cut here---------------end--------------->8--- >=20 > Keep in mind that the figures we=E2=80=99re looking at here are largely > dependent of the package graph being processed (that of =E2=80=98hello=E2= =80=99 here). > So it also makes sense to look at the size of the package graph in > question first (in the case of =E2=80=98hello=E2=80=99, it=E2=80=99s prob= ably fine, but let=E2=80=99s > say when Rust packages are in the loop, the graph might be much bigger > than needed/expected). Did someone say rust? I made a manifest of the packages that use the cargo-build-system and aren't rust-* packages, or which have rust as an input. 102 packages: $ GUIX_PROFILING=3D"gc rpc object-cache" ./pre-inst-env guix build \ --no-grafts -m ./etc/teams/rust/rusty-packages.scm \ --no-substitutes -d Object Cache: fresh caches: 20 lookups: 361239 hits: 351403 (97.3%) cache size: 9835 entries Remote procedure call summary: 11780 RPCs built-in-builders ... 1 add-to-store/tree ... 33 add-to-store ... 329 add-text-to-store ... 11417 Garbage collection statistics: heap size: 223.68 MiB allocated: 1332.86 MiB GC times: 34 time spent in GC: 7.10 seconds (33% of user time) I also did a run with hello to get a comparison on the same machine: $ GUIX_PROFILING=3D"gc rpc object-cache" ./pre-inst-env guix build hello -d= --no-grafts --no-substitutes /gnu/store/1y2k2jkb8w67mcwj42b8bxjv3yshk5kf-hello-2.12.1.drv Object Cache: fresh caches: 16 lookups: 5042 hits: 4596 (91.2%) cache size: 445 entries Remote procedure call summary: 382 RPCs built-in-builders ... 1 add-to-store/tree ... 3 add-to-store ... 48 add-text-to-store ... 330 Garbage collection statistics: heap size: 79.57 MiB allocated: 122.75 MiB GC times: 14 time spent in GC: 0.94 seconds (69% of user time) --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --hhDaa766Fmta2/I0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmcqOvEACgkQQarn3Mo9 g1GSYQ/+N0BSx3uSkOyJOaBmg2cL90KA9XXNG7Hpa3zGXkY9dlkwbQMZMLn9HP4W 9Kc/ajA++7M1Uy7kxVoCbWA337Up/JoQH2nbvQkbWJBCz/+tgRqH1YEdIwTMfwBb sriAv6+KaH6qmlTliCkq58gycfZEzVoSYYpvbpKEhxXB3oWJT60AvcQOB774yAZD zN+dduObMmc85Dt48YCE1OIItfZqJZrficYN6VU/dX3w5h6FYX01N5Qs33O9CoUJ vEyf11JesJSvp5rXYBgb9iGzQLR9NtVl8LxizqMypdTs0eJ5gAypvargQJMi8pcL FzwduXqEyrEeYDuo2cWeYVkF7mzCZUnq0TDzBKLRfGjlcpEuPXhl/vHyLg+gGbdf VaFOli+PpsXg8djHOpO+Aa6JhUCg3s/AqAOb5BZAP69hM9HknaqSsOPnmpq1/fPm HcKorJodSe7zmnZJmAfWDE4UupfNE0ExSaeTO0/coBkuVCDrSu3UMJjPGxxdzNP9 FdDoAwoCcn77nazlDWuEztJso1xPVKBsGVYH4bYbNPpIIN5XePOv1yS9PMaNkraN WKZI7I/vzSPHAvoFYEX88/785agQZ5aWzPnz1FxNeXPyikUh2VdHip96ak2Sr4m7 GcG9gDXoCu8HaPJHBGX6Z6vAcnY0o0L1tchvLxNbzwITCb0ceY0= =6dEU -----END PGP SIGNATURE----- --hhDaa766Fmta2/I0--