Bug 279837 - dns/nsd: Update to 4.10.0
Summary: dns/nsd: Update to 4.10.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Fernando Apesteguía
URL: https://nlnetlabs.nl/news/2024/Jun/13...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-18 16:23 UTC by Jaap Akkerhuis
Modified: 2024-06-20 14:30 UTC (History)
1 user (show)

See Also:


Attachments
patch to update (1.03 KB, patch)
2024-06-18 16:23 UTC, Jaap Akkerhuis
jaap: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaap Akkerhuis 2024-06-18 16:23:11 UTC
Created attachment 251546 [details]
patch to update

Version 4.10.0 integrates simdzone and drops the Flex+Bison zone
parser.

NSD used a Flex+Bison based zone parser since version 1.4.0. The parser
served NSD well, but zones have increased in size and zone loading
performance has been problematic for some users.

With the integration of simdzone
(https://github.com/NLnetLabs/simdzone),
performance of loading zones and IXFRs is drastically improved. Quick
measurements show improvements ranging anywhere from 3.8x to 1.6x,
depending on zone size and database type, though the improvements will
be less noticable for NSEC3 zones due to pre-hashing.

simdzone leverages SIMD instructions in modern CPUs to improve
throughput. Right now SSE4.2 and AVX2 instruction sets are supported,
other instruction sets will use the fallback implementation, which
still is a decent improvement over the Flex+Bison based parser.


4.10.0
================
FEATURES:
- Merge #278: Replace Flex+Bison based zone parser with simdzone.
    Performance of loading zones and IXFRs is greatly improved by using
    the simdzone project by NLnet Labs. The optimized presentation
    format parser leverages SIMD instructions in modern CPUs to improve
    throughput. Right now SSE4.2 and AVX2 instruction sets are
    supported, other instruction sets will use the fallback
    implementation, which still is a decent improvement over the
    Flex+Bison based parser.

BUG FIXES:
- Fix that when the server truncates the pidfile, it does not follow
    symbolic links.
- Fix #317: nsd should not chown its PID file.
- For #317: Modify nsd service script to stop NSD from creating a pid
    file that systemd is not using.
- Fix #324: Clarify the purpose of contrib/bug390.patch.
- Fix IXFR requests upstream for zones with a long name. Thanks for the
    report to Yuuki Wakisaka from Internet Initiative Japan Inc.
- Unit test for dname subdomain test used by xfrd-tcp.c.
- Fix #329: TCP accept queues number.
- Fix that the reload handler for sigchild uses signal_add, and also
    that the signal handler is restored when done.
- Fix that when server verify is done it resets the sigchild handler.
- Fix makedist.sh for simdzone inclusion.
- Fix makedist.sh to remove simdzone git tracking information and
    scripting temporaries from tarball.
- Fix error output of makedist.sh.
- Use simdzone version with name parser fix.
- Bump simdzone version to fix OpenBSD build issues.
- Bump simdzone to include minor fixes.
Comment 1 Fernando Apesteguía freebsd_committer freebsd_triage 2024-06-20 14:29:21 UTC
Committed,

Thanks!
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-06-20 14:30:13 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1df8426c8cc31a50e43660b2dc025a473feed673

commit 1df8426c8cc31a50e43660b2dc025a473feed673
Author:     Jaap Akkerhuis <jaap@NLnetLabs.nl>
AuthorDate: 2024-06-19 06:55:46 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2024-06-20 14:28:57 +0000

    dns/nsd: Update to 4.10.0

    ChangeLog: https://nlnetlabs.nl/news/2024/Jun/13/nsd-4.10.0-released/

     * Merge #278: Replace Flex+Bison based zone parser with simdzone.
        Performance of loading zones and IXFRs is greatly improved by using
        the simdzone project by NLnet Labs. The optimized presentation
        format parser leverages SIMD instructions in modern CPUs to improve
        throughput. Right now SSE4.2 and AVX2 instruction sets are
        supported, other instruction sets will use the fallback
        implementation, which still is a decent improvement over the
        Flex+Bison based parser.

    BUG FIXES:
     * Fix that when the server truncates the pidfile, it does not follow
         symbolic links.
     * Fix #317: nsd should not chown its PID file.
     * For #317: Modify nsd service script to stop NSD from creating a pid
         file that systemd is not using.
     * Fix #324: Clarify the purpose of contrib/bug390.patch.
     * Fix IXFR requests upstream for zones with a long name. Thanks for the
         report to Yuuki Wakisaka from Internet Initiative Japan Inc.
     * Unit test for dname subdomain test used by xfrd-tcp.c.
     * Fix #329: TCP accept queues number.
     * Fix that the reload handler for sigchild uses signal_add, and also
         that the signal handler is restored when done.
     * Fix that when server verify is done it resets the sigchild handler.
     * Fix makedist.sh for simdzone inclusion.
     * Fix makedist.sh to remove simdzone git tracking information and
         scripting temporaries from tarball.
     * Fix error output of makedist.sh.
     * Use simdzone version with name parser fix.
     * Bump simdzone version to fix OpenBSD build issues.
     * Bump simdzone to include minor fixes.

    PR:             279837
    Reported by:    jaap@NLnetLabs.nl (maintainer)

 dns/nsd/Makefile | 2 +-
 dns/nsd/distinfo | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)