openwrt / openwrt/packages

bind: named hangs systems because it exhausts memory

Open
#26,718 1 comment 0 reactions 2 assignees View on GitHub

@nmeyerhans is already working on this.

Since Sep 24, 2025.

bug
Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

Package Name

bind

Maintainer

@nmeyerhans

OpenWrt Version

SNAPSHOT

OpenWrt Target/Subtarget

x86/64

Steps to Reproduce
  1. Install both isc-dhcp-serve and bind-server
  2. Configure dynamicdns so that updates are sent to named
  3. Let it run for a few days
Actual Behaviour

It will eventually exhaust system memory and crash.

Possible Fix
To the init file add:

proud_set_param limits "data=nnnnn"

so that if it is leaking memory, it eventually crashes and gets restarted rather than compromising the entire system. (Or possibly "as=nnnnn".)

Question is, what's a reasonable amount of memory for it to run in? On my system with ~200 hosts, it's taking:

root@OpenWrt:~# ps -p $(pidof named) -lll
F S   UID   PID  PPID  C PRI  NI ADDR SZ WCHAN  TTY          TIME CMD
4 S    57 18981     1  3  80   0 - 12458 do_epo ?        00:37:20 named
Confirmation Checklist

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.