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)
Wed, Dec 25, 11:29 PM
Unknown Object (File)
Wed, Dec 25, 1:25 PM
Unknown Object (File)
Dec 2 2024, 1:18 AM
Unknown Object (File)
Dec 1 2024, 1:40 AM
Unknown Object (File)
Oct 1 2024, 6:20 PM
Unknown Object (File)
Sep 27 2024, 4:15 PM
Unknown Object (File)
Sep 24 2024, 9:21 AM
Unknown Object (File)
Sep 23 2024, 10:25 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.