From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id cGcuOgnxAWRpgQAAbAwnHQ (envelope-from ) for ; Fri, 03 Mar 2023 14:07:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +J/JOQnxAWR1vwAA9RJhRA (envelope-from ) for ; Fri, 03 Mar 2023 14:07:21 +0100 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 69E953DCE9 for ; Fri, 3 Mar 2023 14:07:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pY57p-0008Dw-5F; Fri, 03 Mar 2023 08:07: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 1pY57m-00083L-TO for guix-patches@gnu.org; Fri, 03 Mar 2023 08:07:02 -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 1pY57m-0006Ys-Gy for guix-patches@gnu.org; Fri, 03 Mar 2023 08:07:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pY57l-0007aA-Q2 for guix-patches@gnu.org; Fri, 03 Mar 2023 08:07:01 -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: Fri, 03 Mar 2023 13:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61461 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Christopher Baines Cc: 61461@debbugs.gnu.org X-Debbugs-Original-Cc: 61461@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167784881729137 (code B ref -1); Fri, 03 Mar 2023 13:07:01 +0000 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 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-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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677848841; a=rsa-sha256; cv=none; b=SqTuZygHtzJ6uArtQwqCdOUpo0aeQUfURnlT1aaoCNE5wcJgiU09cYVhPSmT1N6PPIt1U/ w4KzjQ4yuybyKB8/z5oMdC+mmuhMM7MCoanPgK0f8U1OHe2PGgGFtHBICxPIADFyf+tzUi 3CER9PwZbHTDyZCzyhVU2q14FLtj/rftNlPYyGZt2KFPOSkygEcEemT2HBgm0Ue559BS0m WLpmitMX1giNFgCd3SSTLYj86F3ebZ7s4VRzbFDYn2B0q5S6820L+YBSc/HjGV31BePHoR nU5UP3i/bLWRRVc4IGe3OxivmTMFyTez8411shokiiMwxZGkDzZ6fHFb84C5hQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=burningswell-com.20210112.gappssmtp.com header.s=20210112 header.b=RFOJTqYK; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677848841; 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: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=4m1/PBJ6DY75CftJWepPWrx3p08pUPkEOzwJNl1lWqw=; b=uyV3bRoeHiIFxC7D655Yhfg7nGTzIhGx2nGzJQ5Y3Ba7u/kqj/kbcA7/Foq1kSCb92iBi0 cXbY0EROPNtbGQY7jjnjbJn+5f69PZkWhZIREgflwAqwVRl9oZIwqdBOJPuzBszBQwjgDF aIM+QgJThLgCb6fQwj7H0x4oHpjYhfA0Qw4C7CCz35bEAa3uldisxKkaMuJs1avJ7xiYAo Xh4LNtewd6GSLnlP2CioA2l/+gMXsFZuFDfLgScFYQOQz3rzfbRAxAQS3Nq+tldwULOAJs /SkIqQxUAQemBPfG5aog5BFGDykuLkwKQgQCM9zcUfpN2R7wqEN2gTcjgJNNeg== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.00 X-Spam-Score: -3.00 X-Migadu-Queue-Id: 69E953DCE9 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=burningswell-com.20210112.gappssmtp.com header.s=20210112 header.b=RFOJTqYK; 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=none X-TUID: lN1DD9CwOq3d --=-=-= 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----- --=-=-=--