Received: (at 68261) by debbugs.gnu.org; 5 Jan 2024 13:33:20 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 05 08:33:20 2024 Received: from localhost ([127.0.0.1]:56683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rLkK8-0001JD-9S for submit <at> debbugs.gnu.org; Fri, 05 Jan 2024 08:33:20 -0500 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]:51450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <roman.scherer@HIDDEN>) id 1rLkK5-0001Ix-KI for 68261 <at> debbugs.gnu.org; Fri, 05 Jan 2024 08:33:18 -0500 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a271a28aeb4so173827466b.2 for <68261 <at> debbugs.gnu.org>; Fri, 05 Jan 2024 05:33:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1704461587; x=1705066387; darn=debbugs.gnu.org; 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=ljO9bhrGY6XlsxkdwfL6ypfBA98ALiqAHYrHvmQsozY=; b=qgvqYOiy4rxCFUBigbLj+otOP4NoBNM4MOS3GsPMmjhXeWevsB7ikPIzQqieY7jHH6 jkj4FcrKyirkNewK3by7vsRZQJ/FRnPmNGezuVBeFTHGjqcnAyx6LVjUHAQ+mEA6hBhE VYZM6jiR+f7lbRU+DjzLwO/Nb9gpluIxXsl2xZEepmAmMgCJpv+bRtXI4vnRzSDuG8Mo mT+nhk1Pzsfgwk+e8iHnYhW9yD8eWrim4E+Sq2w/eIEgcajuh2nSWPPt8cycGX+SI62I Wr3al7oRQvxPqPSINppQ4T7HBDsjmjfXYK+8ONv5dHsjNr2kvPkVQG/A7NuH029KuLf5 ew7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704461587; x=1705066387; 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=ljO9bhrGY6XlsxkdwfL6ypfBA98ALiqAHYrHvmQsozY=; b=cI4w5UKu4YWZX2qpa3Y1uQTefAEmIRcdGdtj2P14pifrQx4wg5OeH49+a7Qt1OpDK+ /K3HI0WKSSpGUxTxy+gLOkmevqYJLbQ+PChQE/2CfuoMSQp0xWMVV/o9GVkP0ZVB14kg EvBDWlx+zIm7asid4NC+r9h6QDCfG2DoK3WZF5SFBRcEGgOaVR9eUclgLf8whPZN402B kyh7A7H3O5ZZhnskjVOM8bwl2nLqmSt+giKO/Qe1FbbYuUXkiuAdEWHpyJjcdiUfnvW4 j+kj13vKjQfbuzI6VEi7wRypz2WsLAHN/oM35FmVAlnceJUWgZei7bpZNCDwVTkHxGpp z7vQ== X-Gm-Message-State: AOJu0YwnxCiEHCdgOmRVCP7TgeOveZf/1jMY/B4ZJRuQIVRn5DUjPNkv GBTm6p2w82hrhjqTpDcEokod+tmezXXGC2mlGW7nAY7Ci54= X-Google-Smtp-Source: AGHT+IG2K51JIFrO7xNvPoiZrHuw6BswKyiL7LFZ2wJhPsRzkbgnp57hI6mzl4AsznGQYOQwP9aIdQ== X-Received: by 2002:a17:907:12c7:b0:a19:a19b:78af with SMTP id vp7-20020a17090712c700b00a19a19b78afmr1128401ejb.114.1704461586702; Fri, 05 Jan 2024 05:33:06 -0800 (PST) Received: from bombaclaat ([2a01:599:121:2b36:258f:b3d0:505:1fa]) by smtp.gmail.com with ESMTPSA id mj18-20020a170906af9200b00a28acfac149sm896514ejb.53.2024.01.05.05.33.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 05:33:06 -0800 (PST) References: <cover.1704455408.git.roman@HIDDEN> <c3d2e3f515fcf29588bf18d32ba50257b309b576.1704455408.git.roman@HIDDEN> <ZZf6rLdVTiEjeH47@3900XT> User-agent: mu4e 1.10.8; emacs 29.1 From: Roman Scherer <roman.scherer@HIDDEN> To: Efraim Flashner <efraim@HIDDEN> Subject: Re: [bug#68261] [PATCH 2/2] gnu: rust-jemalloc-sys: Build with large page size. Date: Fri, 05 Jan 2024 14:31:32 +0100 In-reply-to: <ZZf6rLdVTiEjeH47@3900XT> Message-ID: <86h6jrx5v6.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68261 Cc: 68261 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hi Efraim, thanks for the review! I moved the setting of the JEMALLOC_SYS_WITH_LG_PAGE now to the cargo build system, as you suggested, and submitted a v2 of the patch series. Can you have another look, please? Thanks, Roman. Efraim Flashner <efraim@HIDDEN> writes: > [[PGP Signed Part:Undecided]] > Since we don't carry the results of one rust package to the next and > have to rebuild everything, it would be better to add this to > (guix build cargo-build-system), in the configure phase. Then it will > apply to every package which is built using the cargo-build-system. > > On Fri, Jan 05, 2024 at 01:36:42PM +0100, Roman Scherer wrote: >> * gnu/packages/crates-io.scm (rust-jemalloc-sys): Build with large page size. >> >> Change-Id: I91ed8450952204c1ecba19604521dd8b8ec554ec >> --- >> gnu/packages/crates-io.scm | 6 +++++- >> 1 file changed, 5 insertions(+), 1 deletion(-) >> >> diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm >> index 1bfd8fb143..f8eb0c293f 100644 >> --- a/gnu/packages/crates-io.scm >> +++ b/gnu/packages/crates-io.scm >> @@ -39286,7 +39286,11 @@ (define-public rust-jemalloc-sys-0.5 >> ;; https://github.com/tikv/jemallocator/issues/19 >> (setenv "CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS" "1") >> (setenv "JEMALLOC_OVERRIDE" >> - (string-append jemalloc "/lib/libjemalloc_pic.a")))))))) >> + (string-append jemalloc "/lib/libjemalloc_pic.a"))))) >> + (add-after 'configure 'with-lg-page-jemalloc >> + (lambda _ >> + (when (target-aarch64?) >> + (setenv "JEMALLOC_SYS_WITH_LG_PAGE" "14"))))))) >> (native-inputs >> (list jemalloc)) >> (home-page "https://github.com/tikv/jemallocator") >> -- >> 2.41.0 >> >> >> --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFTBAEBCAA9FiEE0iajOdjfRIFd3gygPdpSUn0qwZkFAmWYBREfHHJvbWFuLnNj aGVyZXJAYnVybmluZ3N3ZWxsLmNvbQAKCRA92lJSfSrBmTdiB/9hjLzx5cMb0cfB 7qWpgI7r9dgL5cnkdVAGKiWQOgQc2rNVNTyuaDR2GO7zeWUKuE8fodWlnc0ySpfJ d9LjYSDWDH9Yw4b7oYVaexHhqwb6RGflnyu042hUuRLwh+uG1n+o2k1IcFm5J+FG PolUS8VNs1S/tji/zD/czeivVRyvMKWG3ap6DNo5cPWBMuGXCpDOQe28Ld6JF8Hq pA0Q4o/7pAuhTuOrGNHMTPpEOhfczZbxlfVkQ/Y1SROh+2Og81Lxmokhv7xobWbX Wx18QZtYONgST0+22+gH/LUmM1zo9ww/MEsLn1poU9iJFhsKOrlwEMaohUctqUnM ZVqqdAXA =0pYV -----END PGP SIGNATURE----- --=-=-=--
guix-patches@HIDDEN
:bug#68261
; Package guix-patches
.
Full text available.Received: (at 68261) by debbugs.gnu.org; 5 Jan 2024 13:31:21 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 05 08:31:21 2024 Received: from localhost ([127.0.0.1]:56677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rLkIC-00012u-OX for submit <at> debbugs.gnu.org; Fri, 05 Jan 2024 08:31:21 -0500 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]:41990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <roman@HIDDEN>) id 1rLkI9-0000vS-SW for 68261 <at> debbugs.gnu.org; Fri, 05 Jan 2024 08:31:19 -0500 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5534dcfdd61so1064103a12.0 for <68261 <at> debbugs.gnu.org>; Fri, 05 Jan 2024 05:31:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1704461467; x=1705066267; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=d8S2AxvANo1INx8uk39oFbYVM1rwAGXwdtIbEYIIqZU=; b=K7Y2+Jj57L4OVRsMfbHrwHyMQ9P9KLfyJppP8261aZNHh5Gh7H8dA6Pd+MUR0j10tT HewkraqOFT8RONmdk1v15jkybFPBV8VuFJPzZ4HAD1cu/LpRG9VGE82gOdi/f0U/VsSe UoHqbPUfvmM0aJ1Fyq57epQL2G0mfBimThfwXNWx175dhJgXE2X8ZitiwmEqhOmslTmS MaJ/6DjuodW8zUQqcc59bVlQZ/kmNU1OvjKyoin1URHiSwUhfEmeI2GJXA2cE9TV3Dr5 BsNC7ouNZEg0UoQSDjrHcP8g8LCIB/5xbsvhR+WpcC1o0GpBvU2vqpLrCb/t9GWbgzLz WUlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704461467; x=1705066267; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d8S2AxvANo1INx8uk39oFbYVM1rwAGXwdtIbEYIIqZU=; b=nH7SManMTeTx0UOK+eMsy3yRUZsec1GvHuTOCXtskfjV+wv7UuKPb28gC/wleuK2qE Pj7N56vClhOPGwzzuWrqM5k13uMRcc+1oEaGJzvu99X2UolfAX1AAhUpsnCvRFvQC6Jw rpggYexJ/X6iQmdpx+pkCK/dL+PJ7A/31tLg6Ondgs1jEQR33oolZDN42JdFPRBBMGTd n/RK44uHoaxf+l+keFZeIjzaMxFNlpYRA3qLx9xONxR1uPkaegnD/fNBQY7sswmxm/0i Re7/eht6zRMODcbz/NYmMVxNHefwl2zmZGho/CW6ctk/qARYyc5YP7qmouQGDVEiUSVF Brfg== X-Gm-Message-State: AOJu0Yz8q7cT78MV3sjNdJ4GxC6RFJXFFzeZ7LlYYqUSFdVT6sdfx3JL Xk16+olrwFkryekZxQgHfjtG/dNycqJU9eJycl2CkVJbZe4= X-Google-Smtp-Source: AGHT+IG2FPvfPC12eatutQ6IP+jtYYBnZO6IUVSngcxkW6mGJhXlxNIQkleJeXuXRfnQGI0lR6Bncw== X-Received: by 2002:a50:d602:0:b0:556:c5fc:3552 with SMTP id x2-20020a50d602000000b00556c5fc3552mr2461660edi.0.1704461467039; Fri, 05 Jan 2024 05:31:07 -0800 (PST) Received: from localhost.localdomain ([2a01:599:121:2b36:258f:b3d0:505:1fa]) by smtp.gmail.com with ESMTPSA id u17-20020a056402065100b00555e52fed52sm961855edx.91.2024.01.05.05.31.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 05:31:06 -0800 (PST) From: Roman Scherer <roman@HIDDEN> To: 68261 <at> debbugs.gnu.org Subject: [PATCH v2 2/2] build/cargo-build-system: Support 16k page sizes on aarch64. Date: Fri, 5 Jan 2024 14:30:48 +0100 Message-ID: <d8664f2c5a8119ef69fc0a5f7a42c362a6f3b871.1704461315.git.roman@HIDDEN> X-Mailer: git-send-email 2.41.0 In-Reply-To: <146b3cf98eda967f04143fa62f5a6631c307d575.1704461315.git.roman@HIDDEN> References: <146b3cf98eda967f04143fa62f5a6631c307d575.1704461315.git.roman@HIDDEN> MIME-Version: 1.0 X-Debbugs-Cc: Efraim Flashner <efraim@HIDDEN> Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68261 Cc: Roman Scherer <roman@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) * guix/build/cargo-build-system.scm (configure): Support 16k page sizes on aarch64. Change-Id: I523c192159908483577301da246d75d16b694bc8 --- guix/build/cargo-build-system.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/guix/build/cargo-build-system.scm b/guix/build/cargo-build-system.scm index ffb2ec898e..c5c2299a4c 100644 --- a/guix/build/cargo-build-system.scm +++ b/guix/build/cargo-build-system.scm @@ -119,7 +119,7 @@ (define* (check-for-pregenerated-files #:rest _) (error "Possible pre-generated files found:" pregenerated-files)))) (define* (configure #:key inputs - target + target system (vendor-dir "guix-vendor") #:allow-other-keys) "Vendor Cargo.toml dependencies as guix inputs." @@ -178,6 +178,10 @@ (define* (configure #:key inputs ;; Prevent targeting the build machine. (setenv "CRATE_CC_NO_DEFAULTS" "1")) + ;; Support 16k kernel page sizes on aarch64 with jemalloc. + (when (string-prefix? "aarch64" (or target system)) + (setenv "JEMALLOC_SYS_WITH_LG_PAGE" "14")) + ;; Configure cargo to actually use this new directory with all the crates. (setenv "CARGO_HOME" (string-append (getcwd) "/.cargo")) (mkdir-p ".cargo") -- 2.41.0
efraim@HIDDEN, guix-patches@HIDDEN
:bug#68261
; Package guix-patches
.
Full text available.Received: (at 68261) by debbugs.gnu.org; 5 Jan 2024 13:31:15 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 05 08:31:15 2024 Received: from localhost ([127.0.0.1]:56674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rLkI7-0000y9-Ga for submit <at> debbugs.gnu.org; Fri, 05 Jan 2024 08:31:15 -0500 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:50297) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <roman@HIDDEN>) id 1rLkI2-0000kp-F2 for 68261 <at> debbugs.gnu.org; Fri, 05 Jan 2024 08:31:14 -0500 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-55722620e4aso826117a12.0 for <68261 <at> debbugs.gnu.org>; Fri, 05 Jan 2024 05:31:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1704461459; x=1705066259; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=8ev4tqL+t4klNASS97oNOTg2gh6MmYo7JOKYri5MRe8=; b=R2QMWFUr6J1X1Y0qwMHcP3lNHEZhqwNxE2+YwKv/B2yiVMLwqMCa+M3JbTBY53NhA7 6g6qW0LSoWUWlPAqCd+FKg5ujXBOhhdFKDFla/BuZDUfq0mYKMNbFuHg4415binRxFkF hYN+iDYzHls4Mf5pS3sJvgTapNrcqqYhBxQ4IVWucrdd55SHOAb0b2l5oBdEuNPMQaD3 4dOa7sCvKRxK7ZwgUWzmejRiSf6CGWyMbLaivVN23sI6JaROCNNOrKsRoYS+UAyR/g8+ k8LM8bQbtIRtxumuNg8OaRW7bANWlIbtXsA6LWO8AZ8NOUoLUDe1IC3twIzEFMu+AdqD NRBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704461459; x=1705066259; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8ev4tqL+t4klNASS97oNOTg2gh6MmYo7JOKYri5MRe8=; b=pGJRIU8fJwBOG3D/JdodfVFwT3QcgVMBX2COcqRXDd+pYP5yicme8dGxhvoJ2Bb/zh MKILABqigKrSsxNTKD00OaaIdsH60j0sn0VtTZ/FfPJaOtQVjOHFCqkv4REYGhDQZIxn GbeqZy0CKFCPAaJtBs7e+pwvhGVYKQXl2PaD9885WB06TvuC3VOMQ9B9r9p6KAJ+3Gh4 xNRT7cCjKJulwBl3O7OD4knxUULhUwUZjaPnMedLFiArkWycQB0gKn8rhpbKDJBvSAn7 RJLFWh86gSLkBZaE59cgBUiF2clo5GUGvZvJjDG4V3Q8A0QJJRKhWEA5hiXFvn/i++BM 0RJw== X-Gm-Message-State: AOJu0YxTHkHSsO10mmT8AjAu4aVIKC946jppje92AinD4LBYwJkU2BRs MRTkmz/jc2niKCjl7+UHrZkcnapv3ktS11hBsG4Ot0DUTGA= X-Google-Smtp-Source: AGHT+IE8bLrPJLsNAlArYCxrjk/cxHZtyusofzdrXF5S4tAtcqphCITfIxAuoi2reW2NG0Oa/KfPqQ== X-Received: by 2002:a50:d511:0:b0:556:c475:16 with SMTP id u17-20020a50d511000000b00556c4750016mr1462482edi.12.1704461459560; Fri, 05 Jan 2024 05:30:59 -0800 (PST) Received: from localhost.localdomain ([2a01:599:121:2b36:258f:b3d0:505:1fa]) by smtp.gmail.com with ESMTPSA id u17-20020a056402065100b00555e52fed52sm961855edx.91.2024.01.05.05.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 05:30:59 -0800 (PST) From: Roman Scherer <roman@HIDDEN> To: 68261 <at> debbugs.gnu.org Subject: [PATCH v2 1/2] gnu: jemalloc: Build with large page size. Date: Fri, 5 Jan 2024 14:30:47 +0100 Message-ID: <146b3cf98eda967f04143fa62f5a6631c307d575.1704461315.git.roman@HIDDEN> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68261 Cc: Roman Scherer <roman@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) * gnu/packages/jemalloc.scm (jemalloc): Build with large page size. Change-Id: Ic813e7b0fe4c7ee79a1e703247abea77ad9d53f0 --- gnu/packages/jemalloc.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/jemalloc.scm b/gnu/packages/jemalloc.scm index 5e7facfd5e..b5fdd39921 100644 --- a/gnu/packages/jemalloc.scm +++ b/gnu/packages/jemalloc.scm @@ -62,6 +62,8 @@ (define-public jemalloc ;; https://github.com/jemalloc/jemalloc/issues/937 #~'("--disable-initial-exec-tls" #$@(match (%current-system) + ("aarch64-linux" + (list "--with-lg-page=14")) ("powerpc-linux" (list "CPPFLAGS=-maltivec")) (_ base-commit: ac69b423865f12310cef5662d9c303aa4b90c869 -- 2.41.0
guix-patches@HIDDEN
:bug#68261
; Package guix-patches
.
Full text available.Received: (at 68261) by debbugs.gnu.org; 5 Jan 2024 12:49:01 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 05 07:49:01 2024 Received: from localhost ([127.0.0.1]:56640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rLjdF-0000n2-1O for submit <at> debbugs.gnu.org; Fri, 05 Jan 2024 07:49:01 -0500 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]:53621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <efraim.flashner@HIDDEN>) id 1rLjdB-0000mc-C0 for 68261 <at> debbugs.gnu.org; Fri, 05 Jan 2024 07:48:59 -0500 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40e3ab65709so2092245e9.3 for <68261 <at> debbugs.gnu.org>; Fri, 05 Jan 2024 04:48:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704458927; x=1705063727; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender:from:to :cc:subject:date:message-id:reply-to; bh=2Ee7xIvgL+5a3Q6su+mCedLsjeud1lH9AS02Y6i0lso=; b=PvGsLTiS+ZB/HteRveig1rWng3kVG7tbWc14a0lqLfSC0isKnciYO37PCXWPe93Rqe icUVAaeFaNiLDo14VZIC3RdQ5PlhHHXIuWTxlS4t5AFeGVpjh1KDa3BZ6jcK+QcGImpY TUUlVkus4PWFJ3g6adFQ5DzomOccoxYNDWPtX2x/SlYBk/mXsp3CWEwwIJy2/1WKkIsh YpNzD8hZr2hihKa3nJf43ONvLNDKcemK3+NTfxWxZ9bz5RIQjabwN7Sn9+zn/YTiktNM Od2HQoNNZyotcItXv3YOMFQ1M0AOg5NMuOVwIdKIVZTXHIIAFowCN0XazMyj3Nt2CnqY EFlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704458927; x=1705063727; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2Ee7xIvgL+5a3Q6su+mCedLsjeud1lH9AS02Y6i0lso=; b=ACnVoMau8bRTaNxN6hRWmnCvYoy4D+lLyf9zmbaIiyWxw+l8AmBtNZepcbvV/8+H2v jZAu3xUOa8m/nJaNDXEXSEk6qBNGtFtzWMnzpp9pV/vFAeoDqNjId3AqiFfucQ8meB4U OGPA+7taZAQG1GFQGI/CTdzLGDeKWQAKYnvc319zPdYW1EHAjPbGxgC2s4XmxmI5KJ/P 08jfE6fblvXJDbVz07K/8uW0hhQDMJ54xioy3W9S13jNkr3UH9hXhkHSWM5XTXo8NmAX 3HbSq5ALHFB33zXnjXmuu/kx/N4qTjV0sJy8THGh5zJJn+pW0wXkEkqyXVwMvzNIQjSe vFdQ== X-Gm-Message-State: AOJu0Yyb9S5An3Xb9O8nj1wLK+LqJFU+uvQr0h05LgoVzGQnLXbCrVAD qR6bpsYN8o/wNDIyofjCFXo= X-Google-Smtp-Source: AGHT+IFqw7CY5lwo4265uIhRxMN1HQ6vh74zNXLwjP5keAmhLdotcMlfLkKMM6SCWHe3I7spI4VEWg== X-Received: by 2002:a05:600c:1395:b0:40d:6493:5238 with SMTP id u21-20020a05600c139500b0040d64935238mr1323366wmf.19.1704458926717; Fri, 05 Jan 2024 04:48:46 -0800 (PST) Received: from localhost ([141.226.15.142]) by smtp.gmail.com with ESMTPSA id h12-20020a05600c314c00b0040d5ac00dc6sm1500793wmo.8.2024.01.05.04.48.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 04:48:46 -0800 (PST) Date: Fri, 5 Jan 2024 14:48:44 +0200 From: Efraim Flashner <efraim@HIDDEN> To: Roman Scherer <roman@HIDDEN> Subject: Re: [bug#68261] [PATCH 2/2] gnu: rust-jemalloc-sys: Build with large page size. Message-ID: <ZZf6rLdVTiEjeH47@3900XT> Mail-Followup-To: Efraim Flashner <efraim@HIDDEN>, Roman Scherer <roman@HIDDEN>, 68261 <at> debbugs.gnu.org References: <cover.1704455408.git.roman@HIDDEN> <c3d2e3f515fcf29588bf18d32ba50257b309b576.1704455408.git.roman@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hjt6d5yBOLoNwUEo" Content-Disposition: inline In-Reply-To: <c3d2e3f515fcf29588bf18d32ba50257b309b576.1704455408.git.roman@HIDDEN> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 68261 Cc: 68261 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.5 (/) --hjt6d5yBOLoNwUEo Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Since we don't carry the results of one rust package to the next and have to rebuild everything, it would be better to add this to (guix build cargo-build-system), in the configure phase. Then it will apply to every package which is built using the cargo-build-system. On Fri, Jan 05, 2024 at 01:36:42PM +0100, Roman Scherer wrote: > * gnu/packages/crates-io.scm (rust-jemalloc-sys): Build with large page s= ize. >=20 > Change-Id: I91ed8450952204c1ecba19604521dd8b8ec554ec > --- > gnu/packages/crates-io.scm | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) >=20 > diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm > index 1bfd8fb143..f8eb0c293f 100644 > --- a/gnu/packages/crates-io.scm > +++ b/gnu/packages/crates-io.scm > @@ -39286,7 +39286,11 @@ (define-public rust-jemalloc-sys-0.5 > ;; https://github.com/tikv/jemallocator/issues/19 > (setenv "CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLA= TFORMS" "1") > (setenv "JEMALLOC_OVERRIDE" > - (string-append jemalloc "/lib/libjemalloc_pic.a")= ))))))) > + (string-append jemalloc "/lib/libjemalloc_pic.a")= )))) > + (add-after 'configure 'with-lg-page-jemalloc > + (lambda _ > + (when (target-aarch64?) > + (setenv "JEMALLOC_SYS_WITH_LG_PAGE" "14"))))))) > (native-inputs > (list jemalloc)) > (home-page "https://github.com/tikv/jemallocator") > --=20 > 2.41.0 >=20 >=20 >=20 --=20 Efraim Flashner <efraim@HIDDEN> =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --hjt6d5yBOLoNwUEo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmWX+qkACgkQQarn3Mo9 g1FYFA//WrDrNgX3IzAqhGXAHF6wfeomZxAnhvy9c7/dVEpFOGc8lqa5LBRzlSEy hIlbkckKqPm+vb5PuJ7yuHV8RKYn531peZZ4Vkhi8B5YgRAPI7FvOZwKXjrS214f kVMR41eq+2EBAIu2aukWzROGzhe5i8/itUqV9TkCP25InO/0aBu6fDsRqj4Rirl6 7Fpoj1HaDkpbyXFo+wO8WJL2KR2AgOrgQZvKfl9ibIUkGhGZOmawC+4goQoYjk9U OUVD6D+ic9Uraa48DqN7PHqmXQzVsm9UMBEX7Y9rlWqqrBpfqIoxYOfe1OckGEuN PcP+tpee8B9CQquQpjsB/yvr86zwbjyVpkdOa2G32yrawDy7DgbvStp5LHcP+/T2 tgJ/JspWS8E54TeXgp/HcmGHslXL51W1LH8fxi7jeWiuRDQw6E6+ad5WuXuu+l37 aPnq/gm9XRhypQwSbmyWLRAsfVBH1PEEfVOHzkj/O7Kh6iUhRG65cPGEXnaaZqk3 BhXqe7GTJfYBRge1DXgfJ0gPpb7c4L0F+3/UGIW+dHoG8HAdyHQ3vb9O9J9uxOQc SRXVq5Pf8l43abWi7+bSRqgJHsa/DwymiCANzlM8JYSRGLiicIAk8iKFLuWdBRE8 X/OE5xQxXdNgD0WKTzslohLvFLIWZ2tZRtPWBOQNQYxzeK3V65U= =U0pl -----END PGP SIGNATURE----- --hjt6d5yBOLoNwUEo--
guix-patches@HIDDEN
:bug#68261
; Package guix-patches
.
Full text available.Received: (at 68261) by debbugs.gnu.org; 5 Jan 2024 12:37:04 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 05 07:37:04 2024 Received: from localhost ([127.0.0.1]:56627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rLjRg-0006F1-Ah for submit <at> debbugs.gnu.org; Fri, 05 Jan 2024 07:37:04 -0500 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:58401) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <roman@HIDDEN>) id 1rLjRc-0006EI-91 for 68261 <at> debbugs.gnu.org; Fri, 05 Jan 2024 07:37:02 -0500 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-556275957ccso1684994a12.0 for <68261 <at> debbugs.gnu.org>; Fri, 05 Jan 2024 04:36:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1704458209; x=1705063009; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FxMHNR2UNoAF7XYlqD5RhCf5CI9juO54fnpmtkYYIWg=; b=pno2Tiq7vJYewQWeEYVOQS5gXu8LAnGVZcsYuj7C6+ib5hCnovr6vPGh/Nm5+YZAgz 3J8cmSJb1zvaGFiUq25tk/ww2LRO6NKjmhvj9Ijp4Zvi/hMeBSgyKiwxLJCXCz+CpHJq XFs9uAk2fe+zpS2O3CtCG6KR3geCJXPmf6MXtVMI6iOX/+nYBaMuhcEPT22zdyf5jP1A DdIy4qNyofF7svYnXQy9AnBP9/O/ioQ4zKxXYiMGCPij28Ynop6+kIn5WMDjyy3uoFO2 5sXpBqz1XhBpaLiSXuqqqUV/UUEGZupPl60eP8nFYcbyuRxG6BeOQ0WG315iKObeRh+w jmDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704458209; x=1705063009; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FxMHNR2UNoAF7XYlqD5RhCf5CI9juO54fnpmtkYYIWg=; b=QVSMoPoUZl1y0DdbYzepREZzdXhAw7bOjVq9Iw8Ez2Hn47+1cfZ/xxaOKEG3wfQ10d I3OtE8nCE5HXCvQnmGqm6pbFooUkAjDEgTJZgtkoPWejQ0eiq/YYRc0aRx7qqR8Cbzdn 3vVNFQRboVI7o/dOj84GFbYM7HZuONQwZR7RIQ+zOa0R2km6+rHPsFxmwpU8R2de3E52 ul6IHq2SJTwM+9FeX/bA0zmLxvL6Ampjbc7L/yhF8qhnONvKdVfh3vj/2KOog8tRhjo7 G86O6CX5DprMuCcfxRVPdfsQ4YSas4nvdpSCMxPNj4VUPGltbkQf96akwgaWjW0KpjOL Y2WQ== X-Gm-Message-State: AOJu0YxwgvuJKZbI4xVxMaEmjTtq89x84lBmTniERSJcLC6T0Rt1Rk9x r6a2Kt1S6U64BKKw09y0TfZQCWkVdazf3JTp7DoU5onCr50= X-Google-Smtp-Source: AGHT+IFTzR2mLO3gzqM1nMpUEBLhnglbeGQo4SbaznTwQk3dXq/NadMzRqhg+1CzTwPHxqhp+mOROA== X-Received: by 2002:a50:bb62:0:b0:556:1824:d41 with SMTP id y89-20020a50bb62000000b0055618240d41mr682383ede.109.1704458209203; Fri, 05 Jan 2024 04:36:49 -0800 (PST) Received: from localhost.localdomain ([2a01:599:121:2b36:258f:b3d0:505:1fa]) by smtp.gmail.com with ESMTPSA id cf14-20020a0564020b8e00b0055668ccd9a3sm928587edb.17.2024.01.05.04.36.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 04:36:48 -0800 (PST) From: Roman Scherer <roman@HIDDEN> To: 68261 <at> debbugs.gnu.org Subject: [PATCH 2/2] gnu: rust-jemalloc-sys: Build with large page size. Date: Fri, 5 Jan 2024 13:36:42 +0100 Message-ID: <c3d2e3f515fcf29588bf18d32ba50257b309b576.1704455408.git.roman@HIDDEN> X-Mailer: git-send-email 2.41.0 In-Reply-To: <cover.1704455408.git.roman@HIDDEN> References: <cover.1704455408.git.roman@HIDDEN> MIME-Version: 1.0 X-Debbugs-Cc: Efraim Flashner <efraim@HIDDEN> Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68261 Cc: Roman Scherer <roman@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) * gnu/packages/crates-io.scm (rust-jemalloc-sys): Build with large page size. Change-Id: I91ed8450952204c1ecba19604521dd8b8ec554ec --- gnu/packages/crates-io.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 1bfd8fb143..f8eb0c293f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -39286,7 +39286,11 @@ (define-public rust-jemalloc-sys-0.5 ;; https://github.com/tikv/jemallocator/issues/19 (setenv "CARGO_FEATURE_UNPREFIXED_MALLOC_ON_SUPPORTED_PLATFORMS" "1") (setenv "JEMALLOC_OVERRIDE" - (string-append jemalloc "/lib/libjemalloc_pic.a")))))))) + (string-append jemalloc "/lib/libjemalloc_pic.a"))))) + (add-after 'configure 'with-lg-page-jemalloc + (lambda _ + (when (target-aarch64?) + (setenv "JEMALLOC_SYS_WITH_LG_PAGE" "14"))))))) (native-inputs (list jemalloc)) (home-page "https://github.com/tikv/jemallocator") -- 2.41.0
efraim@HIDDEN, guix-patches@HIDDEN
:bug#68261
; Package guix-patches
.
Full text available.Received: (at 68261) by debbugs.gnu.org; 5 Jan 2024 12:37:02 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 05 07:37:02 2024 Received: from localhost ([127.0.0.1]:56625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rLjRd-0006Em-Ul for submit <at> debbugs.gnu.org; Fri, 05 Jan 2024 07:37:02 -0500 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]:48633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <roman@HIDDEN>) id 1rLjRZ-0006EE-Fi for 68261 <at> debbugs.gnu.org; Fri, 05 Jan 2024 07:37:00 -0500 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2cd20d9d483so18281641fa.1 for <68261 <at> debbugs.gnu.org>; Fri, 05 Jan 2024 04:36:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1704458207; x=1705063007; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gqAohCsPPKu4OYuueULWz0qZmsKCnDcgtHRxqn7S2dE=; b=IWpJCvrrzfBPILj6/Itpl+W1ET22VRHZIPFvlFwmG6QOUmLC4Vstwgi/qHv6mhatIh XNdPLhT96R+k+5SHTV8XWKjVRSxgd9AYUvssLJMUQOD0Sy0KbKHVRnjogqIdo/1Wjm+x GnWDA3iqS7CFu5zSBQeAgihevnYpp9oaIWmXUsNFl2KGfvoNOHUCZ+W72wpBMbNmiOlw 7L24/abtor25MhDB9n8kYnONKjCtBJwX9GGi5WjV2qU3NvIDtNpxiHy02JG5uQYGckaL YrdmeEOZXZTTFjYZM8oXbgpFvvzDZfbETJbU8EyAmZHjSaYJtpTrphd2EGZf6mMe8u3c 8MyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704458207; x=1705063007; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gqAohCsPPKu4OYuueULWz0qZmsKCnDcgtHRxqn7S2dE=; b=Su/NSSTixjzkQfmiDFA1gH0yhR2XPrTGLtULVFOWL/iXNWrdEPJZE5mwleDYDhx0+8 Yw1Z4HH3vWbDUpq1ftkBWKaz6PfubLnviVMMS9nQiaew3LdN3/1fYUuXbeQDYvPgr4tl Pc4SfauWDKnjv/B38yv+U3We4De2r3rd60Obx0A2fi1Z6CEIs6WZPq/GwvROwPp2ncYu 4YOoTYpwZ6Ml+zkFgoSViQ/Vokwq1OyNs1zFaE+r34EdV9X2AoNvsq/Zxve3IX9ROW1s 9CNy34SNe+1zFqNJCVGtqZnBzs/LCYxy8jZWA3HPj/9lKKqN2VDS/VnZWL6UWh3O7P1r 6UeQ== X-Gm-Message-State: AOJu0YyubBDj4e3IBq0uCzLA8sEDBg19NXQ3ibq0Zh9eVl8J5W+m7W4y HN1GZg7TK117Txcqcm+aSBre/kDWbRWzKXiUHMGLgRkq3dQ= X-Google-Smtp-Source: AGHT+IF8HlNkD5GvJrHiOgbXWRZr9GfTR3wHmMPneiwT17RF0Fh+b/atQr4RttiDWzmN3CW8hXW6zQ== X-Received: by 2002:a2e:97d1:0:b0:2cc:60f5:c9b1 with SMTP id m17-20020a2e97d1000000b002cc60f5c9b1mr1061719ljj.39.1704458206940; Fri, 05 Jan 2024 04:36:46 -0800 (PST) Received: from localhost.localdomain ([2a01:599:121:2b36:258f:b3d0:505:1fa]) by smtp.gmail.com with ESMTPSA id cf14-20020a0564020b8e00b0055668ccd9a3sm928587edb.17.2024.01.05.04.36.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 04:36:46 -0800 (PST) From: Roman Scherer <roman@HIDDEN> To: 68261 <at> debbugs.gnu.org Subject: [PATCH 1/2] gnu: jemalloc: Build with large page size. Date: Fri, 5 Jan 2024 13:36:41 +0100 Message-ID: <146b3cf98eda967f04143fa62f5a6631c307d575.1704455408.git.roman@HIDDEN> X-Mailer: git-send-email 2.41.0 In-Reply-To: <cover.1704455408.git.roman@HIDDEN> References: <cover.1704455408.git.roman@HIDDEN> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68261 Cc: Roman Scherer <roman@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) * gnu/packages/jemalloc.scm (jemalloc): Build with large page size. Change-Id: Ic813e7b0fe4c7ee79a1e703247abea77ad9d53f0 --- gnu/packages/jemalloc.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnu/packages/jemalloc.scm b/gnu/packages/jemalloc.scm index 5e7facfd5e..b5fdd39921 100644 --- a/gnu/packages/jemalloc.scm +++ b/gnu/packages/jemalloc.scm @@ -62,6 +62,8 @@ (define-public jemalloc ;; https://github.com/jemalloc/jemalloc/issues/937 #~'("--disable-initial-exec-tls" #$@(match (%current-system) + ("aarch64-linux" + (list "--with-lg-page=14")) ("powerpc-linux" (list "CPPFLAGS=-maltivec")) (_ -- 2.41.0
guix-patches@HIDDEN
:bug#68261
; Package guix-patches
.
Full text available.Received: (at submit) by debbugs.gnu.org; 5 Jan 2024 12:34:04 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 05 07:34:04 2024 Received: from localhost ([127.0.0.1]:56618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rLjOm-00069n-7D for submit <at> debbugs.gnu.org; Fri, 05 Jan 2024 07:34:04 -0500 Received: from lists.gnu.org ([2001:470:142::17]:41886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <roman@HIDDEN>) id 1rLjOi-00069H-JB for submit <at> debbugs.gnu.org; Fri, 05 Jan 2024 07:34:03 -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 <roman@HIDDEN>) id 1rLjOY-0004yb-LN for guix-patches@HIDDEN; Fri, 05 Jan 2024 07:33:50 -0500 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <roman@HIDDEN>) id 1rLjOP-0007ix-ET for guix-patches@HIDDEN; Fri, 05 Jan 2024 07:33:50 -0500 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-50e9e5c97e1so1785226e87.0 for <guix-patches@HIDDEN>; Fri, 05 Jan 2024 04:33:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1704458018; x=1705062818; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KKeIQMl8sqfc15iei/6xXiOAlZRzE9a8mk0DqywLXj8=; b=eN1NkqZYAwmX1IMvMfIdgl8hb/tPJVk8zP9/0irCYbNUkHmHcvI/q8S0dF6Gj03iWr XKDvFvrCPDkll14Lo6PuZZ+cMcefqf/j5d6gkHpKCtGQzw6lAE2L4pDPuSGYeUW5vkox 3J0Y2PBKP8X5TdH1SuG2S4s2/UttfUaoKH2G4tOyM/AZuXwMcQyPl7EcPeDonsz2pP2v nI0eOXltTcZu18mFfZcwQZA1dC8EBPU3A9P+b22egeJTSAIKcOJSH9bhgodt+0oXDPmS JLW6K+x8aBt2GaJBNYNNsw6lTEe5R2w/rFZ00FDkuQyY2IqmKpBCPcNt+IDhAL5KR/Zy My/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704458018; x=1705062818; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KKeIQMl8sqfc15iei/6xXiOAlZRzE9a8mk0DqywLXj8=; b=pXCzBve/AswUYVa+GUxOHlj2kJehYmrtZpY7zFbeN+pZuHQH31GqjYibvYdOwdpxDX XZ3FEcyn8vRNLdOZoHV5qpokCtte5dhHnpzUh07Y3gNqNCCoefhuJGKD8xe7AhI/hJNB VEd37Lh1WgKZ2j8DZXJhJafRTquqTibRfScby4VDXtrIpf1+rJmDrBWtErKBkxhE5pnr 9UsqMynf7+Xi/xTwJK04NUzFj8GYuMbBqA/t1WVl9GPzlCs1Y1W/+oCCdUTBu/oAPika nSPoVQDJRi4wD9ePHXMSwiP/MhCRwR0o5Wnw/8hi5fT/2AV7lqPNoNV53WJJxFTXqKTs RmFw== X-Gm-Message-State: AOJu0Ywd8g+h/l1xjzeMGizkrZvhQ8sZnkxgPieyejuIZMMdT4bEnFY0 QP7VAyLYc1FXpcoD9f9WA9hJEE/JUfFOy+nK1yBsiG8aLHs= X-Google-Smtp-Source: AGHT+IGRct9AgaHCQRnKNSgAlfF8H8tSeQiZ8vo935sRhPAZ5RRPif+BqTc7flL4jqbrVJpZuYtsOA== X-Received: by 2002:a05:6512:786:b0:50e:70b1:9544 with SMTP id x6-20020a056512078600b0050e70b19544mr901098lfr.111.1704458018104; Fri, 05 Jan 2024 04:33:38 -0800 (PST) Received: from localhost.localdomain ([2a01:599:121:2b36:258f:b3d0:505:1fa]) by smtp.gmail.com with ESMTPSA id x18-20020a170906441200b00a269fdda581sm835804ejo.74.2024.01.05.04.33.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jan 2024 04:33:37 -0800 (PST) From: Roman Scherer <roman@HIDDEN> To: guix-patches@HIDDEN Subject: [PATCH 0/2] Support 16K pages sizes with jemalloc on aarch64 Date: Fri, 5 Jan 2024 13:33:32 +0100 Message-ID: <cover.1704455408.git.roman@HIDDEN> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Debbugs-Cc: Efraim Flashner <efraim@HIDDEN> Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=2a00:1450:4864:20::132; envelope-from=roman@HIDDEN; helo=mail-lf1-x132.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, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit Cc: Roman Scherer <roman@HIDDEN>, efraim@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Hello Guix, I'm running Guix system on an Apple M1 using the Asahi Linux kernel. It works, but there is a major issue due to the fact that the Asahi Linux kernel uses a 16k page size. There are some programs that are incompatible with this and are being fixed. You can find more information under the "Known broken applications" section in [1]. One of those programs that has issues is jemalloc, used by some of the most heavy Guix packages, like rust and icecat. Running any program that uses jemalloc crashes with the following error: ``` roman@localhost guix]$ rustc <jemalloc>: Unsupported system page size <jemalloc>: Unsupported system page size <jemalloc>: Unsupported system page size terminate called without an active exception Aborted ``` This is because jemalloc is compiled to handle 4K page sizes by default. If jemalloc is configured to handle larger page sizes it is working. From what I understand you can use jemalloc configured with page size X on all systems with a page size <= X, with a small cost in performance. There is an issue here [2] that has a more detailed discussion. Note that this only happens when I use substitutes. If I compile jemalloc myself on a system with 16k page size it works. Compiling the whole rust toolchain and icecat on a Guix updates however is not really practical. I already tried to fix this issue a while ago here [3], but unfortunatly this did not solve it. The Guix substitutes are still not compatible on a system with 16k page size. It looks like some distros compile jemalloc with a larger page size. I belive the Asahi Fedora remix is doing this and Arch Linux ARM [4]. This patch series configures jemalloc to support 16k page sizes on the aarch64 architecture. It uses the --with-lg-page switch which specifies the page size as log2(16384)=14 for 16k pages. To make packages using jemalloc via rust-jemalloc-sys compatible, the same is done by specifying the JEMALLOC_SYS_WITH_LG_PAGE environment variable. Could you please review the patch series and/or help me to get substitutes available that are compatible with larger page sizes? Thanks, Roman. [1] https://asahilinux.org/2022/03/asahi-linux-alpha-release/ [2] https://github.com/jemalloc/jemalloc/issues/467 [3] https://issues.guix.gnu.org/61461 [4] https://archlinuxarm.org/packages/aarch64/jemalloc Roman Scherer (2): gnu: jemalloc: Build with large page size. gnu: rust-jemalloc-sys: Build with large page size. gnu/packages/crates-io.scm | 6 +++++- gnu/packages/jemalloc.scm | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) base-commit: ac69b423865f12310cef5662d9c303aa4b90c869 -- 2.41.0
Roman Scherer <roman@HIDDEN>
:efraim@HIDDEN, guix-patches@HIDDEN
.
Full text available.efraim@HIDDEN, guix-patches@HIDDEN
:bug#68261
; Package guix-patches
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.