From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id A1A411FF0E4 for ; Tue, 28 Jul 2026 18:29:24 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id C156221323; Tue, 28 Jul 2026 18:29:23 +0200 (CEST) From: Robert Obkircher To: pve-devel@lists.proxmox.com Subject: [PATCH v1 proxmox-biome] d/rules: increase jemalloc page size to 64k on ARM Date: Tue, 28 Jul 2026 18:29:05 +0200 Message-ID: <20260728162910.292007-1-r.obkircher@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1785256120716 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.162 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_LOW -0.7 Sender listed at https://www.dnswl.org/, low trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: 5FOIUAQ7ZONBZ5OWVXZ6XP6BK2LGIP3Y X-Message-ID-Hash: 5FOIUAQ7ZONBZ5OWVXZ6XP6BK2LGIP3Y X-MailFrom: r.obkircher@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Increase the page size used by jemalloc so biome doesn't immediately abort on systems where it is larger than on the host that built the debian package. The environment variable was taken from the github action workflow that builds the official ARM releases. Note that the commit, which is linked below, confusingly talks about 16k page size support, but the logarithmic variable actually refers to 64k, which is commonly used as well. I tested this change by building the package with and without the patch on a 4k kernel and running it with the corresponding 16k kernel later. Building directly on the 16k kernel also worked without this patch. Link: https://github.com/biomejs/biome/commit/a54ea366357c902c19e6d62e6790d94a92acd54a Signed-off-by: Robert Obkircher --- debian/rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/rules b/debian/rules index 05ac000d..5985272d 100755 --- a/debian/rules +++ b/debian/rules @@ -1,9 +1,14 @@ #!/usr/bin/make -f +include /usr/share/dpkg/architecture.mk include /usr/share/dpkg/pkg-info.mk #export DH_VERBOSE=1 +ifeq ($(DEB_HOST_ARCH),arm64) + export JEMALLOC_SYS_WITH_LG_PAGE=16 # 2^16 = 64k +endif + %: dh $@ -- 2.47.3