The query pipeline's worker hand-off is measured and its lock contention reduced if it pays #225
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil#225
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Monitor.Enter_Slowpath)Why
Each worker takes a
SemaphoreSlimslot, reads the channel and startsTask.Runper query (src/dotnet/src/Ninlil.Dns.Server.Core/Pipeline/DnsQueryProcessingPipeline.cs:277-307; the slot is created at:217). BP-12 showedMonitor.Enter_Slowpathat 11.4 % of samples, 54 % of it in this hand-off.What changes
PipelineThroughputat Large with 16 cores and name the contended lock (the semaphore, the bounded channel or the thread-pool queue).DnsQueryProcessingPipeline.cs, keeping theMaxConcurrentQueriesbound and theStopAsyncdrain rules. Examples: anInterlockedslot counter with a waiter queue, or a worker that runs the query inline when a slot is free.--job default.Acceptance
MaxConcurrentQueries, drain on stop, hot reload ofWorkerCount/ChannelCapacity) pass, and the whole solution passes (shared library).Source
bp-design.md"Items measured, not changed, still open" item 4;bughunt-plan.md:543item (2).