The memory usage of the named running increases due to rndc reload.
Summary
The memory usage of the named running increases due to rndc reload.
BIND version used
BIND 9.16.41 (Extended Support Version) id:4df4cec running on Linux aarch64 5.10.0-136.12.0.86.h975.eulerosv2r12.aarch64 #1 SMP Mon Jun 5 04:12:23 UTC 2023 built by make with defaults compiled by GCC 10.3.1 compiled with OpenSSL version: OpenSSL 1.1.1m 14 Dec 2021 linked to OpenSSL version: OpenSSL 1.1.1m 14 Dec 2021 compiled with libuv version: 1.42.0 linked to libuv version: 1.42.0 compiled with libxml2 version: 2.9.14 linked to libxml2 version: 20914 compiled with json-c version: 0.16 linked to json-c version: 0.16 compiled with zlib version: 1.2.11 linked to zlib version: 1.2.11 threads support is enabled DNSSEC algorithms: RSASHA1 NSEC3RSASHA1 RSASHA256 RSASHA512 ECDSAP256SHA256 ECDSAP384SHA384 ED25519 ED448 DS algorithms: SHA-1 SHA-256 SHA-384 HMAC algorithms: HMAC-MD5 HMAC-SHA1 HMAC-SHA224 HMAC-SHA256 HMAC-SHA384 HMAC-SHA512 TKEY mode 2 support (Diffie-Hellman): yes TKEY mode 3 support (GSS-API): yes
default paths: named configuration: /usr/local/etc/named.conf rndc configuration: /usr/local/etc/rndc.conf DNSSEC root key: /usr/local/etc/bind.keys nsupdate session key: /usr/local/var/run/named/session.key named PID file: /usr/local/var/run/named/named.pid named lock file: /usr/local/var/run/named/named.lock
Steps to reproduce
rndc reload and ps –eF |grep named check the RSS memory occupied by the named process.
I found that the RSS would increase, and I had the same problem after multiple repetitions;
The configuration file or zone file is not modified during reload
The named.txt file is the result of running the rndc reload command for 100 times. During this period, the RSS increases. named.conf is my configuration file
What is the current bug behavior?
named 3915145 1 0 241748 60716 2 20:35 ? 00:00:06 /usr/sbin/named -u named -c /etc/named.conf root 3928474 209778 0 5431 2072 1 20:48 pts/3 00:00:00 grep --color=auto named
[root@localhost ETS]# rndc reload WARNING: key file (/usr/local/etc/rndc.key) exists, but using default configuration file (/usr/local/etc/rndc.conf) server reload successful
named 3915145 1 2 241748 62196 2 20:35 ? 00:00:50 /usr/sbin/named -u named -c /etc/named.conf root 3946715 3927862 0 5431 1892 3 21:05 pts/1 00:00:00 grep named
What is the expected correct behavior?
If only the named process is reloaded, the RSS memory does not increase.
Relevant configuration files
Relevant logs and/or screenshots
Possible fixes
(If you can, link to the line of code that might be responsible for the problem.)