mlx5 irq

Hans Petter Selasky hps at selasky.org
Thu Oct 1 10:28:50 UTC 2020


On 2020-10-01 11:13, Michal Vančo via freebsd-net wrote:
> On 01/10/2020 10:52, Hans Petter Selasky wrote:
>> On 2020-10-01 10:24, Michal Vančo wrote:
>>> But why is the actual number of IRQ lines bigger than number of CPU
>>> cores?
>>
>> There are some dedicated IRQ's used for firmware management.
>>
>> Else the driver will use the number of online CPU's by default as the
>> number of rings, if the hardware supports it.
> 
> Thanks for clarification. Is there any way to optimize this? In my case
> I have 2 CPU sockets with 8 cores each (SMT is disabled). NIC is
> connected via PCIe to the first CPU socket (numa domain 0). In this
> case, wouldn't it be better if all interrupts were firing only on cores
> of first socket?
> 

Hi,

You can use "cpuset" to bind those IRQ threads to the right core.

There is no automatic way :-)

--HPS



More information about the freebsd-net mailing list