From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id uDTdHFKomGQknwAASxT56A (envelope-from ) for ; Sun, 25 Jun 2023 22:49:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wMftG1KomGQbhgAAG6o9tA (envelope-from ) for ; Sun, 25 Jun 2023 22:49:22 +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 CC520D137 for ; Sun, 25 Jun 2023 22:49:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDWfY-0007Di-PH; Sun, 25 Jun 2023 16:49:12 -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 1qDWfP-0007DH-4w for guix-patches@gnu.org; Sun, 25 Jun 2023 16:49:08 -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 1qDWfO-00020L-Sn for guix-patches@gnu.org; Sun, 25 Jun 2023 16:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDWfO-0003in-BR for guix-patches@gnu.org; Sun, 25 Jun 2023 16:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64188] [PATCH 0/8] More package tuning Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Jun 2023 20:49:02 +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: Efraim Flashner 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.168772608414074 (code B ref 64188); Sun, 25 Jun 2023 20:49:02 +0000 Received: (at 64188) by debbugs.gnu.org; 25 Jun 2023 20:48:04 +0000 Received: from localhost ([127.0.0.1]:43730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDWeR-0003et-Jy for submit@debbugs.gnu.org; Sun, 25 Jun 2023 16:48:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDWeM-0003dT-3D for 64188@debbugs.gnu.org; Sun, 25 Jun 2023 16:48:01 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDWeF-0001n3-QF; Sun, 25 Jun 2023 16:47:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=NYAtnOv09h3vFAZO4/0e2xF2mFDJ6pFgunka6sehDDI=; b=muJ4LEyEYQTE90Hbum1B y4onWjLz3AdpQmz3/gkKh7OH6jVCPrbKXRtGicWl6+aTqd7cCKm/4v5rzb4IZC2FdhXJMKQ9ToS8h KLgYrBBXOUebWwKCIvUW44cNbjIOBwsKLkIJvElha0sRYvZYFep4X3aUhW7PMSHztybp7kxjSAwLM sC5m+e26pkU7xG86RyG6U/qWMSEoy7Id9Ks4aCZeysbqwJX1rNPyRCNpF8jDg1SlsxBgp5/fbxEPM 9V7vkbe3FCsW1fHogRGMbbCm9BZeT+7qpdb6kBMbntkTJKlVy7JvrAH0E5sk5RACqMOPuhE1cc5eB 6j8MYARYnspszQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDWeF-0001Cz-5a; Sun, 25 Jun 2023 16:47:51 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Septidi 7 Messidor an 231 de la =?UTF-8?Q?R=C3=A9volution, ?= jour du Concombre X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sun, 25 Jun 2023 22:47:42 +0200 In-Reply-To: (Efraim Flashner's message of "Tue, 20 Jun 2023 10:48:46 +0300") Message-ID: <87bkh3z2tt.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687726162; a=rsa-sha256; cv=none; b=t1BrbVdAa2iIfudt5/POfsLCOxZD06bLBbQNZZ7wiaSWTloUESeuQC7XAC+qFhQ4s4WENw JWJN/xJrlYJHY05YPmC5jw6/VUyf65X+XpIXuQ/jQooDUL0mkJQ5iJKfICJL/yM74xwbsR 6Sdv7vphJSNUSh4g0fgzgCnIRWKwdleIlaWhA0KupZGxLcsXwV15qhnEuRlHuthKd7AwPg dE9HfYI5ExF/c+BYLxFXJO5uNclaAd42QhkQpYANMfCPC95r4H2afom3Tr87Z/0TM53KqC lp3YimLJsL3Kw5wHy4pQKfzloZTmbR7Rvf3I33a9K4GeN79G0q/eE+xYU9YH1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=muJ4LEyE; dmarc=pass (policy=none) header.from=gnu.org; 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=1687726162; 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: content-transfer-encoding:content-transfer-encoding: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=NYAtnOv09h3vFAZO4/0e2xF2mFDJ6pFgunka6sehDDI=; b=pTxtw3Au5TGeOxI17LZGkIHUrvoffkC6TDW8TJYkyWEfTjgahS0SA/sP9S9SFwESt0XjcL vZTNYJ2N+ycpdjYoFe0mUjHrScrqSoPmcBSkTPfKb6PYbl+Mt5/f3S3l1FgupUJwBrZXe6 a09MbjWkVw20gU0HbQL+hMz8TSkw4wp07B4htEyDMgT5ATMvCeofOjAbF2gEtOtGeq3ynX CrW2ghwGLaBeTZjTusl/8LbJSM/X5wPt2SXo+lYZUOPRQCTW+lRP4UnxPsBynVR1GOZRxf UsJa/NIBplJU5V/1b/4NqgS1AVRK57Wl9F7jfSNnDSJlkFgR9u1h3WAUXl5Hug== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=muJ4LEyE; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.75 X-Spam-Score: -3.75 X-Migadu-Queue-Id: CC520D137 X-TUID: 24cwahpCWCno Hello Efraim, Efraim Flashner skribis: > 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. I don=E2=80=99t think these x86_64 psABI =E2=80=9Carchitecture levels=E2=80= =9D should be treated specially: =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. =E2=80=A2 My understanding is that those levels don=E2=80=99t match reali= ty: as discussed in the original =E2=80=98--tune=E2=80=99 patch=C2=B9, CPUs ac= tually produced don=E2=80=99t follow a pattern of strictly including features of one se= t. They=E2=80=99re really just a simplification to get more memorizable na= mes, but it=E2=80=99s hard to tell whether a given CPU really covers the set= of features of a given level. 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 f= urther. WDYT? =C2=B9 https://issues.guix.gnu.org/52283#0-lineno48 [...] > go cpu tuning targets: I mostly used the chart=C2=B9 on the go website, a= nd 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. Now if Go uses those names, (guix cpu) can provide helpers. Thanks, Ludo=E2=80=99.