Skip to content

Direct rdata storage #444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 147 commits into
base: master
Choose a base branch
from
Open

Direct rdata storage #444

wants to merge 147 commits into from

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