all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Robert Obkircher <r.obkircher@proxmox.com>
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	[thread overview]
Message-ID: <20260728162910.292007-1-r.obkircher@proxmox.com> (raw)

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 <r.obkircher@proxmox.com>
---
 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





                 reply	other threads:[~2026-07-28 16:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260728162910.292007-1-r.obkircher@proxmox.com \
    --to=r.obkircher@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal