From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 12 15:13:44 2023 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 To: Guix Patches Subject: [PATCH core-updates] gnu: jemalloc: Build with THP support on aarch64. Date: Sun, 12 Feb 2023 21:07:44 +0100 Message-ID: <86fsbavdzl.fsf@burningswell.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain 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. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-jemalloc-Update-to-5.3.0.patch Content-Transfer-Encoding: quoted-printable From=20ae69696267b0651fb2be40e4b31584d1c84647b6 Mon Sep 17 00:00:00 2001 From: r0man Date: Sun, 5 Feb 2023 10:57:15 +0100 Subject: [PATCH 1/2] gnu: jemalloc: Update to 5.3.0. * gnu/packages/jemalloc.scm (jemalloc): Update to 5.3.0. =2D-- gnu/packages/jemalloc.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnu/packages/jemalloc.scm b/gnu/packages/jemalloc.scm index 2e25780257..354f07a838 100644 =2D-- a/gnu/packages/jemalloc.scm +++ b/gnu/packages/jemalloc.scm @@ -75,7 +75,7 @@ (define-public jemalloc-4.5.0 (define-public jemalloc (package (inherit jemalloc-4.5.0) =2D (version "5.2.1") + (version "5.3.0") (source (origin (method url-fetch) (uri (string-append @@ -83,7 +83,7 @@ (define-public jemalloc version "/jemalloc-" version ".tar.bz2")) (sha256 (base32 =2D "1xl7z0vwbn5iycg7amka9jd6hxd8nmfk7nahi4p9w2bnw9f0wcrl"))= )) + "1apyxjd1ixy4g8xkr61p0ny8jiz8vyv1j0k4nxqkxpqrf4g2vf1d")))) (arguments (substitute-keyword-arguments (package-arguments jemalloc-4.5.0) ;; Disable the thread local storage model in jemalloc 5 to prevent =2D-=20 2.38.1 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-gnu-jemalloc-Build-with-transparent-huge-pages-on-aa.patch Content-Transfer-Encoding: quoted-printable From=207818da5d28d15099594df897da0dc62e299dee43 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 p= ages on aarch64. =2D-- 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 =2D-- 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) =2D ((or "i686-linux" "x86_64-linux") + ((or "aarch64-linux" "i686-linux" "x86_64-linux") '()) ("powerpc-linux" (list "--disable-thp" "CPPFLAGS=3D-maltivec")) =2D-=20 2.38.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmPpSG4fHHJvbWFuLnNj aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmdCUB/0XTYNk+XdACfAk 7AKwRaRgdHYW9B8X1DeZLHMOS9qvNUAJElxJDtttEM56OqOJxojbbZyU4TfqXIS6 nO9aVrAu0xeukR6XHR4mP96NvTkVrodJdiNL8NdMsc7/eC8VAzATFm8m3+2FJdrM hgKa3cknt4qcDNqWI6AgGhHOHsnEAiUSZxtuoiMOsd9XzQQNsJ+3ZPwXvHbB5XcU mgvTeVaof+qA64DEgLe/zXBqxV9swG8RAK/MadMewx6GZIfTLiri8E6GTA8+BwO5 RIWslqnRhlHPW+lBv+bQQn53T12JvaLl5E+jXjCaLLjt/TDvyZxjtJqZ99Z/ddPN QkYgXQJj =V8cX -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 02 05:07:17 2023 Received: (at submit) by debbugs.gnu.org; 2 Mar 2023 10:07:17 +0000 Received: from localhost ([127.0.0.1]:55841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXfqH-0000EY-5B for submit@debbugs.gnu.org; Thu, 02 Mar 2023 05:07:17 -0500 Received: from lists.gnu.org ([209.51.188.17]:57624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXfqF-0000ER-ON for submit@debbugs.gnu.org; Thu, 02 Mar 2023 05:07:16 -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 1pXfqF-0004Ct-Fc for guix-patches@gnu.org; Thu, 02 Mar 2023 05:07:15 -0500 Received: from mira.cbaines.net ([212.71.252.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXfqD-0006fu-Q8 for guix-patches@gnu.org; Thu, 02 Mar 2023 05:07:15 -0500 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:54d1:d5d4:280e:f699]) by mira.cbaines.net (Postfix) with ESMTPSA id ACC1516CB0; Thu, 2 Mar 2023 10:07:12 +0000 (GMT) Received: from felis (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 520c868e; Thu, 2 Mar 2023 10:07:12 +0000 (UTC) References: <86fsbavdzl.fsf@burningswell.com> User-agent: mu4e 1.8.13; emacs 28.2 From: Christopher Baines To: Roman Scherer Subject: Re: [bug#61461] [PATCH core-updates] gnu: jemalloc: Build with THP support on aarch64. Date: Thu, 02 Mar 2023 10:05:42 +0000 In-reply-to: <86fsbavdzl.fsf@burningswell.com> Message-ID: <87bklbv54l.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: 61461@debbugs.gnu.org, guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --=-=-= Content-Type: text/plain Roman Scherer writes: > 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? The patches don't look to apply to core-updates, as far as I can see, core-updates already has jemalloc 5.3.0 and doesn't pass the --disable-thp flag for any architecture. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmQAdUpfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XcGxA//anCZLjBGiG+J2aCItj/8/3X2JbzFlaOP vdsXMTOrNUsU2ZsbZjHbahGdPRBwxSa/H6Dn57xjV6/M5cFK30hyVxiw9Bv53rS/ T/m0YKfQuZ2uWCTikl5822uxZg4aEjr19Z+Q4wYv2pm0V8d1xTdP3DLIY/5mBHPn 8DnyUFF6mJ1tumf57fzI7TK4wmpvF6xSegDudyzOU9MzzxyIRk+hTkxgtJ5WgsGN AhQMo14ZtdZ8DmStiC7B1NjwFeh6h7Q71ZR8WIjfKjQiErkkIlHw3STu1tvrsHRJ +1IXmF7TVCnE42o0ur3LWg0ROq9w/SHclqwB8g10q5+pqSQvNcOC9D/Qmpt5BPT2 r9ustap710g0mr7LTErhshH/Gkwys3nOI8121UlHF/lFDG82Iyj3dIz84/uiBPAJ FRsqzxK4bkl+3cyyJtlqFnEW0LrbX8ZLH4TQ19pA3kJKaFO18AcAcKF6rM3bVUoC LbnFxWHL1jOZQBQA7pCOHhgs2IE11g+AhVjt1dC0efjodb50iFKuxozfDsE74yff JV6e48M9lR3M3BoHPiv4fkQ7ekIUehMgEX0B/xV0aXyOFFfORk14np5xfcEGGHjI l8gsgsAuN5x0Bgs2VaLQ7gqH9Yf4ogJMpCTkQNX/lo48PiqCrE+9SEivzhBkMteg svZ79YnXjAY= =qE7p -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 03 08:06:57 2023 Received: (at submit) by debbugs.gnu.org; 3 Mar 2023 13:06:57 +0000 Received: from localhost ([127.0.0.1]:59880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY57h-0007Zs-0Y for submit@debbugs.gnu.org; Fri, 03 Mar 2023 08:06:57 -0500 Received: from lists.gnu.org ([209.51.188.17]:57548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY57e-0007Za-6H for submit@debbugs.gnu.org; Fri, 03 Mar 2023 08:06:55 -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 1pY57a-0007mc-8r for guix-patches@gnu.org; Fri, 03 Mar 2023 08:06:50 -0500 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pY57Y-0006Vi-3r for guix-patches@gnu.org; Fri, 03 Mar 2023 08:06:50 -0500 Received: by mail-wr1-x433.google.com with SMTP id e13so2166561wro.10 for ; Fri, 03 Mar 2023 05:06:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20210112.gappssmtp.com; s=20210112; t=1677848805; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=4m1/PBJ6DY75CftJWepPWrx3p08pUPkEOzwJNl1lWqw=; b=RFOJTqYKKobs8bnnoybFAaeDjGZcimVTMCVMrS1S7P04aRNuAxF1bjUzJyFfgAog9k B6PZ+JqQL005DgYSMXaQBMeOI6Il2IgPr1NIVMeTPr/u8JMAyGFfJwaT7wP5NseGNseK D9elnl9MEf4LBTnJm/cU8h8xXixovFVcfxVO6VknLu3VyRmrMUynEb0oJU+vD7aG9moa R0sXsTeggRoODkJ9Tl3IJSbYMWWM8NvT57xaOuxdaWWVH0h2mJq9lsBUwLc2l6kX22+n vIYYbWLjUCLXfR9SKp66eMubuaWN7xjx0nHAxp05pxKsY4zt3hl4vBmkM14hPdyCa8Su X8Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677848805; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4m1/PBJ6DY75CftJWepPWrx3p08pUPkEOzwJNl1lWqw=; b=T0Hhhj6m5nfHsyt98cQd80hGZ810scymugrc8LqwDc3mHRuOJY5TzWAXuRiUw2xKbV m4+zk2VN/BAJnm12q2bBGfble9rRrsxTJCt0yJUzRgzMLpLcpUG+3/DS9NXNNH0RcT6a iV2CcTYKIoCOQkjgVb12b7wf618Fd9/yIfNGdOIZwoD5uumSq469gpY7NPUsq4JXZerR SSJfVxVPIJoUrYDFmLVzZ85z0K8fufB/d/IL8qH6VuN7XarL91qP5EYunhe7c58S6vMF rqt7O+jy0Wvz8NLgB6ymrx3o4JmDPTRJdr2hzuX4eQm0JdY9gumWBtDuPW00IR+rBzJc YxmA== X-Gm-Message-State: AO0yUKUPBmuGSzSc5rgMtNZ3J3CRdgJxnbG8fcaAMf1QzXRCaKjHCaWo jlPJvY4J5D7+q87hg/GJ1z0j86B+5Tn379I53oQ= X-Google-Smtp-Source: AK7set8Eo+w55OuHJOD39My+aYIqI4AjOd2SA0Yt52qTE7jkubyJHCgyX6CSZv49LkQBvI1Ef0lN6Q== X-Received: by 2002:adf:e70a:0:b0:2c9:e3d:88ca with SMTP id c10-20020adfe70a000000b002c90e3d88camr1209995wrm.67.1677848804804; Fri, 03 Mar 2023 05:06:44 -0800 (PST) Received: from bombaclaat ([2a01:598:b1ad:1fff:8e8b:b210:246d:cd7a]) by smtp.gmail.com with ESMTPSA id h18-20020a5d4312000000b002c7107ce17fsm2223274wrq.3.2023.03.03.05.06.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Mar 2023 05:06:44 -0800 (PST) References: <86fsbavdzl.fsf@burningswell.com> <87bklbv54l.fsf@cbaines.net> User-agent: mu4e 1.8.13; emacs 30.0.50 From: Roman Scherer To: Christopher Baines Subject: Re: [bug#61461] [PATCH core-updates] gnu: jemalloc: Build with THP support on aarch64. Date: Fri, 03 Mar 2023 14:05:03 +0100 In-reply-to: <87bklbv54l.fsf@cbaines.net> Message-ID: <86sfemugqw.fsf@burningswell.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: none client-ip=2a00:1450:4864:20::433; envelope-from=roman.scherer@burningswell.com; helo=mail-wr1-x433.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: 61461@debbugs.gnu.org, guix-patches@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Hi Christopher, ok, I see. Thanks for looking into this. Christopher Baines writes: > [[PGP Signed Part:Undecided]] > > Roman Scherer writes: > >> 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? > > The patches don't look to apply to core-updates, as far as I can see, > core-updates already has jemalloc 5.3.0 and doesn't pass the > --disable-thp flag for any architecture. > > [[End of PGP Signed Part]] --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmQB8LkfHHJvbWFuLnNj aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmW9sCACBq+xRjbaNQJm3 ge3MbVk4kSC3AXPPGD+yFk/IAYjG60YTmA/YBCufFAeHTjx29BDYbPycDL1Om71g HaGWGC+TSK78dweNbr+bnmV+vaugD5LnmCL53oNdgpdP7DGrCxs1o+qujzBa371/ k0aA9RBOt3XQurDSR8xgfbFp/qMIcP+pcxhrRN6sL/kk8og2R+uIXSNNItBMFTB8 Mf/HEBa66gcdejhzH+mDBVvqnROuKB5hGljBlvdE82I5hlsfmuAJM2EF5oRa1vL7 097Fb8fHSkaNRH7zrYRh06Pp8/fCzwbqhKnut36fnSvnSLqflOPgx38NL59beheu AWLR7xJN =qty0 -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 04 08:03:23 2023 Received: (at control) by debbugs.gnu.org; 4 Mar 2023 13:03:23 +0000 Received: from localhost ([127.0.0.1]:35463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYRXn-0005Hn-6S for submit@debbugs.gnu.org; Sat, 04 Mar 2023 08:03:23 -0500 Received: from mail-wm1-f45.google.com ([209.85.128.45]:37673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYRXl-0005HR-CA for control@debbugs.gnu.org; Sat, 04 Mar 2023 08:03:22 -0500 Received: by mail-wm1-f45.google.com with SMTP id j19-20020a05600c1c1300b003e9b564fae9so5503025wms.2 for ; Sat, 04 Mar 2023 05:03:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20210112.gappssmtp.com; s=20210112; t=1677934995; h=subject:from:to:message-id:date:from:to:cc:subject:date:message-id :reply-to; bh=IST0HCLyaQH24L3DjXIlNLZxnPLcmQPHgSPgc4NxN6k=; b=IspHZpKtVWtXGUSs1F7WrE8KYchrOVLZzDPTS6EskYoFRfCEPpnlpxaQcZ5LEenQ8E sraEmxZk3aDES1K2v3KDse+hZz/vGMeYvtCxOx4IPboLcaqChJ20j2RXf6Sm6/vyiZy6 0WJvWQiqtqHx0wTO+r8/0mxYn3vTUy9Yuc69B/CQNzKsagok2pmATT7krdgZIV8tkcnS NlX8Dmr533yuBsyBkMUlz6UOWXut9peDLAzZHskK6/iup5r5Bf0Bhx19xYVMdBBAjTAa CfSMxgIkPQ6N4ZZBrx3vdW9ZhPHHt3VQdBHQd+JKQG04HEI6mOif7hYu7qFet1PWSg15 3cVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677934995; h=subject:from:to:message-id:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IST0HCLyaQH24L3DjXIlNLZxnPLcmQPHgSPgc4NxN6k=; b=pceydKSWJv7GFf7Bi0dDQOh2svRD72YhnIbeWdOx09bM/MJG3Ul6mjtINPdtXXL86W aQWdDsO0+7Jkd9syG0fOjDL5sOSkaxDc3YW/hfsarYyJ044Ahz6ItbCxMSIofjU/Asrm C2AIiDQTT3xS0reSIDEWTgRx323t8CKEf7ZXC9JZ6k/3ZJihvqMm+d7u6Tfu2u9IpIzo MpvrgNTUzbiUaDItHG0ryiJkG5gpjtcD+92wDq7+K//InGtExQ3j54U90/CNK9T2Znoa TT1urbh5Qfid2YXtirBI4XlUyPbFjVXX7dUJMP30OvtZqbhdv2W+uF4DRAILZgCU3OLx w6Hg== X-Gm-Message-State: AO0yUKWrjvKKn8rqLwPIXzJ9BoxeHEmdsjs6C5yuGO2Bl69bv/k5dJqd QoQhoboRLg+3ZSIYkLvo1FICSiQ6cezQKCP367U= X-Google-Smtp-Source: AK7set+ZFEPhwgnpoNF2rwGF9yEbTfqFcD+Q3booUMWDgGhP4gzJ0C2YXz8A6x3Ty84HSC0xgn9GmQ== X-Received: by 2002:a05:600c:4509:b0:3eb:32ff:da8 with SMTP id t9-20020a05600c450900b003eb32ff0da8mr4693274wmo.16.1677934995167; Sat, 04 Mar 2023 05:03:15 -0800 (PST) Received: from bombaclaat ([2a01:598:b1ad:1fff:8e8b:b210:246d:cd7a]) by smtp.gmail.com with ESMTPSA id q10-20020a7bce8a000000b003ea57808179sm8784057wmj.38.2023.03.04.05.03.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Mar 2023 05:03:14 -0800 (PST) Date: Sat, 04 Mar 2023 14:03:13 +0100 Message-Id: <867cvwsm7i.fsf@burningswell.com> To: control@debbugs.gnu.org From: Roman Scherer Subject: control message for bug #61461 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 61461 quit From unknown Sun Jun 22 03:57:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 02 Apr 2023 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator