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, Apr 22, 4:00 AM
Unknown Object (File)
Mar 1 2024, 5:26 PM
Unknown Object (File)
Jan 11 2024, 3:35 AM
Unknown Object (File)
Dec 22 2023, 9:20 PM
Unknown Object (File)
Dec 11 2023, 8:59 AM
Unknown Object (File)
Oct 28 2023, 1:29 AM
Unknown Object (File)
Sep 25 2023, 11:31 PM
Unknown Object (File)
Sep 18 2023, 9:41 AM
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.