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 eNiuFH+e0GShHwEASxT56A (envelope-from ) for ; Mon, 07 Aug 2023 09:34:23 +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 EELCE3+e0GTXBAAAG6o9tA (envelope-from ) for ; Mon, 07 Aug 2023 09:34:23 +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 8FF4E3F852 for ; Mon, 7 Aug 2023 09:34:22 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b="Go8r/wWR"; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691393663; 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=NVIbFrDc3YQXrdVZvHCW6gMhcD3ul15GPxH2rGc0cow=; b=q4SnGIJFE7YsxLO4uB279kkYabxtkOMDZLXZSn0qeUm95JWW1/ZrgLfrGqb+YCCsbzmzkT 6yZDFARRdBZ1Up/wnR8n0QAPCV6cWeBU/BXnBziO8Mqff6QecbjALslSFIKWweMwWB8yUH CxZm+pH7YAT1Pv3bVJSnBaqm8gyN+tVZl0wi7nnvlsXm/3vfFtks2TnnsgayGniy6pYr2a 2xxtQaiYrI0zQWG8IRugVXj8IoJ9sMVcGOSjrgfnaQ6tr49eXKt2bqgYHsBmcDi2Z/B0d3 FtAT1bHpxntJ7hlirv4QWgGVDoILmykfP36TyWwKpXTv39zDaVbNU3r8XKCyOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=inria.fr header.s=dc header.b="Go8r/wWR"; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=inria.fr (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691393663; a=rsa-sha256; cv=none; b=FhkXLxhuNyYGSLPdJljp0zLAKhAljSsTV6wfBcOho1icnRmtJ0hsKouXmS5sL9grYJ4Smx G5dv6jIrlPJQgucgv5OY0t5a1lWJ+BtVbT6VHN3hyUh/rMxSMYfMvIkSciVPTat1y6OPS/ E7R8m7ZPSOAoK2K9TlNZJ77+kEd1ZVoBeCpbNy1bQH4Z5onumIGoLvSc818SXc3NmGimFC p8FyFo20R7/tMHwJnkcc3X9eIpUClkECDLqegnFXC5K9fNZaxlSr9qrR+vC2bLq5UAzQPE 1Cb1gMyuTEIcjqz/XU7/Tn9ZUCGS8rlDruJ03hTW1btPVkCPMkETVFIHMlIr/Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSukg-0006A7-1Q; Mon, 07 Aug 2023 03:34:06 -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 1qSukc-00066O-TV for guix-patches@gnu.org; Mon, 07 Aug 2023 03:34:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSukc-0000zB-La for guix-patches@gnu.org; Mon, 07 Aug 2023 03:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSukc-00052b-BW for guix-patches@gnu.org; Mon, 07 Aug 2023 03:34: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: Mon, 07 Aug 2023 07:34: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.169139360619333 (code B ref 64188); Mon, 07 Aug 2023 07:34:02 +0000 Received: (at 64188) by debbugs.gnu.org; 7 Aug 2023 07:33:26 +0000 Received: from localhost ([127.0.0.1]:60470 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSujz-00051i-43 for submit@debbugs.gnu.org; Mon, 07 Aug 2023 03:33:26 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:44517) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSujt-00051R-8R for 64188@debbugs.gnu.org; Mon, 07 Aug 2023 03:33:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=from:to:cc:subject:references:date:in-reply-to: message-id:mime-version:content-transfer-encoding; bh=NVIbFrDc3YQXrdVZvHCW6gMhcD3ul15GPxH2rGc0cow=; b=Go8r/wWRT1kqyfXb/wN6Q5TrRrln22NTbo0HmbKpkyNIVS01v0l+lMLq V8Ce7K+47QQNyuS+zsBb+gMyidg7H1+3tj98iGhEajYf3h/CH4KPaiwh+ cTgz8LwfP50yX8ctKJ8ejuAZwrINEfoK4SGVR6tS0civOBmAFEC9naD3U o=; X-IronPort-AV: E=Sophos;i="6.01,261,1684792800"; d="scan'208";a="120355880" Received: from unknown (HELO ribbon) ([193.50.110.195]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Aug 2023 09:33:11 +0200 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87352fz2m9.fsf_-_@gnu.org> <871qhbzvae.fsf_-_@gnu.org> <87wmyypmts.fsf@inria.fr> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: =?UTF-8?Q?D=C3=A9cadi?= 20 Thermidor an 231 de la =?UTF-8?Q?R=C3=A9volution,?= jour de =?UTF-8?Q?l'=C3=89cluse?= 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: Mon, 07 Aug 2023 09:33:10 +0200 In-Reply-To: (Efraim Flashner's message of "Tue, 18 Jul 2023 14:17:39 +0300") Message-ID: <87il9rxq6h.fsf@inria.fr> 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 8FF4E3F852 X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: 4.15 X-Migadu-Spam-Score: 4.15 X-TUID: sWyuGQVE1wYE Hi, Efraim Flashner skribis: >> Not a valid argument! :-) We can discuss the implementation on IRC if >> you want. It might be that we can slightly generalize =E2=80=98tuning-c= ompiler=E2=80=99 >> so that it works for go (perhaps there=E2=80=99s an option like =E2=80= =98-march=E2=80=99 that we >> could use instead of setting =E2=80=98GOAMD=E2=80=99?). > > I found -goarch, but it's for cross-compiling and wouldn't take > x86_64-v3 as an input. > > The attached diff has 2 parts, the first wraps the go binary (and only > the go binary) with GOAMD or the like. The second part is commented out, > but is how I would've fixed the extra 'set-microarchitecture phase. At first sight it seems to me like it=E2=80=99s going in the right directio= n. Perhaps we should create a separate =E2=80=98tuning-go-compiler=E2=80=99 fo= r clarity, and arrange to factorize =E2=80=98search-next=E2=80=99 between the two. Let me know what you think! Thanks, Ludo=E2=80=99.