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)
Sat, Jun 29, 12:37 AM
Unknown Object (File)
Fri, Jun 28, 10:36 PM
Unknown Object (File)
Thu, Jun 27, 11:43 PM
Unknown Object (File)
Thu, Jun 27, 11:39 PM
Unknown Object (File)
Thu, Jun 27, 11:26 PM
Unknown Object (File)
May 8 2024, 6:24 AM
Unknown Object (File)
Apr 26 2024, 6:38 AM
Unknown Object (File)
Apr 26 2024, 6:22 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.