From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 mOi9L/pLIGRxOAEASxT56A (envelope-from ) for ; Sun, 26 Mar 2023 15:43:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sGKvLvpLIGQHVQEAG6o9tA (envelope-from ) for ; Sun, 26 Mar 2023 15:43: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 6A7D21868D for ; Sun, 26 Mar 2023 15:43:22 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pgQeG-00024I-B1; Sun, 26 Mar 2023 09:43:04 -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 1pgQeE-000249-UA for bug-guix@gnu.org; Sun, 26 Mar 2023 09:43:02 -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 1pgQeE-0003nQ-Ln for bug-guix@gnu.org; Sun, 26 Mar 2023 09:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pgQeE-00014T-0T for bug-guix@gnu.org; Sun, 26 Mar 2023 09:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#62395: [PATCH] Tunable guile@3.0.9t package Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 26 Mar 2023 13:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62395 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: "Dr. Arne Babenhauserheide" Cc: 62395@debbugs.gnu.org Received: via spool by 62395-submit@debbugs.gnu.org id=B62395.16798381374054 (code B ref 62395); Sun, 26 Mar 2023 13:43:01 +0000 Received: (at 62395) by debbugs.gnu.org; 26 Mar 2023 13:42:17 +0000 Received: from localhost ([127.0.0.1]:44277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgQdU-00013J-FJ for submit@debbugs.gnu.org; Sun, 26 Mar 2023 09:42:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pgQdS-000132-0I for 62395@debbugs.gnu.org; Sun, 26 Mar 2023 09:42:14 -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 1pgQdM-0002zV-2U; Sun, 26 Mar 2023 09:42:08 -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=/B6Zxff+fU8qDutZZL7J4vLfYG7TMuM6O8g+EBUAW6o=; b=mb6mVCTWJeGO46nPg66a Uyy8W4QaQO4d3v2lhENn3AOWFMEnkh5j4foG0oI8ZYZWGoqVTdfR+9HRAAQgbvTz1PVeQrjaMOByg O0v3l/GM5ejM9Wb2tkyo8OM3gTCtniPpXZBnUHjIoYwAY+Znrgmh8N2uYPKJ/dI21NJ2mDpcnSKVa /77MR4TyswRR/fjrZMnz13slm6o0aVp+iT/vcjEqZGlXeV2GJyFfAragQGiU54Gf+IwJuMd6WeLo8 NLqG9icKGy0ockqP1AKkWHvlWCqgnWtjatVjV+iAckfKduOjvNr4ZlVRjWWmrmv79pltCowqQZihd +yS2APmeoJAsRw==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pgQdJ-00033x-UF; Sun, 26 Mar 2023 09:42:07 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87zg8479mo.fsf@web.de> Date: Sun, 26 Mar 2023 15:42:04 +0200 In-Reply-To: <87zg8479mo.fsf@web.de> (Arne Babenhauserheide's message of "Wed, 22 Mar 2023 22:19:22 +0100") Message-ID: <878rfjd3yr.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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-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=1679838202; a=rsa-sha256; cv=none; b=idXCdox9fgwuvaX2us0Te5cP0gYlzWD6qBVQ9R5BlGLoKRt6w/ji3X17xK61be3Dvan4pR /vMAmpHjSiW84CaivtlWTgOTSw4yk4nR29fTRac/KWpZsrTUpkBdcyhd5Pb5VT4y5GcE1g OQV4c2PwEwTxGT+qfzJFpaQeFWWTYlYG++aVyyCWGJtfrF7z+xN0nCbWsrxPLLr6RHZNKe zf2mC+P4VzHSzxwWEM7pshLfLCqrI6LU9d3wlzIzSKeCyR+gWlGipNy6dXFZqpqn/wfS1a 1zYjdlAO5yB7alzbPehvCi1TpaS566uosKR9Y9dXGvWbphhnhBXbwBdt/oxvHw== 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=mb6mVCTW; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679838202; 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=/B6Zxff+fU8qDutZZL7J4vLfYG7TMuM6O8g+EBUAW6o=; b=Xx2rbUFy9HnOENGbAnzakIQMpoTC4/8/nRbc5y7KHCbv50dBpaAVFneqDdw0xET90y3Jnt /Wm3D+qud+JMAiSm5JuRKBWBJSDJ5H/2A04EhGv1Y6KWQgjNCGjkGvcf7E8e1QCCwEP3ry /W6hAHW8kCAs3odXxkaDHoWkZzzScgYlJwWMqK/aHM3ss2BHj+YRPwk7w9SfLO4UUrCF2x uE2dvchR5EoAbkF1zYhpqH0BshT20fiqHazp8CezcCOmYJOM6VAoJ3rmDznJDeET3ilPiB yMkPFeKnweeWSh1gVFEm97IiNVu18ixI2aTQexSk/f6Jkac9M1lT0IDxcIBEWA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=mb6mVCTW; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.63 X-Spam-Score: -2.63 X-Migadu-Queue-Id: 6A7D21868D X-TUID: ygJBEQI1l2AZ Hi, "Dr. Arne Babenhauserheide" skribis: > The attached patch adds a guile@3.0.9t package that enables CPU > architecture tuning for Guile and for a specialized libgc. > > It creates new packages to avoid causing rebuilds. Marking a package as tunable does not involve any rebuilds, by design: https://hpc.guix.info/blog/2022/01/tuning-packages-for-a-cpu-micro-archit= ecture/ Thus there=E2=80=99s no need to create package variants. > The results of a benchmark are still not fully conclusive: regular Guile > seems to be slightly slower in the Geometric mean of all tests, but > there are benchmarks where a tuned Guile is slower. > > Note that this is tuning for znver3 while I actually have znver4, but > support for the correct compile-target will only arrive with GCC 13. [...] > Guile tuned has a slowdown of 1.03512801239189 > Guile regular has a slowdown of 1.0504373210343294 > > This suggests that the regular Guile is 1.48% slower than tuned Guile. > > Since I have no errorbars, I cannot say whether this is significant. As far as I know, there=E2=80=99s no reason why Guile=E2=80=99s C code woul= d benefit from ISA extensions (we=E2=80=99re mostly talking about vector instructions= like those of AVX). The only part in libguile that=E2=80=99s performance-critic= al is the VM engine=E2=80=94but I don=E2=80=99t see how that code could benefit f= rom vector instructions. Likewise, I doubt libgc build with =E2=80=98-march=3Dznver3= =E2=80=99 has any chance of being any faster; most likely, the generated code is close to the baseline. For these reasons, I=E2=80=99m reluctant to this patch. Tuning should be d= one only on packages where it makes sense, typically linear algebra code, image/video processing, and so on. WDYT? Ludo=E2=80=99.