On 02/07/2012 12:10 PM, Michael S. Tsirkin wrote:
Also, lun[1] = sc->device->id means that only 255 SCSI target IDs will be
> >supported. Think about bigger usage scenarios, such as FCP networks with
> >several hundred HBAs in the net. If you want to have the target ID<->HBA
> >mapping the same as on the guest as on the host, then 255 virtual target
> >IDs could be a limit.
>
> I think you would hit other scalability limitations well before
> that. I plan to give each target its own MSI-X interrupt, but there
> is no infinite supplies of those either.
virtio-pci generally lets guests share MSI-X vectors between queues,
why not allow this here?
Yes, of course. However, with dozens of queues, many of them will share
the same vector and all of them will be examined when you get the
interrupt. Even if you find the right balance between sharing (because
you have to) and separating (because of scalability), I wouldn't be
surprised if more than 255 targets do not work too well.
Anyway multiqueue is not even in this patchset, so there's more work to
do before we can worry. :)
Paolo
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html