Page MenuHomeFreeBSD

ktls: Improve handling of the bind_threads tunable a bit
ClosedPublic

Authored by markj on Jan 14 2021, 4:36 PM.
Tags
None
Referenced Files
F136293577: D28161.id82601.diff
Mon, Nov 17, 1:55 AM
F136252166: D28161.id82272.diff
Sun, Nov 16, 9:15 PM
F136195006: D28161.diff
Sun, Nov 16, 2:55 PM
Unknown Object (File)
Oct 15 2025, 4:11 AM
Unknown Object (File)
Oct 15 2025, 4:03 AM
Unknown Object (File)
Oct 15 2025, 4:01 AM
Unknown Object (File)
Oct 14 2025, 6:41 PM
Unknown Object (File)
Oct 12 2025, 12:46 AM
Subscribers

Details

Summary
  • Only check for empty domains if we actually tried to configure domain affinity in the first place. Otherwise setting bind_threads=1 will always cause the sysctl value to be reported as zero. This is harmless since the threads end up being bound, but it's confusing.
  • Try to improve the sysctl description a bit.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Jan 14 2021, 4:36 PM
This revision is now accepted and ready to land.Jan 14 2021, 6:14 PM

I saw this the other day and almost thought that we should have separate knobs for "bind threads to cores" and "bind sessions to NUMA domains" rather than have ktls_bind_threads serve as a kind of tri-state. However, I think this approach is fine.