From patchwork Sun Feb 12 20:07:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Scherer X-Patchwork-Id: 46888 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 63E0A16651; Sun, 12 Feb 2023 20:14:27 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 1670B16633 for ; Sun, 12 Feb 2023 20:14:25 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRIjd-0004ej-6q; Sun, 12 Feb 2023 15:14:05 -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 1pRIjb-0004eZ-4F for guix-patches@gnu.org; Sun, 12 Feb 2023 15:14:03 -0500 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 1pRIja-0003W7-P8 for guix-patches@gnu.org; Sun, 12 Feb 2023 15:14:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRIja-0003Ze-CE for guix-patches@gnu.org; Sun, 12 Feb 2023 15:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61461] [PATCH core-updates] gnu: jemalloc: Build with THP support on aarch64. Resent-From: Roman Scherer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Feb 2023 20:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61461 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61461@debbugs.gnu.org X-Debbugs-Original-To: Guix Patches Received: via spool by submit@debbugs.gnu.org id=B.167623282413704 (code B ref -1); Sun, 12 Feb 2023 20:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Feb 2023 20:13:44 +0000 Received: from localhost ([127.0.0.1]:46855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRIjI-0003Yy-Cq for submit@debbugs.gnu.org; Sun, 12 Feb 2023 15:13:44 -0500 Received: from lists.gnu.org ([209.51.188.17]:51884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRIjF-0003Yn-Rz for submit@debbugs.gnu.org; Sun, 12 Feb 2023 15:13:42 -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 1pRIjF-0004co-Jz for guix-patches@gnu.org; Sun, 12 Feb 2023 15:13:41 -0500 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRIjD-0003R3-F4 for guix-patches@gnu.org; Sun, 12 Feb 2023 15:13:41 -0500 Received: by mail-ed1-x52d.google.com with SMTP id w3so3427481edc.2 for ; Sun, 12 Feb 2023 12:13:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20210112.gappssmtp.com; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=UiQTRWquSJGKfu+1OF7vkd+0zRTj/Gaw6ElR6hhgdZY=; b=Yt6yZNtbB3JbMzPmSBGP5yUyEZpls+9IJDd3GZAN373vjs+cZ1Z3a4CGcFoh/KvpS5 Eb0ckp8dEaBFeRzPGXZvbtKVKCyL9wJjx4XYir+9KLa5rl8UOqhR7mGavqhbZ85jQZwV kS4jP3gduKVaKMFaVc/WchwTHtIKrpugmD2xXbIW5BTml4u3K0fSquD2TRhgOdDV0wKK n0maLoAbrJYjnWlclXv/Uhd60T/evaiztTykLqM/hHfmGCFfYVWNQpbVcyzOsfT4gNO/ e3P06GJavnI+jgdY+31Ij8fljXNzy6OSyeiyOMfRX++R2gRLOqB/luS1uXpA3OI1zgSG e11A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UiQTRWquSJGKfu+1OF7vkd+0zRTj/Gaw6ElR6hhgdZY=; b=aonzw2Lo5W7qMawBGtdd7oGM/tUOHDUeEo/wr+j2t2ihwfX5kQPt92J2ofYAJm3E7K ws9+VHLmyKAVFq/BL3C3S8zMYzUQ7wpUxuRVfqjpacCvCVhJbqRv6RIPf+wYaHek9voV njcRvWZueB4PeSezTEf12tcowPLDM+H/1pSzOzzVDb1c2oTWHbvzV+PIwlpVYiJIS+1s y5iNlExz6QXRFzPFuY1UugvCVs2JNExrKx3mIOfgIsy3jbvxe4ON2O/oXDJLXJ9mpQpk 1TwhC8slWuAM0p7i7roWZ9zUfhFjc8eaSOX2Cvof79KOx9LlgWUs4+gY8hy6y4KByBZh r7MQ== X-Gm-Message-State: AO0yUKUHduT2eVcOwU+U9Wft0fB8Ux0jskKGpjgi3l7CrdXtSFKcrG1B /IrXIqGj15Yg+bYxgDEjZfwHYr0G4b2zc5M1ePQ= X-Google-Smtp-Source: AK7set/AiIfQ0XOVMgye+MKNg4dA7HAFSUh84tsisDRB99yyJS1vlgVvnL4ZN5JX8T44+aBHunsHKQ== X-Received: by 2002:a50:ce0e:0:b0:4aa:ffe2:3997 with SMTP id y14-20020a50ce0e000000b004aaffe23997mr18059421edi.40.1676232816010; Sun, 12 Feb 2023 12:13:36 -0800 (PST) Received: from bombaclaat ([2a01:598:b1b0:992:157d:949e:916b:98f2]) by smtp.gmail.com with ESMTPSA id dk19-20020a0564021d9300b0049e09105705sm5555229edb.62.2023.02.12.12.13.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 12:13:35 -0800 (PST) User-agent: mu4e 1.8.13; emacs 29.0.50 From: Roman Scherer Date: Sun, 12 Feb 2023 21:07:44 +0100 Message-ID: <86fsbavdzl.fsf@burningswell.com> MIME-Version: 1.0 Received-SPF: none client-ip=2a00:1450:4864:20::52d; envelope-from=roman.scherer@burningswell.com; helo=mail-ed1-x52d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham 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 Hello Guix, I'm running Guix on an aarch64 system that uses a Linux kernel configured with a page size of 16K. Some of the substitutes I receive from Guix sometimes do not work. I believe all packages that use jemalloc, which are quite a lot. Rust is one example. It fails like this: ``` [roman@bombaclaat guix]$ rustc : Unsupported system page size : Unsupported system page size : Unsupported system page size terminate called without an active exception Aborted ``` Building packages that depend on jemalloc also fail. I can't compile the rust package from Guix for example. This patch series updates jemalloc and enables the use of transparent huge pages on the aarch64 architecture. I saw we support THP as well for i686-linux and x86_64-linux, so I think it's fine to enable it here as well. At least it's better than crashing. The patch should also make it possible to use substitutes built on CI by systems running with larger kernel pages sizes, avoiding long compilation times for things like the whole rust toolchain. Since jemalloc has a lot of dependencies, I think it's a candidate for core-updates. I submitted parts of this patch series in another ticket where I tried to fix Icecat compilation on my aarch64 system. But I think it's worth a separate issue. And I'm blocked on the other issue at the moment. Could you please review the patchs? Thanks, Roman. From 7818da5d28d15099594df897da0dc62e299dee43 Mon Sep 17 00:00:00 2001 From: r0man Date: Sun, 5 Feb 2023 10:59:06 +0100 Subject: [PATCH 2/2] gnu: jemalloc: Build with transparent huge pages on aarch64. * gnu/packages/jemalloc.scm (jemalloc-4.5.0): Build with transparent huge pages on aarch64. --- gnu/packages/jemalloc.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/jemalloc.scm b/gnu/packages/jemalloc.scm index 354f07a838..6c6ba0f568 100644 --- a/gnu/packages/jemalloc.scm +++ b/gnu/packages/jemalloc.scm @@ -56,7 +56,7 @@ (define-public jemalloc-4.5.0 #t))) #:configure-flags '(,@(match (%current-system) - ((or "i686-linux" "x86_64-linux") + ((or "aarch64-linux" "i686-linux" "x86_64-linux") '()) ("powerpc-linux" (list "--disable-thp" "CPPFLAGS=-maltivec")) -- 2.38.1