Skip to content

Move the zone loading to the offloaded threads

Ondřej Surý requested to merge 3625-run-zone-loading-as-offloaded-task into main

Instead of doing incremental zone loading with fixed quantum - 100 loaded lines per event, move the zone loading process to the offloaded libuv threads using isc_work_enqueue() API.

This has the advantage that the thread scheduling is given back to the operating system that understands blocking operations, and the zone loading operation doesn't block the networking threads directly.

The dns_master_loadstreaminc(), _loadbufferinc(), _loadlexer() and _loadlexerinc() functions were not used in BIND, and have been removed.

Closes #3625 (closed)

Edited by Evan Hunt

Merge request reports