Mellanox / scalablefunctions

All about Scalable functions
39 stars 2 forks source link

Question regarding MSI-X vector #4

Open nicboul opened 1 year ago

nicboul commented 1 year ago

Here https://github.com/Mellanox/scalablefunctions/wiki/Upstream-step-by-step-guide it says:

(c) Setup MSI-X vectors per PF, it should be 4 times the number of SFs configured. For example, when PF_TOTAL_SF=250, configure MSI-X vectors to be 1000.

Here https://en.wikipedia.org/wiki/Message_Signaled_Interrupts#MSI-X it says:

MSI-X (first defined in PCI 3.0) permits a device to allocate up to 2048 interrupts

Does it means that the maximum of SF is limited to 2048/4 ? Or does it means that if the ratio is not 4 (let say I have 1000 SFs), things are still going to work but the level of contention will be higher for the interrupts ? thanks