Reduce RAM for NSD (authoritative name server)

Bug #1811965 reported by AquaL1te
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raspbian
New
Undecided
Unassigned

Bug Description

NSD on a Raspberry Pi uses ~130MB, sometimes more. I happen to have a chat with one of the NSD developers and he said that adding the compiler flags below would decrease memory usage. Performance impact on a Raspberry Pi would be minimal since NSD is already optimized for large queries and the hardware on a Raspberry Pi would never be able to reach the software bottleneck, the hardware just isn't powerful enough.

Below is what is in the debian/rules file and is used to compile NSD.
[code]
override_dh_auto_configure:
        dh_auto_configure -- \
               --with-configdir=/etc/nsd \
               --with-nsd_conf_file=/etc/nsd/nsd.conf \
               --with-pidfile=/run/nsd/nsd.pid \
               --with-dbfile=/var/lib/nsd/nsd.db \
               --with-zonesdir=/etc/nsd \
               --with-difffile=/var/lib/nsd/ixfr.db \
               --with-xfrdfile=/var/lib/nsd/xfrd.state \
               --with-max-ips=1024 \
               --disable-largefile \
               --disable-recvmmsg \
               --enable-root-server \
               --enable-mmap \
               --enable-ratelimit
[/code]

I would like to request the following flags as an addition to decrease the memory usage. I'll leave it at your discretion to implement this or not.
[code]
  --disable-radix-tree You can disable the radix tree and use the red-black
                          tree for the main lookups, the red-black tree uses
                          less memory, but uses some more CPU.
  --enable-packed Enable packed structure alignment, uses less memory,
                          but unaligned reads.
[/code]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.