Skip to content

Conversation

@wcawijngaards
Copy link
Member

Minimize rdata storage in NSD. This branch starts from the work that Jeroen did on rdata minimization. The code from the minimize-rdata-again branch is continued in development. That code can be found here
https://github.com/k0ekk0ek/nsd/tree/minimize-rdata-again

This reduces the memory used, for the zone as it is in memory for NSD. The amount of reduction depends on the zone contents. It allocates the rdata parts of Resource Records together and this reduces the memory use of rdata storage in NSD by removing
the overhead of storing the rdata in small parts.

It can be combined with --enable-packed, and --disable-radix-tree, that also reduce memory use.

Since references to domain names are stored as pointers to the name tree, just like before, the speed of service is not that different.

…nd unit

  tests for dname routines, including newly added dname routines.
  unaligned access needs no different code due to the flexible array.
@wcawijngaards wcawijngaards self-assigned this Jun 3, 2025
@wcawijngaards wcawijngaards requested a review from wtoorop June 3, 2025 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant