<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Well, you’ve provided basically nothing as leads, so it is hard to tell what’s going on with just output of named -V.<div><br></div><div>I would suggest to recompile names with jemalloc enabled and then use jemalloc profiling to see where the memory goes.</div><div><br></div><div>See <a href="https://www.isc.org/blogs/2023-BIND-memory-management-explained/">https://www.isc.org/blogs/2023-BIND-memory-management-explained/</a> for more details (search for jeprof for tldr).</div><div><br></div><div>Ondrej<br id="lineBreakAtBeginningOfSignature"><div dir="ltr"><div>--</div>Ondřej Surý — ISC (He/Him)<div><br></div><div>My working hours and your working hours may be different. Please do not feel obligated to reply outside your normal working hours.</div></div><div dir="ltr"><br><blockquote type="cite">On 18. 5. 2025, at 23:21, Philip Prindeville via bind-users <bind-users@lists.isc.org> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><span>Hi,</span><br><span></span><br><span>I’ve been running 9.20.7 on OpenWRT for over a year without issues. Yesterday, however, it died because of OOM (out-of-memory) kill from the kernel.</span><br><span></span><br><span>I use it with isc-dhcp service for IPv4, and do split horizon for internal domains.</span><br><span></span><br><span>What I’ve noticed is that at startup I’m using about 33K pages as the VSZ (per top on x86_64 hardware).</span><br><span></span><br><span>Within a minute, however, that’s doubled to 72600+ pages. More than double.</span><br><span></span><br><span>This is a small network with 1 domain (plus two rDNS domains), and not more than 400 RR’s total.</span><br><span></span><br><span>If I do an “rndc flush” is drops about 3000 pages, but slowly starts creeping up again.</span><br><span></span><br><span>I updated to 9.20.8 a few minutes ago but I’m still seeing the same issue.</span><br><span></span><br><span>root@OpenWrt:~# named -V</span><br><span>BIND 9.20.8 (Stable Release) <id:></span><br><span>running on Linux x86_64 6.6.41 #0 SMP Sat Jul 27 03:38:57 2024</span><br><span>built by make with '--target=x86_64-openwrt-linux' '--host=x86_64-openwrt-linux' '--build=x86_64-pc-linux-gnu' '--disable-dependency-tracking' '--program-prefix=' '--program-suffix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib' '--sysconfdir=/etc' '--datadir=/usr/share' '--localstatedir=/var' '--mandir=/usr/man' '--infodir=/usr/info' '--disable-geoip' '--with-openssl=/home/philipp/lede/staging_dir/target-x86_64_musl/usr' '--without-lmdb' '--without-readline' '--sysconfdir=/etc/bind' '--with-json-c=no' '--with-libxml2=no' '--enable-doh' '--without-gssapi' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-openwrt-linux' 'target_alias=x86_64-openwrt-linux' 'CC=x86_64-openwrt-linux-musl-gcc' 'CFLAGS=-Os -pipe -g3 -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/philipp/lede/build_dir/target-x86_64_musl/bind-9.20.8=bind-9.20.8 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro ' 'LDFLAGS=-L/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.2.0_musl/usr/lib -L/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.2.0_musl/lib -fuse-ld=bfd -znow -zrelro -Wl,--gc-sections,--as-needed ' 'CPPFLAGS=-I/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.2.0_musl/usr/include -I/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.2.0_musl/include -I/home/philipp/lede/staging_dir/toolchain-x86_64_gcc-14.2.0_musl/include/fortify ' 'PKG_CONFIG=/home/philipp/lede/staging_dir/host/bin/pkg-config' 'PKG_CONFIG_PATH=/home/philipp/lede/staging_dir/target-x86_64_musl/usr/lib/pkgconfig:/home/philipp/lede/staging_dir/target-x86_64_musl/usr/share/pkgconfig' 'PKG_CONFIG_LIBDIR=/home/philipp/lede/staging_dir/target-x86_64_musl/usr/lib/pkgconfig:/home/philipp/lede/staging_dir/target-x86_64_musl/usr/share/pkgconfig'</span><br><span>compiled by GCC 14.2.0</span><br><span>compiled with OpenSSL version: OpenSSL 3.0.16 11 Feb 2025</span><br><span>linked to OpenSSL version: OpenSSL 3.0.14 4 Jun 2024</span><br><span>compiled with libuv version: 1.48.0</span><br><span>linked to libuv version: 1.48.0</span><br><span>compiled with liburcu version: 0.15.2</span><br><span>compiled with libnghttp2 version: 1.63.0</span><br><span>linked to libnghttp2 version: 1.62.1</span><br><span>compiled with zlib version: 1.3.1</span><br><span>linked to zlib version: 1.3.1</span><br><span>threads support is enabled</span><br><span>DNSSEC algorithms: RSASHA1 NSEC3RSASHA1 RSASHA256 RSASHA512 ECDSAP256SHA256 ECDSAP384SHA384 ED25519 ED448</span><br><span>DS algorithms: SHA-1 SHA-256 SHA-384</span><br><span>HMAC algorithms: HMAC-MD5 HMAC-SHA1 HMAC-SHA224 HMAC-SHA256 HMAC-SHA384 HMAC-SHA512</span><br><span>TKEY mode 2 support (Diffie-Hellman): no</span><br><span>TKEY mode 3 support (GSS-API): no</span><br><span></span><br><span>default paths:</span><br><span> named configuration: /etc/bind/named.conf</span><br><span> rndc configuration: /etc/bind/rndc.conf</span><br><span> nsupdate session key: /var/run/named/session.key</span><br><span> named PID file: /var/run/named/named.pid</span><br><span>root@OpenWrt:~# </span><br><span></span><br><span>What would explain the sudden increase in memory usage when the environment has been relatively static?</span><br><span></span><br><span>Thanks,</span><br><span></span><br><span>-Philip</span><br><span></span><br><span></span><br><span></span><br><span>-- </span><br><span>Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list</span><br><span></span><br><span>ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.</span><br><span></span><br><span></span><br><span>bind-users mailing list</span><br><span>bind-users@lists.isc.org</span><br><span>https://lists.isc.org/mailman/listinfo/bind-users</span><br></div></blockquote></div></body></html>