High memory consumption in bind 9.18.2

Dmitri Pavlov dpavlov at perforce.com
Tue Aug 2 15:48:31 UTC 2022


Hi,

#9.18.5
Configuration summary:
-------------------------------------------------------------------------------
Optional features enabled:
    Memory allocator: jemalloc
    DNSSEC validation active by default (--enable-auto-validation)
-------------------------------------------------------------------------------
Features disabled or unavailable on this platform:
    Small-system tuning (--with-tuning)
.....

[root at server ~]# ldd /usr/local/sbin/named
        linux-vdso.so.1 (0x00007fff81cd7000)
        libisc-9.18.5.so => /usr/local/lib/libisc-9.18.5.so (0x00007f9f5ee60000)
        libdns-9.18.5.so => /usr/local/lib/libdns-9.18.5.so (0x00007f9f5ec63000)
        libns-9.18.5.so => /usr/local/lib/libns-9.18.5.so (0x00007f9f5ec19000)
        libisccc-9.18.5.so => /usr/local/lib/libisccc-9.18.5.so (0x00007f9f5ec0f000)
        libisccfg-9.18.5.so => /usr/local/lib/libisccfg-9.18.5.so (0x00007f9f5ebd8000)
        libbind9-9.18.5.so => /usr/local/lib/libbind9-9.18.5.so (0x00007f9f5ebbf000)
        libssl.so.3 => /lib64/libssl.so.3 (0x00007f9f5eb16000)
        libcrypto.so.3 => /lib64/libcrypto.so.3 (0x00007f9f5e6ea000)
        libcap.so.2 => /lib64/libcap.so.2 (0x00007f9f5e6e0000)
        libuv.so.1 => /lib64/libuv.so.1 (0x00007f9f5e6ad000)
        libnghttp2.so.14 => /lib64/libnghttp2.so.14 (0x00007f9f5e683000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f9f5e479000)
        libjemalloc.so.2 => /usr/local/lib/libjemalloc.so.2 (0x00007f9f5e1ba000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f9f5f3f2000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f9f5e1a0000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f9f5e0c5000)
[root at server ~]#  strings /usr/local/lib/libjemalloc.so.2  | grep JEMALLOC_VERSION
JEMALLOC_VERSION_GID_IDENT 54eaed1d8b56b1aa528be3bdd1877e59c56fa90c
JEMALLOC_VERSION_MAJOR 5
JEMALLOC_VERSION_NREV 0
JEMALLOC_VERSION_BUGFIX 0
JEMALLOC_VERSION_MINOR 3
JEMALLOC_VERSION "5.3.0-0-g54eaed1d8b56b1aa528be3bdd1877e59c56fa90c"
JEMALLOC_VERSION_GID "54eaed1d8b56b1aa528be3bdd1877e59c56fa90c"

Dmitri.
-----Original Message-----
From: Anand Buddhdev <anandb at ripe.net>
Sent: Tuesday, August 2, 2022 6:42 PM
To: Dmitri Pavlov <dpavlov at perforce.com>
Cc: bind-users at lists.isc.org
Subject: Re: High memory consumption in bind 9.18.2

Dmitri,

Just downloading, building and installing the latest version of jemalloc like this doesn't mean that BIND will find and use it. BIND has to be compiled with the correct compiler and linker flags to use this version.

Are you certain BIND is using your installed version?

--
Anand

On 02/08/2022 17:21, Dmitri Pavlov wrote:

> dnf install wget bzip2 gcc make -y
> wget
> https://github.com/jemalloc/jemalloc/releases/download/5.3.0/jemalloc-
> 5.3.0.tar.bz2
> bzip2 -d jemalloc-5.3.0.tar.bz2 && tar -xf jemalloc-5.3.0.tar && cd
> jemalloc-5.3.0 ./configure make make install reboot -f


CAUTION: This email originated from outside of the organization. Do not click on links or open attachments unless you recognize the sender and know the content is safe.

This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.



More information about the bind-users mailing list