From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:1008:1e59::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id wPgAFGQjoGWtbwEAkFu2QA (envelope-from ) for ; Thu, 11 Jan 2024 18:20:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id sKxFDWQjoGUjxwAA62LTzQ (envelope-from ) for ; Thu, 11 Jan 2024 18:20:36 +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="Nysf3/4r"; 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=1704993636; a=rsa-sha256; cv=none; b=QdY1RRl/fMoh5jP/BgF2gO+6pxg5iI/BcQEyaZ28Xe1Aoly349ivAlswoiLpaMvPPI7WDo 9rliwvBjzhQXD8NdWswSM4syGErT9jmnc/b9kc8kDdJbq9ZzjeFJJVNex9bWjobE6b7VD9 y3FSP9tqTRnFENOEGF+qIWvIsAj2oXT7gIpp1eMkvYQQguMSVZ0aHWasx7zISsVw2Rgi8L IlVQ1mJmIXin7CH7NwtCrjkBjPgeuGzHkFatoqxIoeuk7UEghXW6aoYO9YLM7V0kiC5Alp Y1Zu1DOxQEJmpwIeV2Syxd6PjijIKi6Uz6H8cy0QTT8TYHtpDB3KABwTegYkOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b="Nysf3/4r"; 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=1704993636; 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=gtk6fe317I8PcJChkZ5O5G9WIFck1ZPooslOjg/yoJs=; b=uq18bCSy2sKjPaiKH2fZdSTBXT6oFM/Vdk0pj59h1T3T23d2/UEkfpWJL/8l1k8EwF8TJ3 uNlHYwwaK99PLohj0RAj0CEhmWG7kcsFcvhdKHMkqfUlVQCCJDTBkN+WvFrlT+to6IL3nB WYgIruMtB66NOVH5q7zTgj9Ql8HPQyBHQ7hERMYh7OZGZ+APkQ4XIMuU9f1J1lDFtm8U1b xwfT01PUKfwXR86eKc5ZFKB9C6sJ5PDyll4u8x+y53fGPs4WFCKCc2TyAhJU9i1xcwXpNc /LnXyUCllbUmFS0vSgrZO3REz5xm6F4Wj3Dc2UA0CnL4teH/Kt0+Y1qQ2R7MlA== 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 B99D33EEF8 for ; Thu, 11 Jan 2024 18:20:35 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNyiz-0004oT-JD; Thu, 11 Jan 2024 12:20:13 -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 1rNyir-0004eO-69 for guix-devel@gnu.org; Thu, 11 Jan 2024 12:20:05 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNyio-0005Ad-Aq; Thu, 11 Jan 2024 12:20:04 -0500 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-40e490c2115so26741665e9.0; Thu, 11 Jan 2024 09:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704993598; x=1705598398; 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=gtk6fe317I8PcJChkZ5O5G9WIFck1ZPooslOjg/yoJs=; b=Nysf3/4rr1BaMZHiodrXUGhmUZbuW6jJMZXrU8a/ZXrnp8dLWIq+vW1tmN6cLW5Y/3 qXLaxzKZhgioaOEdFNeSSnCj02GEF58+pQiAZjCYPFOyWq843EMl7MADkJvogwVnA/Bs PsCONdmkB2Z3z08AN1V24OHAXpb6TdMfXBL1UA6iw5z0UpvpSEXgYNkIXSv92IkGpiit +MX4uXBrrKRueobXUN3ECralnGxUD1ceS8xO4bcDD6/cl40FAT9lQUuIxf3bIg/06MTu eXl5O9iZTXMS+Wzmz+ebg2nwqIKFqoHBdn2VBR6SVmD4ZWpqzXuL/CfBSHj8G9CF65hx 4MKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704993598; x=1705598398; 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=gtk6fe317I8PcJChkZ5O5G9WIFck1ZPooslOjg/yoJs=; b=FZxLB5FPPD/tq7HriAeYvbDOeTaHcwLcfj0MmxooUOFICM92wW6NNhvOEqg0LogqyL mWCc3SMx39996tzEGn8EqeUA+cKWDdVRYMYq6/cMAB2n4w5FWe976Mi18DP7AWJqcQ/V Y7CifsAwPwS+T5dL/irihrOaANsPfMVuq64GgKscUnsZHQce1RFwSNAxfCuOks9Npkfq 7J9DwsFsN1qFt5h5iM3C2jYJhDKfVQtua2IdjTGdHlSC+aKqXm7je2R86A2vHE08CEIe DOCINPEC1Pk8bdPRAwkwZz2HTsb9jQEvYSlM4dxSDJG6G2Z22kw4Odq6CQvVU3WXklWT gOxg== X-Gm-Message-State: AOJu0YyWqHgXrwH200KvbiULzvlsWSS/vDkBdJvioSH7HareF4QPtN6G smwiucGpPzZa4vfxWIrCE7IC50qDrfEzJg== X-Google-Smtp-Source: AGHT+IE9c5w6qgQCKmT6QpjSOvK5syaKB7iKpktegokoDs0n4iYEfxBmFWd62bON8K1Sw5xyAysgeg== X-Received: by 2002:a05:600c:548e:b0:40e:6195:2391 with SMTP id iv14-20020a05600c548e00b0040e61952391mr95927wmb.11.1704993597774; Thu, 11 Jan 2024 09:19:57 -0800 (PST) Received: from localhost ([141.226.15.142]) by smtp.gmail.com with ESMTPSA id h16-20020a05600c351000b0040e4914f28dsm6498058wmq.18.2024.01.11.09.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 09:19:56 -0800 (PST) Date: Thu, 11 Jan 2024 19:19:54 +0200 From: Efraim Flashner To: Christopher Baines Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , guix-devel@gnu.org Subject: Re: Performance of computing cross derivations Message-ID: Mail-Followup-To: Christopher Baines , Ludovic =?utf-8?Q?Court=C3=A8s?= , guix-devel@gnu.org References: <87zg00xvuv.fsf@cbaines.net> <87y1exvj2n.fsf@gnu.org> <87le93r9v3.fsf@cbaines.net> <878r4xgxr6.fsf@cbaines.net> <875y00oxo4.fsf@gnu.org> <874jfkgewz.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HaeAw5XlJcP8OF7n" Content-Disposition: inline In-Reply-To: <874jfkgewz.fsf@cbaines.net> 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::32a; envelope-from=efraim.flashner@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.89 X-Spam-Score: -3.89 X-Migadu-Queue-Id: B99D33EEF8 X-Migadu-Scanner: mx13.migadu.com X-TUID: aWZchbmnRWt4 --HaeAw5XlJcP8OF7n Content-Type: multipart/mixed; boundary="ZNBOsHZZUJFnx2T/" Content-Disposition: inline --ZNBOsHZZUJFnx2T/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 11, 2024 at 01:26:35PM +0000, Christopher Baines wrote: >=20 > Ludovic Court=C3=A8s writes: >=20 > > Christopher Baines skribis: > > > >> I think you're right, while I send some other changes in #68266, I thi= nk > >> it's this change around make-rust-sysroot that has pretty much all the > >> effects on performance. > >> > >> I think the tens of thousands of duplicated packages from cross-base > >> that I was looking at are almost entirely coming from > >> make-rust-sysroot. As Ludo mentions in [1], maybe this has something to > >> do with use of cross- procedures in native-inputs, although I'm not su= re > >> that moving those calls out of native-inputs is a correct thing to do. > >> > >> I don't know what the correct approach here is, but I think something > >> needs doing here to address the performance regression. > > > > I probably missed it in the thread: what commit caused the regression, > > and how can I test any changes? I=E2=80=99m willing to help but I miss= ed some > > of the context. >=20 > It's not a pure performance regression, more that in it's current form, > rust cross derivations are very expensive to compute. It's been this way > since cross-compiling was enabled in [1]. >=20 > 1: https://git.savannah.gnu.org/cgit/guix.git/patch/?id=3De604972d9c69730= 2691aeb22e9c50c933a1a3c72 >=20 > I've been looking at data service slowness in processing revisions over > the last few weeks, and I think it's mostly down to this. Looking at the > revision prior to the change [2], computing all the derivations took > around 3 hours, which is ages, but still quick compared to the nearly 9 > hours it took after this change [3]. >=20 > 2: https://data.guix.gnu.org/revision/58bbb38c5bd2e42aab9e9408d8c9d8da340= 9f178 > 3: https://data.guix.gnu.org/revision/c9e1a72cc27925484635ae01bc4de28bf23= 2689d >=20 > Obviously having more derivations is good and that usually means more > work for the data service, but in this case it seems like things can be > sped up quite a bit. >=20 > For testing locally, I've been computing all the derivations for > i586-pc-gnu, but Efraim also posted a concise command to look at > computing some cross derivations for a subset of rust packages [4]. >=20 > 4: https://lists.gnu.org/archive/html/guix-devel/2024-01/msg00053.html list-all-cargo-build-system-packages is actually a script I have locally that I should probably put in the etc/teams/rust folder. I've attached it in case anyone wants to try it out, or see the speed-up of computing the cross-derivations. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --ZNBOsHZZUJFnx2T/ Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename=list-all-cargo-build-system-packages guile -c '(use-modules (gnu packages)(guix packages)(guix build-system)) (display (fold-packages (lambda (package lst) (if (eq? (build-system-name (package-build-system package)) (quote cargo)) (cons package lst) lst)) (list)))' | tr ' ' '\n' | grep \@ --ZNBOsHZZUJFnx2T/-- --HaeAw5XlJcP8OF7n Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmWgIzcACgkQQarn3Mo9 g1Gm3g//TC4Pp6KK42V4fx5JNKfcPCt8sCqyryxxZCRJJFCFDnUOjwW0rfsO02S5 Pf+c6SOfHtSCHW//h1UpN18bco6dJP6f+MHCElKv7cqTbK07aKc5v779wA3/NrsU ExpxFJSEVJB2A0OJVg2S8kQVEbHUVjPdkL2J6jWFTU5RMU0VKCeKxmiquy3/2pNL KJJQBEuaB6YZzn6kuEhvIU7dGe3c3dhbFCduRnCLQljAbuFtM7FHqkVjkURDqM4N AjsS0LX0QZxgbvICY6T+tkyjQOJVISqfv5qRzXq4J1SdND00yQ+Pjbna/j0sp9KO m3+981VWc6/MIBhwOhOTEZXvBNoIYwxNxzL3JHj86gY2DbJ/aUU82/640Y/QzfQh aC+GCUPteemC5k2g8bVtiFsnE052NXVzBVJ7b1K4BGl+4/vxzHB1PMKTeEg6m8t+ K2GbDcVny8W5+Keyx2UrBdV+w7q3rexF/6hkhzEyCEAjQ5wOJAYsNZ3ZSifHr9ww wGDBUAnYqsgIQn3xtnC91RSii++iolX3OfRKTghyJ6ViwRMCIQmbKn5WhGw3EYM4 naSskBiAPcVWt29oLn7i3L6jwGB/3m5mGXjwxOkWMC2cvDDMvZmyKSoCepJlskZf XdXTlIGQARvIkx2agn82r8go3nle6LHUBDFmNFlGU8AAsKq8hhk= =FUaL -----END PGP SIGNATURE----- --HaeAw5XlJcP8OF7n--