Page MenuHomeFreeBSD

Propose a way to specify all available cpus as net.isr.maxthreads.
ClosedPublic

Authored by hiren on Apr 17 2015, 8:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 15, 12:52 AM
Unknown Object (File)
Fri, Dec 12, 7:02 PM
Unknown Object (File)
Mon, Dec 1, 10:30 PM
Unknown Object (File)
Thu, Nov 27, 4:01 PM
Unknown Object (File)
Thu, Nov 27, 7:51 AM
Unknown Object (File)
Nov 24 2025, 1:19 AM
Unknown Object (File)
Nov 23 2025, 9:53 PM
Unknown Object (File)
Nov 22 2025, 2:16 AM
Subscribers

Details

Reviewers
gnn
adrian
rwatson
Summary

Currently there is no easy way to specify net.isr.maxthreads = all cpus. We need to specify exact number of cpus in loader.conf which get annoying when you have mix of machines which don't have equal number of total cpus. I propose "-1" as that value. When loader.conf has net.isr.maxthreads = -1, netisr will use all available cpus.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

hiren retitled this revision from to Propose a way to specify all available cpus as net.isr.maxthreads..
hiren updated this object.
hiren edited the test plan for this revision. (Show Details)
hiren added reviewers: adrian, gnn, rwatson.
hiren added a subscriber: network.
  • Addressing offline comments by davide@ to do input validation for all possible values.
  • jhb@ mentioned that we can always set a high value like 255 in loader.conf and it'd be capped down to total cpus. I prefer the approach presented in this patch.
  • Update the comment block to specify new default value.
gnn edited edge metadata.
This revision is now accepted and ready to land.Apr 18 2015, 4:20 PM

This has been committed.