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)
Sun, Oct 5, 10:24 PM
Unknown Object (File)
Sun, Sep 28, 11:29 PM
Unknown Object (File)
Aug 23 2025, 3:12 AM
Unknown Object (File)
Aug 21 2025, 8:22 PM
Unknown Object (File)
Aug 18 2025, 12:01 PM
Unknown Object (File)
Aug 15 2025, 7:10 AM
Unknown Object (File)
Aug 12 2025, 9:22 AM
Unknown Object (File)
Aug 9 2025, 9:30 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.