Page MenuHomeFreeBSD

Require the number of queues to be a power of 2.
ClosedPublic

Authored by jhb on Nov 12 2015, 11:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 1, 6:05 PM
Unknown Object (File)
Tue, Nov 25, 9:05 AM
Unknown Object (File)
Fri, Nov 21, 2:08 AM
Unknown Object (File)
Fri, Nov 21, 2:08 AM
Unknown Object (File)
Fri, Nov 21, 2:07 AM
Unknown Object (File)
Fri, Nov 21, 2:04 AM
Unknown Object (File)
Mon, Nov 17, 6:04 PM
Unknown Object (File)
Nov 2 2025, 11:23 PM
Subscribers

Details

Summary

Only use a power of 2 for the number of receive and transmit queues.
Using other values causes VMXNET3_CMD_ENABLE to fail. The Linux
driver also enforces this restriction.

Sponsored by: Norse

Test Plan
  • Try to use multiq in a VM with 6 CPUs under ESX. With the default of 6 queues, the warning in dmesg triggered from CMD_ENABLE failing and no traffic was received. I then used the tunables to try other values and found that 2 and 4 worked but 3 did not.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb retitled this revision from to Require the number of queues to be a power of 2..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added a reviewer: bryanv.
bryanv edited edge metadata.
This revision is now accepted and ready to land.Nov 13 2015, 12:08 AM
This revision was automatically updated to reflect the committed changes.