public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH v1 proxmox-biome] d/rules: increase jemalloc page size to 64k on ARM
@ 2026-07-28 16:29 Robert Obkircher
  0 siblings, 0 replies; only message in thread
From: Robert Obkircher @ 2026-07-28 16:29 UTC (permalink / raw)
  To: pve-devel

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





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-28 16:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-28 16:29 [PATCH v1 proxmox-biome] d/rules: increase jemalloc page size to 64k on ARM Robert Obkircher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal