From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iH9pKt1NmWRbgAEASxT56A (envelope-from ) for ; Mon, 26 Jun 2023 10:35:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2GV5Kt1NmWTA3gAA9RJhRA (envelope-from ) for ; Mon, 26 Jun 2023 10:35:41 +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 1FFAFD0AE for ; Mon, 26 Jun 2023 10:35:41 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=M3GSaJ08; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687768541; a=rsa-sha256; cv=none; b=dpgT6fhFRHkQZmQFNU4nc7+VqIfSSd6g2VoKUVu5ko99MisutnQ0DxoXyjWzopIJqdluv2 h/nr/jT3ifksx7+2EL3xAvOPoogwUXie0hEyeYuuU5H8XrdDXWsILtzKTd8F+CiqlP14ir 5FT2PMIy2KZ4xxTMYgnh1HQpBPXzk4qb/729BoJzujlPreNEX2gLkPGXsfvaU6BuvXJ5gn tcY7iuADsC4szdfmtc6z0RWml29BYvgSJdfQcWoT4jK+M+iKnCPoAI7z9mjAYfM8Fr9nOK YrvygYkCAkOTR3l+d91UQx3As3uskGKvj0cSDNF2FgQVY2bGGMwJz9+dFCDehg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=M3GSaJ08; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687768541; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=pczAEbjlZWp4gvAgVryLprlxUDCQ+mG1nPUT2iBeNpo=; b=HtY0TjEbt6QOu0nns5yiagtfmZy7ofLnkyI+zuricNiIX2LyvLrOExZxhcz4WLtmRy7dQ2 NxF257YOIdjMKX0cR4yMDGZCJ8uo+ZfNjr447aZVfhi4SKHsiXEik0P4oTFAM5q4FTR0J9 soMAF9xUEFskSAYg2VJ7YytXKWoRLL73WaRFk21iFhqk3mmYy0Vf240ZwpIIGvIAd695wg xlaeJC0a5hZCE/gAsQX7Ke67UgtaNwhuXwB66QznakOJAaVE/0Bwwu671nVT/v8npWxFex 3SDn5kV/FVShH0ZYZFT/AcBI8mzcqRncmZHHHZBUmMgQiopj1SNypdyp6dEaPg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDhh7-0007Gl-E9; Mon, 26 Jun 2023 04:35:33 -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 1qDhge-0006zw-1D for guix-patches@gnu.org; Mon, 26 Jun 2023 04:35:18 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDhgd-0005wL-LP for guix-patches@gnu.org; Mon, 26 Jun 2023 04:35:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDhgd-0000rH-Ff for guix-patches@gnu.org; Mon, 26 Jun 2023 04:35:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64188] [PATCH 0/8] More package tuning Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 26 Jun 2023 08:35:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64188 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Josselin Poiret , Tobias Geerinckx-Rice , Simon Tournier , Mathieu Othacehe , Christopher Baines , 64188@debbugs.gnu.org, Ricardo Wurmus Received: via spool by 64188-submit@debbugs.gnu.org id=B64188.16877684883260 (code B ref 64188); Mon, 26 Jun 2023 08:35:03 +0000 Received: (at 64188) by debbugs.gnu.org; 26 Jun 2023 08:34:48 +0000 Received: from localhost ([127.0.0.1]:44409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDhgO-0000qV-7k for submit@debbugs.gnu.org; Mon, 26 Jun 2023 04:34:48 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:55471) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDhgL-0000pz-V4 for 64188@debbugs.gnu.org; Mon, 26 Jun 2023 04:34:46 -0400 Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-3fa8cd4a113so7971365e9.2 for <64188@debbugs.gnu.org>; Mon, 26 Jun 2023 01:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687768480; x=1690360480; 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=pczAEbjlZWp4gvAgVryLprlxUDCQ+mG1nPUT2iBeNpo=; b=M3GSaJ082GfhYlvjy9VKjJ2N0XQ9sPZipl/r2k5epaOf3xHZD73m1rMGY2/brhsCBc +qJDlLXi15OJErfhn9yXh7BB9stQXarvFJOQR/MsT8Iq+xwOmP01xgEsitmMxDzDl55w wAN+aPN/FNr+qiUZQCCf1Cp5diyH4MoXRHZwlSM0XlYsFZtWiPd+A52ITBWX4msyZlkN 7kuHaOBKipAfehFaXE///GRoHFkmGhW7lXM4AWAk2or5NB9L55KOvUtLUUDYVwG38isN hBqaPRRMJmqvzcOBKOE+FB6p9umW26GiH1xiR4JTjU6f1nLG/OP20a77Xahv/Hw1PIBo HqsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687768480; x=1690360480; 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=pczAEbjlZWp4gvAgVryLprlxUDCQ+mG1nPUT2iBeNpo=; b=Cl4Uqhe+b9vujQ6Lt9ZcJEIlA22LWsH2Yo+5JxU/iHGG7YxYW/iI1tpE8ymkvqU9z0 8ReF1shfWgPKdngp8ND7oZZoH1DfoFENpGUAnAcqFy9nh1u0T6vL7dUsCe/Nazu+S/il DxcH2OxOJF/81y6N6/oYrUDAzqPeEqTWbDzyA8UKiQt9Ulg8C/7JpZ3x4zVewNhtVfBB hkLdolRSxKjMV0r5YQ36qTzLtCSV0XukzftzLFvmEMyeh2ppA6ec+LGBl5tLDNYT9J9K FSu31uvxDFpARTFWyC8JkkPUSgXwJlrDWy4g++9/87f5zAFvJ/c03O0MCAOR7gaM3JgP FrtA== X-Gm-Message-State: AC+VfDwfgmgXbSv33IbIDRYpcDZRUic2NGPhBSSyfhR8pAzDWK6voUVK QCwyHekTGGiZhiIGrBXo+Gk6G0f3OQJ9LA== X-Google-Smtp-Source: ACHHUZ45vjSEBRnWVc2Vb+gTnp+rra8mKhgcWr+utPKuyr25AaiRWNkngcZQZx4AEDwar6KG5lJfjA== X-Received: by 2002:a05:600c:2054:b0:3fb:973:fdba with SMTP id p20-20020a05600c205400b003fb0973fdbamr409960wmg.31.1687768480168; Mon, 26 Jun 2023 01:34:40 -0700 (PDT) Received: from localhost ([188.120.129.124]) by smtp.gmail.com with ESMTPSA id 4-20020a05600c228400b003f7e4d143cfsm6896255wmf.15.2023.06.26.01.34.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 01:34:39 -0700 (PDT) Date: Mon, 26 Jun 2023 11:34:38 +0300 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 64188@debbugs.gnu.org, Christopher Baines , Josselin Poiret , Mathieu Othacehe , Ricardo Wurmus , Simon Tournier , Tobias Geerinckx-Rice References: <87bkh3z2tt.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kaJcVTF42TWLJdwJ" Content-Disposition: inline In-Reply-To: <87bkh3z2tt.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 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.35 X-Migadu-Queue-Id: 1FFAFD0AE X-Spam-Score: -2.35 X-TUID: 2f9V1UIoEC60 --kaJcVTF42TWLJdwJ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 25, 2023 at 10:47:42PM +0200, Ludovic Court=C3=A8s wrote: > Hello Efraim, >=20 > Efraim Flashner skribis: >=20 > > with gcc-11, gcc gained support for using -march=3Dx86_64-v{1,2,3,4}, > > which I'm calling 'generic options,' as opposed to the more targeted > > tuning we have with specific architectures. >=20 > I don=E2=80=99t think these x86_64 psABI =E2=80=9Carchitecture levels=E2= =80=9D should be treated > specially: >=20 > =E2=80=A2 From the point of view of =E2=80=98--tune=E2=80=99, they=E2= =80=99re just another value that > may be passed to =E2=80=98-march=E2=80=99. >=20 > =E2=80=A2 My understanding is that those levels don=E2=80=99t match rea= lity: as > discussed in the original =E2=80=98--tune=E2=80=99 patch=C2=B9, CPUs = actually produced > don=E2=80=99t follow a pattern of strictly including features of one = set. > They=E2=80=99re really just a simplification to get more memorizable = names, > but it=E2=80=99s hard to tell whether a given CPU really covers the s= et of > features of a given level. They're also useful for glibc-hwcaps, so that we could build each package multiple times and install libraries built for the psABI levels into $prefix/lib/glibc-hwcaps/x86-64-v[234]/, but I agree that, for our uses so far, they're not really useful. > Overall, my take on this would be to add supported levels to > =E2=80=98%gcc-11-x86_64-micro-architectures=E2=80=99 & co., without going= further. >=20 > WDYT? I could see keeping the code from cpu->generic-architecture (renamed cpu->psABI) either as a non-exported function or simply moved into the fallback for x86_64. > =C2=B9 https://issues.guix.gnu.org/52283#0-lineno48 >=20 > [...] >=20 > > go cpu tuning targets: I mostly used the chart=C2=B9 on the go website,= and I > > also checked the source code for go-1.18. I put in arm{5,6,7} as arm and > > not armhf since armhf only works with armv7 and with go programs, since > > they're statically linked, they can just be copied to other machines. >=20 > Now if Go uses those names, (guix cpu) can provide helpers. Go also uses power8 and power9 as PPC64(le) options, so that's also a possible use-case I was trying to also prepare for. That was my plan for the gcc-architecture->generic-architecture function, to allow for --tune to work without needing to pass different values to different packages. --=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 --kaJcVTF42TWLJdwJ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmSZTZ4ACgkQQarn3Mo9 g1HXfg/8CLljQpQQt7MxmsXDS5Fb6VGogEzjJ4RWl8C3HnDjBWOzMeV5GuUJFePk 3aIYGV8Wc+ouGl/nuB7by7/liWJGl83lpcCKJCPjc9XldAAN0+GghOmjtvKxZnjK 1a93atPpOD5SSuE59j6ZCFcIzXo7BTluVxqtzkkr/UqB1feRdqTSW4eS+JF9d6qG SHwvSDQvD1rVNf38z22kXA1FH0hQstagxY4r44m2vutvCCatqG8bk+vtnzvPjBiX 2jC4WuL527noyq3rTad4VULT6VasZwEnhqiri3KFm6C8SCczU1I7YEWz0Aoz8pqm OZO7afJeXXhrGQTxDwRdf+AvS/rim1OR/Sx6VCY6FaUC90ekMyjNUQwb/ex3cDxc DOSfcF7uwh0EdNXMc1S0okyo0W+1yYSaPydpQX3ZapxUYubDwroI2TuHcgc5ZQmU F3T8yOW1Ww74Au8OyqvBfWFqPjTO0V2tvE/SIHE8qZNM18RYiAypz1JnFfqHiz8e eunMgJw+HpPbst7FNAA2iem/L/VCPnGwll4CJokrXi51PhKPLj93cJXp0I5v0FSz GzigcWSnCMYsixKuAMoRFk9n1FtU7/Maounu2pl8nsuGr+OGCvNAqB++aKr5IYmW ITxc0YemCnKM4nacFpLOFiJ2UbfwkjnwD7axHfMwYuTIivMcdm0= =sNUj -----END PGP SIGNATURE----- --kaJcVTF42TWLJdwJ--