[kwlug-disc] Question on Debian packaging and dependencies ...

Khalid Baheyeldin kb at 2bits.com
Sat Dec 6 12:49:33 EST 2025


An update on the original issue, which is Varnish eating up RAM, and the
Ubuntu 24.04 LTS version not having jemalloc to avoid that.

I ended up purging Varnish, and installing the LTS version (6.0) from an
external repo.
This version is linked to jemalloc.

This guide
<https://www.varnish-software.com/developers/tutorials/installing-varnish-ubuntu/>
outlines the process, but works for Ubuntu 22.04 LTS and older only.
For 24.04 LTS, the format for apt sources have changed, so I ended up with
this:

cat > /etc/apt/sources.list.d/varnish60lts.sources <<EOT
Types: deb
URIs: https://packagecloud.io/varnishcache/varnish60lts/ubuntu
Suites: noble
Components: main
Signed-By: /etc/apt/keyrings/varnishcache_varnish60lts-archive-keyring.gpg
EOT

It is working as it should for now, but leaks take a while to show up.

On Mon, Dec 1, 2025 at 1:01 PM Khalid Baheyeldin <kb at 2bits.com> wrote:

> For a client, I use Varnish on the server.
> We switched servers, and distro version (to 24.04 LTS), recenlty.
>
> Varnish is supposed to use libjemalloc for allocating memory for its
> cache, and other stuff.
>
> If you lookup at the Ubuntu repo for 24.04 (noble), you will see that
> libjemalloc is one of the dependencies, per here:
>
> https://packages.ubuntu.com/noble/varnish
>
> But if you use apt show, you don't see libjemalloc at all:
>
> apt show varnish
>
> Package: varnish
> Version: 7.1.1-1.1ubuntu1
> Section: universe/web
> ...
> Pre-Depends: init-system-helpers (>= 1.54~)
> Depends:
>   libc6 (>= 2.34),
>   libedit2 (>= 2.11-20080614-0),
>   libncursesw6 (>= 6),
>   libpcre2-8-0 (>= 10.32),
>   libtinfo6 (>= 6),
>   libvarnishapi3 (>= 7.1.0),
>   adduser,
>   gcc,
>   libc6-dev | libc6.1-dev | libc-dev, lsb-base
>
> And ldd does not show linkage to libjemalloc:
>
> sudo ldd `which varnishd`
>   linux-vdso.so.1 (0x00007fff581d2000)
>   libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0
> (0x000077c219ce4000)
>   libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000077c219bfb000)
>   libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000077c219800000)
>   /lib64/ld-linux-x86-64.so.2 (0x000077c219ef8000)
>
> So what is going on? I am missing something here.
>
> Can anyone enlighten us on what is going on?
>
> --
> Khalid M. Baheyeldin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20251206/1ad91936/attachment.htm>


More information about the kwlug-disc mailing list