v0.1.1
This commit is contained in:
1 parent
fa432bebda
commit
b796a6685e
15 files changed
+390
-153
No files matched your search
+12
-12
@@ -18,7 +18,7 @@ throughput at low core counts is typically higher than this average.
|
||||
|
||||
## Estimated throughput – authoritative, small zone, UDP
|
||||
|
||||
| Cores | BIND 9.20 (estimate) | EasyDNS 0.1 (estimate) | EasyDNS / BIND |
|
||||
| Cores | BIND 9.20 (estimate) | EasyDNS 0.1.0 (estimate) | EasyDNS / BIND |
|
||||
|---|---|---|---|
|
||||
| 1 | 40–70 k QPS | 30–45 k QPS | ~65–75 % |
|
||||
| 2 | 80–130 k | 60–90 k (55 k measured with the load generator sharing the CPUs) | ~70 % |
|
||||
@@ -31,10 +31,10 @@ Why EasyDNS keeps up on small machines but falls behind on large ones:
|
||||
* answers are built per query (no pre-rendered wire answers);
|
||||
* no `recvmmsg`/`sendmmsg` batching (one system call per packet).
|
||||
|
||||
The table above describes 0.1.0. See "Changes after 0.1.0" for what has been removed
|
||||
The table above describes 0.1.0. See "Changes in 0.1.1" for what has been removed
|
||||
from this list and what was measured.
|
||||
|
||||
## Changes after 0.1.0 (Unreleased)
|
||||
## Changes in 0.1.1
|
||||
|
||||
| Change | Effect |
|
||||
|---|---|
|
||||
@@ -51,14 +51,14 @@ Measured on the same 2-vCPU container as before (load generator sharing the CPUs
|
||||
| Build | QPS | p99 | RSS |
|
||||
|---|---|---|---|
|
||||
| 0.1.0 | 55 800 – 56 800 | 1.76 – 1.86 ms | 12.0 MB |
|
||||
| Unreleased, `udp_sockets: 1` | 56 000 – 57 200 | 1.70 – 1.82 ms | 12.7 MB |
|
||||
| Unreleased, `udp_sockets: 0` (2 sockets) | 59 400 – 60 100 | 1.74 – 1.76 ms | 12.3 MB |
|
||||
| 0.1.1, `udp_sockets: 1` | 56 000 – 57 200 | 1.70 – 1.82 ms | 12.7 MB |
|
||||
| 0.1.1, `udp_sockets: 0` (2 sockets) | 59 400 – 60 100 | 1.74 – 1.76 ms | 12.3 MB |
|
||||
|
||||
That is about +6 % on 2 vCPUs. The changes target many-core machines, which this
|
||||
container cannot show; the multi-core gain is **expected, not measured**. Revised
|
||||
estimates for authoritative UDP (to be confirmed with dnsperf on real hardware):
|
||||
|
||||
| Cores | EasyDNS 0.1 (estimate) | Unreleased (estimate) | vs BIND 9.20 |
|
||||
| Cores | EasyDNS 0.1.0 (estimate) | 0.1.1 (estimate) | vs BIND 9.20 |
|
||||
|---|---|---|---|
|
||||
| 1–2 | 30–90 k | 30–95 k | ~70 % |
|
||||
| 4 | 100–150 k | 120–180 k | ~70 % |
|
||||
@@ -75,7 +75,7 @@ client prefixes in total). Coalescing holds one small waiter per waiting query,
|
||||
At typical real-world loads (a few thousand QPS per server) both are far below their
|
||||
limits; latency at low load is similar (sub-millisecond on a LAN).
|
||||
|
||||
## Round 2 (Unreleased): encoded-answer cache, batched UDP, prefetch
|
||||
## Round 2 (0.1.1): encoded-answer cache, batched UDP, prefetch
|
||||
|
||||
| Change | What it does |
|
||||
|---|---|
|
||||
@@ -128,16 +128,16 @@ answer cache off.
|
||||
|
||||
| Workload | Comparison | Reason |
|
||||
|---|---|---|
|
||||
| Recursive, **cache hit** | 0.1: ~50–70 % of BIND on 1–4 cores, falling behind on more cores. Unreleased: sharded cache, expected to scale with cores | 0.1 had a single-lock cache |
|
||||
| Recursive, **cache miss** | latency similar (dominated by network RTT); EasyDNS sends more upstream queries (0.1: ~10–30 %; coalescing now removes duplicates for identical concurrent questions) | no prefetch, no aggressive NSEC use (RFC 8198), simpler server selection; coalescing covers whole client questions, not the resolver's internal NS-address lookups |
|
||||
| Recursive, **cache hit** | 0.1.0: ~50–70 % of BIND on 1–4 cores, falling behind on more cores. 0.1.1: sharded cache, expected to scale with cores | 0.1 had a single-lock cache |
|
||||
| Recursive, **cache miss** | latency similar (dominated by network RTT); EasyDNS sends more upstream queries (0.1.0: ~10–30 %; coalescing now removes duplicates for identical concurrent questions) | no prefetch, no aggressive NSEC use (RFC 8198), simpler server selection; coalescing covers whole client questions, not the resolver's internal NS-address lookups |
|
||||
| DNSSEC validation | similar per-signature cost (ring); EasyDNS caches zone key states 300 s | key cache with fixed TTL |
|
||||
| Zone transfers (AXFR/IXFR) | comparable for small and medium zones | 16 KiB messages, journal-based IXFR on both sides |
|
||||
| Large zones (≥ 1 M records): load time | EasyDNS ~2–4× slower | text parser + per-record allocation |
|
||||
| Large zones: memory | EasyDNS ~2–3× BIND (≈ 300–500 B/record vs ≈ 150–250 B) | `Record` objects with owned names in hash maps (BIND 9.20: qp-trie) |
|
||||
| Idle memory | EasyDNS ~10–20 MB, BIND ~30–80 MB | small runtime, no preallocated pools |
|
||||
| DoT | comparable per connection | rustls; TCP_NODELAY fixed (Unreleased: new connection 44 ms → 0.5 ms on loopback) |
|
||||
| DoH | comparable (Unreleased) | HTTP/2 multiplexing like BIND; 0.1.0 had HTTP/1.1 only |
|
||||
| Encrypted forwarding (DoT/DoH upstreams) | Unreleased: persistent connections – 0.06 ms (DoT) / 0.13 ms (DoH h2) per query on loopback vs ~0.5 ms with a handshake per query | see [secure-dns.md](secure-dns.md) |
|
||||
| DoT | comparable per connection | rustls; TCP_NODELAY fixed (0.1.1: new connection 44 ms → 0.5 ms on loopback) |
|
||||
| DoH | comparable (0.1.1) | HTTP/2 multiplexing like BIND; 0.1.0 had HTTP/1.1 only |
|
||||
| Encrypted forwarding (DoT/DoH upstreams) | 0.1.1: persistent connections – 0.06 ms (DoT) / 0.13 ms (DoH h2) per query on loopback vs ~0.5 ms with a handshake per query | see [secure-dns.md](secure-dns.md) |
|
||||
| Reload of one changed zone | faster in EasyDNS | only changed zones are re-published (atomic pointer swap); BIND `rndc reload` re-reads all zones |
|
||||
|
||||
## Planned improvements (by expected impact)
|
||||
|
||||
Reference in new issue
Block a user