don't pin when only one routine

This commit is contained in:
JackDoan
2026-07-31 12:45:36 -05:00
parent 9d8e830e4e
commit 245eb61444
2 changed files with 25 additions and 17 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ tun:
# Linux only. pin_threads pins each tun reader/encrypt OS thread to a single CPU. This keeps every goroutine's
# batched sends flowing through one XPS-selected NIC TX ring, so packets within a flow stay ordered on the wire
# instead of being sprayed across multiple TX rings and reordered. Not reloadable.
# instead of being sprayed across multiple TX rings and reordered. Not reloadable. Coerced to false if routines <= 1.
#pin_threads: true
# Linux only. cpu_affinity overrides which CPUs the tun reader threads pin to: a list of CPU IDs, one per routine