From patchwork Wed Mar 6 11:03:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 2339 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id E239827BBEA; Wed, 6 Mar 2024 11:05:02 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C637A27BBE9 for ; Wed, 6 Mar 2024 11:04:56 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhp4h-0008Kj-Ag; Wed, 06 Mar 2024 06:04:39 -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 1rhp4a-0008Jj-1U for guix-patches@gnu.org; Wed, 06 Mar 2024 06:04:33 -0500 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 1rhp4Z-0005b0-N0 for guix-patches@gnu.org; Wed, 06 Mar 2024 06:04:31 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rhp54-00057p-60 for guix-patches@gnu.org; Wed, 06 Mar 2024 06:05:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69581] [PATCH 00/11] CPU tuning patches Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Mar 2024 11:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69581 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69581@debbugs.gnu.org Cc: Efraim Flashner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170972307319660 (code B ref -1); Wed, 06 Mar 2024 11:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Mar 2024 11:04:33 +0000 Received: from localhost ([127.0.0.1]:49790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhp4b-000572-6N for submit@debbugs.gnu.org; Wed, 06 Mar 2024 06:04:33 -0500 Received: from lists.gnu.org ([209.51.188.17]:45638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhp4Y-00056t-Aq for submit@debbugs.gnu.org; Wed, 06 Mar 2024 06:04:31 -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 1rhp42-0008BO-Jl for guix-patches@gnu.org; Wed, 06 Mar 2024 06:03:59 -0500 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rhp40-0005XN-Ey for guix-patches@gnu.org; Wed, 06 Mar 2024 06:03:58 -0500 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2d23114b19dso85177991fa.3 for ; Wed, 06 Mar 2024 03:03:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709723034; x=1710327834; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=Lxdc/MbxeW+qGw/spJYCUJr+e/ibcr85AGzfEoi5Auw=; b=mPrmtbnf2E9QHCVur/piVzZIo17BxoGuZJr+E2pakC71d31DZoDCszbpLVKKYSSj8d 8lpxGCJ2r6iOWw1EOtIfBk1DsB1NMmCjZaiJ+IxLJNptclUXegmpgit8FL8qR8XB6CSx 9WGV6/k6QHrUAyNfC2K7TrO6fJuhU+oTUFE7W5HTdKMpnI/1HjJDHjtfAJiciPB1w1Rm 1PwR7sxfb+mauX48+dhcpFgjJpQ+67CRk+rnUIL0e1SCdm9jxS65LvncT8tSVXWh0Ru8 QHjkHMx2RUV8jr1DNahSKyKzvt6Hng7mQT3wxHi7ifb0tqBz+E3v4s+8eU24ZYxoBfsm EHhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709723034; x=1710327834; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Lxdc/MbxeW+qGw/spJYCUJr+e/ibcr85AGzfEoi5Auw=; b=Z8+jp7C4Ul4ZqrCcVJheEg6lBdSpkfRbhdHOMq0CZVkLbMFJ9bG3mpcMycgmX0Gm3l TxQyFBqNyGCovV4T5jrAG6AhpSL3lx80jvmrmCPFLKcf6mtdQaNletDluTohBA4EEd8A shfwHwXn1+t42sEfzNyohPkvbx0hLmxOeA3ou4Gz86PyT/fMB8ipD1Qj1x0u8Qq8/Qw+ VJu0ScjmD0UW6HMkbP+ukKJStA7RRaX5xeFm2A2RDrIfPuR7haTzMQJ1MpFDsiiz138w ToNU6B4tBBO6ZTE72mIieY6S5Zka2n6VSod/g2IErXZ5tWcj7Vxkfv9/eqHeUDyPe7vd 6/MA== X-Gm-Message-State: AOJu0YyGrGkYwhE77awVwu9lmZswn5bCt/gUnVIdXpFoPWk08xL8Vl9w XXEE7DcSHLmTDQfs82E+IBC2COkife1WeVDu/Y9SkgiFNkK7x+QUfK0YLR0i4bM= X-Google-Smtp-Source: AGHT+IEGkcIIXaHNqTCKeTpAKfPpIqIyHdP9aG8bS5k7DhcvucDErTbrsVw7RyFQYQLP1T9y0EDItw== X-Received: by 2002:a05:6512:ac2:b0:513:34b8:6d83 with SMTP id n2-20020a0565120ac200b0051334b86d83mr4646339lfu.57.1709723033737; Wed, 06 Mar 2024 03:03:53 -0800 (PST) Received: from localhost ([141.226.12.177]) by smtp.gmail.com with ESMTPSA id n33-20020a05600c502100b00412f6bf509asm1330870wmr.22.2024.03.06.03.03.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 03:03:53 -0800 (PST) From: Efraim Flashner Date: Wed, 6 Mar 2024 13:03:46 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::230; envelope-from=efraim.flashner@gmail.com; helo=mail-lj1-x230.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, 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: 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches This series corrects the remaining x86_64-v* to x86-64-v*, which is what the compiler expects. It also removes x86-64-v1, which is the baseline, and instead inserts x86-64. Software for i686 running on x86_64 can still benefit from the tuning from x86_64, so I've added those options for gcc. I've added support for tuning rust packages, and I've marked rav1e as tunable since it apparently shows a large boost when tuned to newer hardware. I've also added opus and libvorbis since they benefit greatly, and syncthing since, beyond syncing, there is a lot of other hashing and whatnot that it does that benefits from tuning. I've updated the llvm micro-architecture list for x86_64, and I've added for powerpc64le. I was going to add for aarch64 but it only supports listing specific chips so that didn't fit with what we have elsewhere. Efraim Flashner (11): gnu: opus: Mark as tunable. gnu: libvorbis: Mark as tunable. guix: cpu: Be consistent with x86_64 micro-architecture names. guix: cpu: Rename x86-64-v1 to x86-64. guix: cpu: Enable tuning for i686-linux. gnu: syncthing: Mark as tunable. gnu: rust: Add tuning information. transformations: Add support for rust. gnu: rav1e: Mark as tunable. gnu: clang-properties: Update x86_64 micro-architectures. gnu: clang-properties: Add micro-architecture support for powerpc64le. gnu/packages/gcc.scm | 7 +- gnu/packages/golang.scm | 3 +- gnu/packages/llvm.scm | 127 +++++++++++++++++++------------------ gnu/packages/rust.scm | 4 +- gnu/packages/syncthing.scm | 3 +- gnu/packages/video.scm | 1 + gnu/packages/xiph.scm | 2 + guix/cpu.scm | 24 +++---- guix/transformations.scm | 8 ++- 9 files changed, 101 insertions(+), 78 deletions(-) base-commit: f3ea06baca2b96cd20170616fd5da13ec2daac54