From 85f3482551894207760fe6b5cc73e88536620dfd Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 14 Jun 2025 13:12:12 -0400 Subject: [PATCH] Add libjemalloc2 to Debian packages Addresses jellyfin/jellyfin#11588 for Debuntu packages, mirroring #70 for these OS-level packages. --- debian/conf/jellyfin | 3 +++ debian/control | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/conf/jellyfin b/debian/conf/jellyfin index a330a36..b8ade65 100644 --- a/debian/conf/jellyfin +++ b/debian/conf/jellyfin @@ -30,6 +30,9 @@ JELLYFIN_WEB_OPT="--webdir=/usr/share/jellyfin/web" # ffmpeg binary paths, overriding the system values JELLYFIN_FFMPEG_OPT="--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg" +# Use jemalloc2 for improved RAM usage (#11588) +LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2 + # Disable glibc dynamic heap adjustment MALLOC_TRIM_THRESHOLD_=131072 diff --git a/debian/control b/debian/control index e0a9795..71497d3 100644 --- a/debian/control +++ b/debian/control @@ -16,7 +16,7 @@ Description: Jellyfin is the Free Software Media System. Package: jellyfin-server Architecture: any -Depends: libfontconfig1, adduser +Depends: libfontconfig1, libjemalloc2, adduser Recommends: jellyfin-web, sudo, jellyfin-ffmpeg7 | ffmpeg Description: Jellyfin is the Free Software Media System. This package provides the Jellyfin server backend and API.